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

Function jsonRpcResult

packages/plugins/mcp/src/sdk/plugin.test.ts:55–60  ·  view source on GitHub ↗
(request: JsonRpcRequest, result: unknown)

Source from the content-addressed store, hash-verified

53const decodeJsonRpcRequest = Schema.decodeUnknownOption(Schema.fromJsonString(JsonRpcRequest));
54
55const jsonRpcResult = (request: JsonRpcRequest, result: unknown) =>
56 HttpServerResponse.jsonUnsafe({
57 jsonrpc: "2.0",
58 id: request.id ?? null,
59 result,
60 });
61
62// The call-tool fixtures share one JSON-RPC scaffold (handshake, tool listing,
63// unknown-method rejection); only the `tools/call` response varies. Each

Callers 1

callToolFixtureResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected