MCP configurations with "-" (dash), don't show tools on"/mcp"
What version of Codex CLI is running?
codex-cli 0.115.0-alpha.27
What subscription do you have?
Plus
Which model were you using?
gpt-5.3-codex
What platform is your computer?
Darwin 25.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
iTerm2
What issue are you seeing?
MCP integration is working OK. Codex sees all the tools in its session.
The issue is on TUI side only, when a user write "/mcp" an MCP configuration with no tools discovered is shown if there is a "-" in the configuration's name.
Example:
[mcp_servers.timetracker_foo]
url = "http://127.0.0.1:5173/mcp"
[mcp_servers.timetracker-foo]
url = "http://127.0.0.1:5173/mcp"
<img width="1241" height="122" alt="Image" src="https://github.com/user-attachments/assets/a0931552-4e57-4bc0-955f-03e82443b518" />
<img width="1004" height="128" alt="Image" src="https://github.com/user-attachments/assets/12f9e549-d44c-4a9a-bfac-e009363afdc5" />
The issue could be with TOML parsing, I believe.
<img width="507" height="133" alt="Image" src="https://github.com/user-attachments/assets/48618e1d-31c4-4624-bdaf-146a644d266f" />
What steps can reproduce the bug?
Define mcp configuration with "-" and not in their section names.
Example:
[mcp_servers.timetracker_foo]
url = "http://127.0.0.1:5173/mcp"
[mcp_servers.timetracker-foo]
url = "http://127.0.0.1:5173/mcp"
What is the expected behavior?
/mcp should give the same output in both cases.
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗