Not able to override config.toml while invoking codex
Resolved 💬 3 comments Opened Feb 28, 2026 by amit-mittal Closed Mar 2, 2026
What version of Codex CLI is running?
v0.106
What subscription do you have?
Enterprise
Which model were you using?
gpt-5.3
What platform is your computer?
MacOS
What terminal emulator and version are you using (if applicable)?
iTerm2
What issue are you seeing?
MCP section present in your repo's config.toml is not overridable through codex --config unless that MCP server is also present in your ~/.codex/config.toml.
What steps can reproduce the bug?
- In your repo's
config.toml
[mcp_servers.sentry]
url = "https://mcp.sentry.dev/mcp"
enabled = false
- Invoke
codex --config mcp_servers.sentry.enaled=true - It fails with
Error loading config.toml: invalid transport in mcp_servers.sentry
If the same section is also in your ~/.codex/config.toml, the override works.
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗