{"version":"2.1.186","anchor":"mcp-oauth-login-and-logout-commands","canonical_anchor":"mcp-oauth-login-and-logout-commands","heading":"MCP OAuth Login and Logout Commands","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.186\/e\/mcp-oauth-login-and-logout-commands","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.186","markdown":"### MCP OAuth Login and Logout Commands\n\nTwo new `mcp` subcommands let you authenticate with and de-authenticate from MCP servers that use OAuth (HTTP, SSE, or claude.ai connectors).\n\n**Usage**\n\n`# 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 \u2014 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\"`)"}