(code: string)
| 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([ |
no test coverage detected