- Symptom
- McpError: MCP error -32001: Request timed outLong tools fail at exactly 60 seconds even while the server sends progress notifications
- Cause
- DEFAULT_REQUEST_TIMEOUT_MSEC is 60,000 ms, and progress resets the timer only when resetTimeoutOnProgress is set, and on the low-level request() only when an onprogress callback is passed too.
- Fix
- Pass a larger timeout per call, set resetTimeoutOnProgress with an onprogress handler, and cap the total with maxTotalTimeout.
- Apply
await client.callTool({ name: 'export', arguments: {} }, undefined, { timeout: 300_000, resetTimeoutOnProgress: true, onprogress: (p) => console.error(p) });- Affected
- MCP TypeScript SDK clients, v1 and v2, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders