Claude Code
Claude Code Followed MCP Redirects With Your Refresh Token
Claude Code 2.1.321, released 9 November, stops MCP OAuth requests from following a redirect to another host. In 18 scripted runs against a fake MCP server on loopback, 2.1.319 followed a 307 on the token endpoint and delivered the authorization code, the PKCE verifier and the refresh token to the second host, then accepted that host's tokens and printed Authenticated. The Authorization header was stripped; the form body was not. 2.1.321 and 2.1.322 stop the request and name both hosts, same-host redirects still work, and a redirect on the MCP endpoint itself is still followed without the bearer token.
12 Nov 20267 min read