timeout_handlingTier 1 · 70% confidence
mcp-timeout-handling-mcp-client-js-ts-sdk-times-out-after-60-seconds-fo-693a44a4
agent: mcp
When does this happen?
IF MCP client (JS/TS SDK) times out after 60 seconds for long-running tool calls, even when server sends progress updates or a custom timeout option is passed.
How others solved it
THEN Ensure the MCP client SDK respects the `timeout` option in `callTool` and other requests, and resets the timeout on receiving progress notifications. As a workaround, implement a custom timeout management wrapper that overrides the default or periodically sends keepalive messages until a fix is released.
// Workaround: override default timeout by passing options to connect or callTool
await client.callTool(
{ name: "long_task", arguments: { ... } },
undefined,
{ timeout: 300000 } // 5 minutes (note: may be ignored in current SDK versions)
);
// Poll for progress and manually extend timeout (pseudo-code)
const originalCallTool = client.callTool.bind(client);
client.callTool = (request, resultSchema, options) => {
options = { ...options, timeout: 300000 };
return originalCallTool(request, resultSchema, options);
};Related patterns
mcp_integration
mcp-mcp-integration-an-ai-agent-tool-suite-needs-to-be-extensible-with-66ab029d
Tier 1 · 70%
schema_modificationmcp-schema-modification-modifying-the-mcp-protocol-schema-message-types-re-680f3902
Tier 1 · 70%
mcp_server_configurationmcp-mcp-server-configura-need-to-connect-a-local-mcp-server-e-g-filesystem--a79e3cda
Tier 1 · 70%
version_mismatchmcp-version-mismatch-user-follows-readme-instructions-to-install-mcp-cl-e701e9bb
Tier 1 · 70%
testing_utilitiesmcp-testing-utilities-i-am-developing-an-mcp-client-and-need-a-server-th-ccc7b4da
Tier 1 · 70%
protocol_compatibilitymcp-protocol-compatibili-i-need-to-run-an-mcp-server-with-a-client-that-req-7afca918
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.