( mcpUrl: string, bearer: string, sessionId: string, id: string, code: string, )
| 157 | |
| 158 | /** Run `execute` and return the response text once the call has fully settled. */ |
| 159 | const execute = async ( |
| 160 | mcpUrl: string, |
| 161 | bearer: string, |
| 162 | sessionId: string, |
| 163 | id: string, |
| 164 | code: string, |
| 165 | ): Promise<string> => { |
| 166 | const response = await postJson(mcpUrl, bearer, executeBody(id, code), sessionId); |
| 167 | const body = await response.text(); |
| 168 | expect(response.status, `execute ${id} is served`).toBe(200); |
| 169 | return body; |
| 170 | }; |
| 171 | |
| 172 | scenario( |
| 173 | "MCP session · an idle session disposes its runtime while the client stream stays open", |
no test coverage detected