{"version":"2.1.271","anchor":"oauth-loopback-redirect-uri-normalization-for-mcp-servers","canonical_anchor":"oauth-loopback-redirect-uri-normalization-for-mcp-servers","heading":"OAuth loopback redirect URI normalization for MCP servers","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/oauth-loopback-redirect-uri-normalization-for-mcp-servers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### OAuth loopback redirect URI normalization for MCP servers\n\nMCP OAuth redirect URI checks now normalize 127.0.0.1 and localhost as equivalent loopback addresses\n\n**What**\n\nWhen Claude Code validates the redirect URI (the address a login flow sends you back to) for an MCP server's OAuth login, it now recognizes `127.0.0.1` and `localhost` as equivalent loopback addresses. New helper logic normalizes one to the other before comparing, and extracts the port number for later use.\n\n**Why**\n\nSome OAuth providers or local servers may use `127.0.0.1` while others use `localhost` for the same local address; treating them as equivalent avoids OAuth login failing due to this mismatch.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}