promptgarten 🌱

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

Compare all 28 tasks β†’

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

MORE COMMANDS Β· Codex CLI

/skills/goalcodex execcodex reviewcodex resumecodex apply/init/compact/reasoning/fast/personality/memories

All commands Β· Codex CLI β†’

Share:𝕏inπŸ’¬