Add interactive enable/disable controls to /mcp

Resolved 💬 2 comments Opened May 6, 2026 by lancewillett Closed May 7, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Feature request

Make MCP management available directly from /mcp in the Codex CLI.

Problem

Today, disabling an MCP requires editing the Codex config file and restarting Codex. That works, but it is harder than it needs to be for common MCP troubleshooting.

Suggested flow

  1. Type /mcp
  2. Select an MCP server
  3. Choose an action:
  • Reconnect
  • Enable
  • Disable
  • Remove
  • Login/logout, when supported
  1. Codex applies the change and updates the MCP status

Why this helps

This would make MCP troubleshooting much more user-friendly. It also keeps users in the CLI instead of requiring config-file edits for routine enable/disable tasks.

Current workaround

Manually set enabled = true or enabled = false under the relevant MCP server entry in the Codex config file, then restart Codex.

Environment

Observed with Codex CLI 0.128.0.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #20995
  • #19835
  • #20195

Powered by Codex Action

lancewillett · 3 months ago

Closing in favor of #20995.