Cmd. /mcp
Manage MCP connections, OAuth, and enabled state.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Manage MCP connections, OAuth, and enabled state.
- Check the input surface and availability before using the examples below.
Purpose
Manage MCP connections, OAuth, and enabled state.
/mcp [reconnect (<server>|all)|enable|disable [<server>|all]]Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Claude Code 2.1.308 |
In addition to the interactive UI, a bare invocation in -p prints server status on v2.1.205+. reconnect all in the interactive terminal requires v2.1.284+.
Examples
/mcp
/mcp reconnect allEffects and persistence
Manages server connections, OAuth, and enabled state. Toggling or reconnecting servers changes subsequent tool availability.
Direct operations
Use /mcp reconnect server-name for one disconnected server. /mcp reconnect all retries every server that failed or needs authentication (v2.1.284+ in the interactive terminal). /mcp enable server-name and /mcp disable all change enabled state directly. MCP prompts exposed as /mcp__server__prompt are separate dynamically discovered commands.
Cautions
Authentication, enabled state, and tool permissions are separate causes of failed calls; inspect each before reconnecting repeatedly.
From v2.1.287, servers on the 2025-11-25 protocol can send URL prompts, for example to sign in; if a server stops connecting after the update, add "bareElicitationCapability": true to its MCP config entry. The same version makes a server's alwaysLoad: false defer all of its tools behind tool search. Stdio servers negotiate protocol revision 2026-07-28 by default on every install from v2.1.292, after a staged rollout from v2.1.285; set MCP_PROTOCOL_NEGOTIATION=legacy to keep the earlier handshake. From v2.1.295, claude.ai connectors also negotiate protocol revision 2026-07-28 by default on installs that fetch no feature flags, such as sessions with telemetry or feature-flag fetching turned off; the same variable opts out. From v2.1.285 the server name widgets is reserved in cloud sessions and on self-hosted runners, and claude mcp get hides the command, arguments, and environment values of plugin-provided stdio servers.