Skip to content

/mcp stops showing tools for MCP servers with hyphens in their names in 0.115.0 #14927

Closed

Description

@theOxifier

What version of Codex CLI is running?

codex-cli 0.115.0

What subscription do you have?

Pro

Which model were you using?

not important

What platform is your computer?

Linux 6.16.8-200.fc42.x86_64 x86_64 unknown

What terminal emulator and version are you using (if applicable)?

N/A

What issue are you seeing?

Codex accepts MCP server names matching ^[a-zA-Z0-9_-]+$, but /mcp fails to show tools for servers whose configured name contains -.

Example server name:

  • mocop-mainline

But /mcp shows no tools for that server.

Changing the name to only use _ then shows the tools again.

Resources and Resource templates still work correctly and show up under the server name.

What steps can reproduce the bug?

add an mcp server with a name containing - and the tools disappear.

A few examples
gitnexus mcp server
No dashes in name gitnexus
Image

Dash in name git-nexus
Image

assury mocop mcp gateway server
underscore in name
Image

dash in name
Image

What is the expected behavior?

names with - should show tools correctly if the filter for valid names includes -.

Additional information

No response

Activity

  1. added
    bug
    on Mar 17, 2026
  2. added
    CLI
    mcp
    TUI
    on Mar 17, 2026
  3. github-actions commented on Mar 17, 2026

    @github-actions
    Contributor
  4. added
    regression
    and removed
    CLI
    on Mar 17, 2026
  5. etraut-openai commented on Mar 17, 2026

    @etraut-openai
    Contributor

    Do you suspect that this is a regression? The title says "stops showing", which seems to imply that some past version supported this. If so, do you know what was the last version where this stopped working?

  6. removed
    regression
    on Mar 17, 2026
  7. theOxifier commented on Mar 17, 2026

    @theOxifier
    Author

    Yes. I am not home to check at the moment, but I keep up daily with patch updates and things were working fine yesterday. When I pulled updates this morning I started seeing issues.

  8. yyb196 commented on Mar 19, 2026

    @yyb196

    I’m encountering the same problem.

  9. theOxifier commented on Mar 19, 2026

    @theOxifier
    Author

    @etraut-openai Can you help me understand why you removed the regression label?

  10. yitoli-c commented on Mar 19, 2026

    @yitoli-c

    Seeing the same issue

  11. added
    regression
    on Mar 19, 2026
  12. bduffany commented on Mar 23, 2026

    @bduffany

    Seeing this issue as well.

    Image
  13. 22 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbugmcpregression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions