{"version":"2.1.101","anchor":"mcp-oauth-completion-tool","canonical_anchor":"mcp-oauth-completion-tool","heading":"MCP OAuth Completion Tool","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.101\/e\/mcp-oauth-completion-tool","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.101","markdown":"### MCP OAuth Completion Tool\n\n**What**\n\nA new `complete_authentication` tool for MCP servers that enables completing OAuth authorization flows directly within Claude Code, particularly useful in remote\/SSH sessions where browser redirects don't work.\n\n**Usage**\n\nWhen an MCP server requires OAuth authentication, Claude can now call the `authenticate` tool to start the flow, then use `complete_authentication` with the callback URL the user pastes from their browser's address bar.\n\n**Details**\n\n- Handles the full OAuth callback flow: validates the URL contains an authorization code, resolves the pending auth promise, and reports success or failure\n- Provides clear error messages when no OAuth flow is in progress, the callback URL is malformed, or authentication fails\n- Specifically designed for remote sessions where `http:\/\/localhost:<port>\/callback` pages fail to load but the URL in the address bar is still valid\n\n**Evidence**\n\nMCP OAuth completion handler (search for `\"Complete an in-progress OAuth flow for the\"`)"}