promptgarten ๐ŸŒฑ
๐ŸŒ ES

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.

โœ… 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