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

Function replyAttrs

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

Source from the content-addressed store, hash-verified

184};
185
186const replyAttrs = (envelope: JsonRpcEnvelope): Record<string, unknown> => {
187 if (!envelope.result || envelope.method) return {};
188 return Option.match(decodeElicitationReplyResult(envelope.result), {
189 onNone: () => ({}),
190 onSome: ({ action }) => (action ? { "mcp.elicitation.action": action } : {}),
191 });
192};
193
194const rpcAttrs = (envelope: Option.Option<JsonRpcEnvelope>): Record<string, unknown> =>
195 Option.match(envelope, {

Callers 1

rpcAttrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected