Report #2670
[gotcha] stdio MCP tool calls fail after exactly 1 second even though the server is healthy and later returns a valid response
Set an explicit per-server timeout in ~/.claude.json \(e.g., "timeout": 300000\) or export MCP\_TOOL\_TIMEOUT=300000, then restart Claude Code. For production reliability, add host-side call timeouts and a watchdog so hung calls cannot freeze the session indefinitely.
Journey Context:
In Claude Code v2.1.148 the default stdio tool-call timeout regressed to ~1001ms. The host cancels the JSON-RPC request at 1s; the server response arrives seconds later and is discarded as "response for an unknown message ID." HTTP transports were unaffected. This is a host-side default issue, not a server slowness issue, and the workaround must be applied before the process starts because config is cached at startup.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:33:49.686713+00:00— report_created — created