Skip to content

MCP configurations with "-" (dash), don't show tools on"/mcp" #15628

Closed as duplicate

Description

@mnowotnik

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"
Image Image

The issue could be with TOML parsing, I believe.

Image

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

Activity

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

    @github-actions
    Contributor
  4. mnowotnik commented on Mar 24, 2026

    @mnowotnik
    Author

    Confirmed duplicate.

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

    CLITUIbugmcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions