(sessionId: string, id: number)
| 158 | const open = (): Promise<string> => openSession(sessions); |
| 159 | |
| 160 | const call = (sessionId: string, id: number) => |
| 161 | Effect.runPromise( |
| 162 | sessions.store.dispatch({ |
| 163 | request: new Request("https://executor.test/mcp", { |
| 164 | method: "POST", |
| 165 | headers: { |
| 166 | "content-type": "application/json", |
| 167 | accept: "application/json, text/event-stream", |
| 168 | "mcp-session-id": sessionId, |
| 169 | }, |
| 170 | body: JSON.stringify({ jsonrpc: "2.0", id, method: "tools/list" }), |
| 171 | }), |
| 172 | principal: TEST_PRINCIPAL, |
| 173 | resource: defaultMcpResource, |
| 174 | sessionId, |
| 175 | method: "POST", |
| 176 | }), |
| 177 | ); |
| 178 | |
| 179 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- test boundary: always close the store |
| 180 | try { |
no outgoing calls
no test coverage detected