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
Regression: /mcp can show Tools: (none) for hyphenated MCP server names #15832
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serversregressionBehaviors that worked in previous versions but were broken due to an update
On codex-cli v0.116.0, /mcp can show Tools: (none) for MCP servers whose configured server name contains a hyphen (-), even when tools/list succeeds and returns tools.
Versions
Works: v0.114.0
Broken: v0.116.0
Repro
Configure any MCP server with a hyphenated server key in config, e.g. [mcp_servers.some-server].
Start codex-cli v0.116.0.
Run /mcp.
Observe: server appears enabled but tools are shown as (none).
Expected
Tools should be listed for that server (as in v0.114.0).
Likely Cause
Commit cb7d8f45a1393d71b333aea64123227028ae535f ("Normalize MCP tool names to code-mode safe form", #14605) changed MCP tool-name sanitization to replace - with _ in qualified names.
/mcp rendering still filters tool keys using a prefix built from the raw server name (including -):
expected prefix: mcp__some-server__
actual keys after sanitization: mcp__some_server__...
This mismatch causes the UI grouping path to show no tools for that server.
Why It Looks Silent
tools/list succeeds and conversion succeeds; tools are present but fail prefix matching during /mcp grouping/rendering.
Suggested Fix
Normalize server-name matching in /mcp grouping consistently with qualified-key sanitization, or avoid raw string prefix matching for grouping.
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serversregressionBehaviors that worked in previous versions but were broken due to an update
Activity
github-actions commentedon Mar 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
/mcpstops showing tools for MCP servers with hyphens in their names in0.115.0#14927Powered by Codex Action
etraut-openai commentedon Mar 27, 2026
Thanks for the bug report. This will be addressed in the next release.