Commit 2aecd31
Fix MCP tool timeout: pass mcp_timeout as AI SDK streamText stepMs
The AI SDK streamText() defaults stepMs to 120s, which covers the entire
step including tool execution. This caused MCP tool calls to timeout at
120s even when experimental.mcp_timeout was configured to a much larger
value, because the AI SDK step timeout fired before the MCP-level timeout.
Co-Authored-By: Claude Opus 4.7 <[email protected]>1 parent becf57e commit 2aecd31
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
337 | 340 | | |
338 | 341 | | |
339 | 342 | | |
| |||
0 commit comments