timeoutTier 1 · 70% confidence

mcp-timeout-mcp-tool-call-takes-longer-than-60-seconds-and-ser-94df812f

agent: mcp

When does this happen?

IF MCP Tool call takes longer than 60 seconds and server sends progress updates, but TypeScript client times out with McpError: Request timed out (timeout: 60000).

How others solved it

THEN Increase the timeout when calling callTool by passing a timeout option (e.g., await client.callTool(request, undefined, { timeout: 300000 })). If the timeout option is not effective, consider using the Python MCP SDK which handles progress updates correctly, or implement a custom transport that resets the internal timeout upon receiving progress notifications.

// Increase timeout value when calling tool
await client.callTool(
  { name: 'run_command', arguments: { timeout: 300 } },
  undefined,
  { timeout: 300000 } // 5 minutes
);

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics