You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex CLI eagerly connects all configured MCP servers at startup #15947
Codex CLI should not eagerly connect every configured MCP server during startup.
Right now, if several stdio MCP servers are enabled in config, Codex attempts to connect them during startup even when they are not needed for the current session.
On local setups this adds avoidable startup latency, especially when the MCP servers are launched via npx and have noticeable cold start cost.
The current workarounds do not really solve the UX problem:
enabled = false disables the MCP entirely
startup_timeout_sec only reduces how long startup waits
A better default or optional mode for local CLI usage, for example:
lazy-load MCP servers on first use
start only required = true MCP servers during startup
allow a CLI allowlist such as --with-mcp=context7,chrome-devtools
support an in-session command to load an MCP manually
Why this matters
This is mainly a local CLI UX issue.
For terminal users, paying startup cost for unused MCP servers on every run feels like the wrong default. It makes Codex feel slower even in sessions where only normal coding help is needed.
Activity
github-actions commentedon Mar 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
songunity commentedon Mar 27, 2026
Closing as a duplicate of #14507.