Skip to main content
reopt Handbook
reopt Handbook
Codex Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Options

Task guides

Core Command GroupSession Command GroupCustom Command GuideMCP Command and Integration GuideDesign Workflows

Conversation and context

Cmd. /archiveCmd. /copyCmd. /importCmd. /cd

Planning and execution

Cmd. /goalCmd. /app

Models and settings

Cmd. /model

Permissions and integrations

Cmd. /pluginsCmd. /hooksCmd. /mcp

Display and input

Cmd. /statuslineCmd. /tuiCmd. /worktreeCmd. /voice

Account and usage

Cmd. /usage

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Codex Command Master›Cmd. /mcp
한국어KOEnglishEN

Cmd. /mcp

List configured MCP tools and inspect server diagnostics.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • List configured MCP tools and inspect server diagnostics.
  • If tools are missing, narrow the cause with /mcp verbose; from 0.161.0 you can sign in to an MCP server from a running session with /mcp login <name>.

Purpose

List configured MCP tools and inspect server diagnostics; the 0.161.0 release notes add /mcp login to sign in to a server from the session.

/mcp

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-10-23 · Codex CLI 0.163.0

The installed command menu and account or organization settings determine availability.

Examples

/mcp
/mcp login github

When to use it

  1. Run /mcp before asking Codex to use an external tool.
  2. Run /mcp verbose when a server is present but a tool is missing or failing.
  3. Confirm the design-context, metadata, and screenshot tools before starting from a Figma node.

Choosing related commands

CommandDifferenceChoose It When
/mcpLists MCP tools and diagnosticsYou need the actual tool surface
/appsInserts app mentionsYou need a connector in the prompt
/pluginsManages packaged capabilitiesYou need to inspect installed bundles

Effects and persistence

Inspects configured MCP servers and exposed tools. /mcp login followed by a server name starts that server's sign-in from the active terminal session (per the 0.161.0 release notes; not yet in the official table). Use the appropriate codex mcp subcommand to add or remove servers.

/mcp lists configured Model Context Protocol tools available to Codex. Use /mcp verbose for server-level diagnostics.

Authentication in 0.155.0

Local TUI sessions on supported Macs can use Touch ID verification for MCP requests. Expired OAuth credentials are reported more accurately, with reconnect guidance after refresh failure.

Official changelog

OAuth client secrets in 0.158.0

Servers that require a pre-registered OAuth client secret connect through codex mcp add --oauth-client-secret or oauth.client_secret in the server configuration. The secret must be set together with a client ID and is kept out of debug output and authorization URLs. The same release adds mcp_servers.<name>.tool_input_schema_max_bytes (5,000 bytes by default) to adjust when a large MCP tool's input schema is compacted.

In-session sign-in in 0.161.0

From 0.161.0, /mcp login <name> signs in to an MCP server from an active session. According to the pull-request description, it opens the authorization URL in the browser and shows success or failure in the thread that ran the command. The shell command codex mcp login <name> still works. The official slash table does not list the login argument yet, so confirm the behavior in the installed build.

/mcp login <name>

rust-v0.161.0 release notes

Cautions

  • Tool availability can differ by profile, workspace, and trust state.
  • Pair MCP write or destructive tools with /permissions and team policy.
  • Do not read “deprecated” as “already removed,” and do not postpone migration merely because the old subcommand still starts.

Official sources

  • Developer Commands
  • Cli
  • Overview#Mcp
  • Figma Designs To Code
  • Changelog
  • Rust V0.158.0
  • Rust V0.161.0

Complete command list · Verification scope · History for this command

Related docs

MCP Integration

Advanced Codex Usage · Connect Codex to MCP servers with explicit tool, data, and trust boundaries.

MCP Integration

Claude Code Complete Guide · Connect Claude Code to tools and resources through Model Context Protocol servers.

Cmd. /mcp

Claude Code Command Master · Manage MCP connections, OAuth, and enabled state.

Config

Advanced Codex Usage · Design Codex configuration layers, profiles, and safe defaults for team usage.

MCP Enterprise Data

Vercel Enterprise AI Platform · Connect enterprise systems to AI agents through MCP tools, resources, and prompts.

Cmd. /hooks

Review lifecycle hooks and manage trust or disabled state.

Cmd. /statusline

Configure TUI footer status-line fields.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceAuthentication in 0.155.0OAuth client secrets in 0.158.0In-session sign-in in 0.161.0CautionsOfficial sources