MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / replyAttrs

Function replyAttrs

apps/cloud/src/mcp/telemetry.ts:215–221  ·  view source on GitHub ↗
(envelope: JsonRpcEnvelope)

Source from the content-addressed store, hash-verified

213};
214
215const replyAttrs = (envelope: JsonRpcEnvelope): Record<string, unknown> => {
216 if (!envelope.result || envelope.method) return {};
217 return Option.match(decodeElicitationReplyResult(envelope.result), {
218 onNone: () => ({}),
219 onSome: ({ action }) => (action ? { "mcp.elicitation.action": action } : {}),
220 });
221};
222
223const rpcAttrs = (envelope: Option.Option<JsonRpcEnvelope>): Record<string, unknown> =>
224 Option.match(envelope, {

Callers 1

rpcAttrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected