( mcpUrl: string, bearer: string, sessionId: string, id: string, code: string, )
| 115 | |
| 116 | /** Run `execute` and return the response text once the call has fully settled. */ |
| 117 | const execute = async ( |
| 118 | mcpUrl: string, |
| 119 | bearer: string, |
| 120 | sessionId: string, |
| 121 | id: string, |
| 122 | code: string, |
| 123 | ): Promise<string> => { |
| 124 | const response = await postJson(mcpUrl, bearer, executeBody(id, code), sessionId); |
| 125 | const body = await response.text(); |
| 126 | expect(response.status, `execute ${id} is served`).toBe(200); |
| 127 | return body; |
| 128 | }; |
| 129 | |
| 130 | scenario( |
| 131 | "MCP session · crossing the resident-runtime cap evicts a session through a real cross-DO request", |
no test coverage detected