Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenAI Codex CLI error

Codex CLI: MCP client for <server> timed out after 10 seconds

Error message
MCP client for `<server>` timed out after 10 seconds. Add or adjust `startup_timeout_sec` in your config.toml:

Status: WorkaroundLast verified 2 documented fixes7 sources

What it means

The MCP server did not finish starting within its startup timeout (default 10 seconds). Builds before 0.50.0 showed this as a generic "request timed out" startup failure (#2555); PR #5595 added the clearer message so users can self-serve.

Causes

  • The server takes longer than startup_timeout_sec to start (default: 10 per the official MCP docs).
  • On Windows, MCP servers missed core environment variables and often failed to start without explicit per-server env blocks (PR #5579).

How to fix it

  1. Fix 1.

    Raise the startup timeout for that server, as the message says (official MCP docs and configuration reference).

    TOML
    [mcp_servers.context7]
    startup_timeout_sec = 30
  2. Fix 2.

    Upgrade: 0.31.0 improved MCP initialization error handling (PR #3243, which references #2555), 0.50.0 added the explicit timeout message (PR #5595), and 0.51.0 passes core env vars to Windows MCP servers (PR #5579).

More Codex CLI errors

All 14 Codex CLI errors

FAQ

What does "MCP client for <server> timed out after 10 seconds" mean in Codex CLI?

The MCP server did not finish starting within its startup timeout (default 10 seconds). Builds before 0.50.0 showed this as a generic "request timed out" startup failure (#2555); PR #5595 added the clearer message so users can self-serve.

How do I fix "MCP client for <server> timed out after 10 seconds"?

There are 2 documented fixes. Start with the first: Raise the startup timeout for that server, as the message says (official MCP docs and configuration reference).

Is this Codex CLI error fixed?

Status: Workaround. No release removes the cause. The documented fixes work around it. Affected versions: Reported on codex-cli 0.23.0 to 0.31.0 on Windows 11 (#2555)

Sources

Last verified against 7 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.