`codex mcp add -c` argument does nothing.
Update - this bug report is in error, -c is not specific to the codex mcp add command.
Closing now.
~~### What version of Codex CLI is running?~~
~~codex-cli 0.118.0-alpha.2~~
~~### What subscription do you have?~~
~~Pro~~
~~### Which model were you using?~~
~~gpt-5.4~~
~~### What platform is your computer?~~
~~Darwin 25.3.0 arm64 arm~~
~~### What terminal emulator and version are you using (if applicable)?~~
~~_No response_~~
~~### What issue are you seeing?~~
~~## Issues with codex mcp add command arguments~~
~~* --config / -c does not work at all to set values, including cwd.~~
~~* Does not prevent usage of stdio only arguments like --env when the MCP server being added has the --url flag.~~
~~* Command does not support --cwd.~~
~~ * For ease of use, I think most users would appreciate it if this was an explicit option just like --env is.~~
~~ * This is especially painful since -c does not seem to work.~~
~~### What steps can reproduce the bug?~~
~~``~~-c
~~# step 1 - add a dummy "mcp server" and use the flag, exactly like is shown in codex mcp add --help`~~
~~$ codex mcp add test123 '-c model=o3' -- sleep 123~~
~~Added global MCP server 'test123'.~~
~~# step 2 - check on the "mcp server" that was added to the codex config~~
~~# notice that nothing was set, the -c flag did nothing.~~
~~$ tail ~/.codex/config.toml~~
~~[mcp_servers.test123]~~
~~command = "sleep"~~
~~args = ["123"]~~
~~```~~
~~### What is the expected behavior?~~
~~```~~
~~$ codex mcp add test123 '-c model=o3' -- sleep 123~~
~~Added global MCP server 'test123'.~~
~~$ tail ~/.codex/config.toml~~
~~[mcp_servers.test123]~~
~~command = "sleep"~~
~~args = ["123"]~~
~~model = "o3"~~
~~```~~
~~### Additional information~~
~~I have a branch in my fork to fix this, https://github.com/taimoorgit/codex/tree/codex/mcp-add-cwd~~
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗