Commit 2826144
committed
fix: pass MCP_TIMEOUT to SDK callTool requests
The MCP SDK has a hardcoded DEFAULT_REQUEST_TIMEOUT_MSEC of 60 seconds.
Without passing the timeout option to client.callTool(), the MCP_TIMEOUT
environment variable was being ignored for tool execution, causing
long-running tools (like browser automation) to fail with error -32001
(RequestTimeout) after 60 seconds regardless of the configured timeout.
This fix passes getTimeoutMs() to the SDK's callTool options, ensuring
the user-configured MCP_TIMEOUT is respected.1 parent f010748 commit 2826144
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
0 commit comments