Command reference Β· Codex CLI
/mcp
Shows or manages the MCP servers connected to Codex.
/mcp is part of the official list of interactive slash commands and corresponds to the CLI subcommands mcp and mcp-server, used to configure MCP servers. Within the session, /mcp gives access to the connected MCP servers.
π THE SAME TASK (βMANAGE MCP SERVERSβ) ON OTHER PLATFORMS
β WHEN TO USE IT?
Check which MCP servers are currently available
/mcp β see which external tools/servers are available to the session
Verify access before a task that needs external tools
/mcp β check whether a required MCP server is connected before starting a task that needs it
β WHEN NOT TO?
It's only about local file/code changes with no external tools
Without a need for MCP servers, /mcp adds no value for the task.
Better: Proceed directly with the actual task without touching MCP configuration
SOURCES
- Codex CLI docs: Slash Commands β learn.chatgpt.com