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

Function callExecute

e2e/cloud/mcp-protocol.test.ts:573–583  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

571 // Both calls use id 1 — a sloppy-but-legal client. Each POST must get
572 // its own response back; neither may be dropped or cross-wired.
573 const callExecute = (code: string) =>
574 mcpPost(target.mcpUrl, {
575 bearer,
576 sessionId,
577 body: {
578 jsonrpc: "2.0",
579 id: 1,
580 method: "tools/call",
581 params: { name: "execute", arguments: { code } },
582 },
583 });
584
585 const responses = yield* Effect.promise(() =>
586 Promise.all([

Callers 1

Calls 1

mcpPostFunction · 0.70

Tested by

no test coverage detected