( mcpUrl: string, bearer: string, sessionId: string, id: string, code: string, )
| 198 | |
| 199 | /** Run `execute` and return the response text once the call has fully settled. */ |
| 200 | const execute = async ( |
| 201 | mcpUrl: string, |
| 202 | bearer: string, |
| 203 | sessionId: string, |
| 204 | id: string, |
| 205 | code: string, |
| 206 | ): Promise<string> => { |
| 207 | const response = await postJson(mcpUrl, bearer, executeBody(id, code), sessionId); |
| 208 | const body = await response.text(); |
| 209 | expect(response.status, `execute ${id} is served`).toBe(200); |
| 210 | return body; |
| 211 | }; |
| 212 | |
| 213 | scenario( |
| 214 | "MCP session · crossing the resident-runtime cap evicts a session through a real cross-DO request", |
no test coverage detected