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

Function jsonRpc

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

Source from the content-addressed store, hash-verified

162 const requests: string[] = [];
163 let remaining = revokedListResponses;
164 const jsonRpc = (rpc: JsonRpcRequest, result: unknown) =>
165 Response.json({ jsonrpc: "2.0", id: rpc.id ?? null, result });
166 const layer = Layer.succeed(HttpClient.HttpClient)(
167 HttpClient.make((request: HttpClientRequest.HttpClientRequest) => {
168 const url = new URL(request.url);

Callers 1

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected