-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Regression: /mcp can show Tools: (none) for hyphenated MCP server names #15832
Copy link
Copy link
Closed
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serversIssues related to the use of model context protocol (MCP) serversregressionBehaviors that worked in previous versions but were broken due to an updateBehaviors that worked in previous versions but were broken due to an update
Metadata
Metadata
Assignees
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serversIssues related to the use of model context protocol (MCP) serversregressionBehaviors that worked in previous versions but were broken due to an updateBehaviors that worked in previous versions but were broken due to an update
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
On codex-cli v0.116.0,
/mcpcan showTools: (none)for MCP servers whose configured server name contains a hyphen (-), even whentools/listsucceeds and returns tools.Versions
Repro
[mcp_servers.some-server]./mcp.(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./mcprendering still filters tool keys using a prefix built from the raw server name (including-):mcp__some-server__mcp__some_server__...This mismatch causes the UI grouping path to show no tools for that server.
Why It Looks Silent
tools/listsucceeds and conversion succeeds; tools are present but fail prefix matching during/mcpgrouping/rendering.Suggested Fix
Normalize server-name matching in
/mcpgrouping consistently with qualified-key sanitization, or avoid raw string prefix matching for grouping.