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

Function replyAttrs

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

Source from the content-addressed store, hash-verified

164};
165
166const replyAttrs = (envelope: JsonRpcEnvelope): Record<string, unknown> => {
167 if (!envelope.result || envelope.method) return {};
168 return Option.match(decodeElicitationReplyResult(envelope.result), {
169 onNone: () => ({}),
170 onSome: ({ action }) => (action ? { "mcp.elicitation.action": action } : {}),
171 });
172};
173
174const rpcAttrs = (envelope: Option.Option<JsonRpcEnvelope>): Record<string, unknown> =>
175 Option.match(envelope, {

Callers 1

rpcAttrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected