Timeout · troubleshooting record
MCP request or tool call times out
A request exceeded the client's or server's time budget. Timeouts can be legitimate slow operations, an unresponsive upstream dependency, a blocked stdio process, or a timeout set too low for startup or long-running tools.
Symptoms
- Client reports a timeout during initialization or a tool call.
- The server later completes the operation after the client gave up.
- Large queries or crawls fail consistently while small ones succeed.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
The tool genuinely takes longer than the client's request timeout
Clients enforce tool and transport timeouts; a long-running operation must fit within them or return progress.
The server is waiting on an unresponsive dependency
A blocked network call or database lock can hold the request past any configured budget.
Initialization is slow due to package download or image pull
npx, uvx, and Docker may fetch packages on first launch, exceeding a short startup timeout.
Possible causes
- The client timeout is configured lower than the server's documented startup time.
- A tool streams progress but the client does not surface it.
- The stdio process is blocked on stdin or writes too much output.
- A proxy or load balancer has a shorter idle timeout.
What still needs verification
- The exact timeout value on both client and server.
- Whether the operation continues after the client times out.
- Whether progress notifications are supported and delivered.
Affected environments
Fixes
Fit the operation to the timeout
- Bound queries and add pagination or explicit limits.
- Increase the client's documented startup/tool timeout only after measuring the real duration.
- Pre-install packages or pre-pull images to avoid first-run delay.
Diagnose the slow layer
- Time the same operation outside MCP.
- Inspect server logs for the point where it blocks.
- Check proxy idle timeouts for remote servers.
Verify the fix
- The operation completes within the configured budget.
- The client receives progress or a final result without timing out.
- Timeouts return a structured error rather than leaving the server hung.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-httpOfficial documentation · checked Oct 23, 2026 · documented
The specification defines protocol version headers, method/name metadata headers, Origin validation, and endpoint requirements.
- developers.openai.com/codex/config-referenceOfficial documentation · checked Oct 23, 2026 · documented
Codex documents startup_timeout_sec and tool_timeout_sec settings for MCP servers.