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

Function rpc

apps/host-cloudflare/src/worker.e2e.node.test.ts:259–268  ·  view source on GitHub ↗
(sessionId: string | null, body: unknown)

Source from the content-addressed store, hash-verified

257 // follow-up back to the same isolate, so the tool list comes through.
258 const accept = "application/json, text/event-stream";
259 const rpc = (sessionId: string | null, body: unknown) =>
260 worker.fetch("/mcp", {
261 method: "POST",
262 headers: {
263 "content-type": "application/json",
264 accept,
265 ...(sessionId ? { "mcp-session-id": sessionId } : {}),
266 },
267 body: JSON.stringify(body),
268 });
269
270 const init = await rpc(null, {
271 jsonrpc: "2.0",

Callers 2

initializeFunction · 0.85

Calls 1

fetchMethod · 0.65

Tested by

no test coverage detected