Repository navigation
Commit 0198b49
fix(server): add 3s timeout to listRoots to prevent 300s hang
server.listRoots() hangs indefinitely over streamable HTTP due to
MCP SDK bug (modelcontextprotocol/typescript-sdk#1167, open since
Nov 2025). Every first tool call on Cloud Run blocked for 300s.
Wrap in Promise.race with 3s timeout — project resolution from
roots fails fast and falls through gracefully. Workspace isolation
via API key is unaffected.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 618768d commit 0198b49
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
| |||
0 commit comments