Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.186 Home All releases olderv2.1.185 v2.1.187newer
Claude Code v2.1.186

MCP OAuth Login and Logout Commands

Two new mcp subcommands let you authenticate with and de-authenticate from MCP servers that use OAuth (HTTP, SSE, or claude.ai connectors).

Usage
# Authenticate with an MCP server
claude mcp login <name>

# Authenticate without opening a browser (SSH / headless sessions)
claude mcp login <name> --no-browser

# Remove stored OAuth credentials
claude mcp logout <name>
Details
  • mcp login opens your browser to an OAuth authorization page and waits for the redirect URL.
  • --no-browser prints the authorization URL instead of opening it — paste the redirect URL back into the terminal when prompted. For truly non-interactive contexts, the command reminds you to re-run with -t SSH or a proper terminal.
  • mcp logout clears stored credentials for the named server. The server remains in your config; only credentials are removed.
  • Works for HTTP and SSE servers. stdio servers do not support OAuth login and will show a clear error.
  • claude.ai connectors authenticate on the claude.ai side; credentials are not stored locally, so logout gives a different message.
Evidence

New mcp login / mcp logout command registration (search for "Authenticate with an MCP server (HTTP, SSE, or claude.ai connector)" and "Clear stored OAuth credentials for an MCP server")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.186 →