/mcp
Manage Model Context Protocol server connections
/login
Sign in to your Anthropic account
/logout
Sign out from your Anthropic account
/install
Install or update the Claude Code binary
/install-github-app
Set up Claude GitHub Actions
/install-slack-app
Install the Claude Slack app
/feedback
Submit feedback or report a bug
/upgrade
Upgrade to the Max plan
/mcp
Manages MCP (Model Context Protocol) server connections for the current session. Opens an interactive management panel, or accepts sub-commands for non-interactive use. Arguments:[enable | disable [server-name]] [reconnect <server-name>]Immediate: yes
Interactive panel
Running/mcp without arguments opens the MCP management panel where you can:
- See all configured servers and their connection status
- Enable or disable individual servers
- View error messages for failed connections
- Trigger a manual reconnect
Sub-commands
Enable / disable servers
target is all, every non-IDE server is toggled. When a specific name is given, only that server is affected.
Reconnect a server
Force a disconnected server to reconnect:Configuring MCP servers
MCP servers are declared insettings.json (user or project level). Claude Code connects to them at startup and makes their tools available under the mcp__<server>__<tool> naming convention.
- stdio server
- HTTP server
- Multiple servers
A local server process spawned by Claude Code:
Environment variable interpolation (
${VAR_NAME}) is supported in env values and in args. Variables are resolved from the shell environment at startup.MCP server tool naming
Every tool provided by a connected MCP server is available to Claude under the name:github with a tool create_issue is invoked as mcp__github__create_issue. You can add these names to permission allow/deny rules in settings.json.
Authentication
If an MCP server requires OAuth, Claude Code will surface an authentication tool in place of the server’s real tools. Claude can call it to start the OAuth flow and return an authorization URL for the user to complete. See McpAuthTool for details./login
Signs in to your Anthropic account using OAuth. After authentication, Claude Code uses your account’s API key and subscription for all requests. Arguments: noneNon-interactive: no
Disabled by:
DISABLE_LOGIN_COMMAND=1 environment variable
When to use
- First-time setup on a new machine.
- Switching to a different Anthropic account.
- After your session token has expired.
API key authentication
If you prefer to use an API key directly, set theANTHROPIC_API_KEY environment variable instead of using /login. The /login command is disabled when this variable is set.
/logout
Signs out from the currently authenticated Anthropic account. Revokes the local session token. Arguments: noneNon-interactive: no
Disabled by:
DISABLE_LOGOUT_COMMAND=1 environment variable
/install
Installs or reinstalls the Claude Code native binary to~/.local/bin/claude. This is the self-update pathway for users who installed via npm and want to migrate to the native binary, or who need to repair a broken installation.
Arguments: [--force] [--target latest|stable|<version>]
Check existing installation
Detects any existing npm-based or binary installations and reports their state.
Install to PATH
Moves the binary to
~/.local/bin/claude (macOS/Linux) or %USERPROFILE%\.local\bin\claude.exe (Windows)./install-github-app
Sets up Claude GitHub Actions for a repository, allowing Claude Code to review pull requests and respond to GitHub issues automatically. Arguments: noneAvailability: claude.ai subscribers and direct API users
Non-interactive: no
Disabled by:
DISABLE_INSTALL_GITHUB_APP_COMMAND=1
- GitHub OAuth — authenticate with GitHub to access the target repository.
- Repository selection — choose which repository to configure.
- API key setup — create or select a
CLAUDE_CODE_API_KEYsecret in the repository. - Workflow creation — add
.github/workflows/claude.ymlto the repository. - App installation — optionally install the Claude GitHub App for richer integration.
@claude mentions in pull request comments and issues.
The GitHub Actions integration uses the Anthropic API key you provide, billed against your account. It is not included in the claude.ai subscription.
/install-slack-app
Connects Claude Code to your Slack workspace, enabling you to interact with Claude directly from Slack channels. Arguments: noneAvailability: claude.ai subscribers
Non-interactive: no
@Claude in any Slack channel or DM to start a conversation.
/desktop
Transfers the current session to the Claude Desktop app. The conversation history is handed off and the session continues in the desktop client. Aliases:appAvailability: claude.ai subscribers, macOS and Windows (x64) only
Arguments: none
This command is only available on macOS and Windows (x64). It requires the Claude Desktop app to be installed. Linux is not currently supported.
/ide
Opens the IDE integration setup panel for connecting Claude Code to VS Code, JetBrains IDEs, or other supported editors. The integration enables inline diff views, permission UI, and file-level context sharing. Arguments: none/feedback
Opens a feedback submission dialog for sending bug reports or feature requests to Anthropic. Aliases:bugArguments:
[report]Non-interactive: no
Disabled on: Bedrock, Vertex, Foundry deployments; when
DISABLE_FEEDBACK_COMMAND=1; when essential-traffic-only mode is active
report sub-command pre-selects the bug report category.
/upgrade
Opens the plan upgrade flow for claude.ai subscribers who want to move from the Pro plan to Max for higher rate limits and more Opus access. Arguments: noneAvailability: claude.ai subscribers (non-enterprise)
Disabled by:
DISABLE_UPGRADE_COMMAND=1