Expand description
The MCP servers a Codex exec turn gets: AgentMux’s own agentmux server
and the catalog servers, from the .mcp.json the launch wrote in the
agent’s folder, as -c mcp_servers.<name>.<key>=<toml> overrides.
SPEC_CONNECTORS_MCP_WHAT_AGENTS_RUN_2026_10_10.md §5.
The overrides are on the command line, which other processes on the machine
can read, so no secret goes in them. A value in a server’s env or
headers, where a key lives, is not written there: it travels in the
environment the Codex process is launched with, and the server asks Codex to
forward it by NAME (env_vars, env_http_headers, bearer_token_env_var).
A ${VAR} that is the whole of such a value is forwarded the same way, from
the environment the agent was launched with. A command, argument or url is
written as it is in .mcp.json; a server with a variable in one, or with a
variable mixed into other text in an env or header value, is left out and
named in the log, never written with the variable’s value.