Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.186 ·

MCP OAuth Login and Logout Commands

Entry
JSON All of v2.1.186
EntryKind: in v2.1.186,
New FeaturesSection of the release

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.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded claude mcp login <name> and claude mcp logout <name> to authenticate MCP servers from the CLI without opening the interactive /mcp…

See this entry in the whole of v2.1.186 →

Feedback