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

Function jsonRpc

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected