[BUG] Claude Code MCP OAuth2 Requirement for http servers, even in local environments

Resolved 💬 3 comments Opened Jul 11, 2025 by ZachHandley Closed Jan 5, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [X] Other: WSL2 / Windows 11 -- Claude Code on Ubuntu
  • Claude CLI version: 1.0.44
  • Operating System: Said above
  • Terminal: Windows Terminal ZSH on Ubuntu in WSl2

Bug Description

When adding a transport http server for Claude Code, it always requires OAuth2 setup, even in localhost. This seems wrong to me.

Steps to Reproduce

  1. Add http server via modelcontextprotocol
  2. Run local server and try to connect to it from Claude Code
  3. Get OAuth2 requests, and fetch failed's if you don't have it configured and setup properly

Expected Behavior

Claude Code connects and it works, because it is running successfully

Actual Behavior

It errored. Fetch failed, and when I did implement some dummy OAuth2 stuff, it gave me an invalid code error about not implementing PKCE, but really I just wanted it to work so I could have streamable events like Progress

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗