Skip to content

Regression when using OAuth mcp servers #390

@stephenlacy

Description

@stephenlacy

Describe the bug
This commit b7ec382 seems to have introduced a side-effect where an OAuth mcp server is not queried correctly.
Calling connect on a server with a valid .well-known/oauth-authorization-server is instead going to the local server: http://localhost:6277/.well-known/oauth-authorization-server.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout the prior commit 8b38d6b
  2. Run any sse mcp server with an OAuth metadata endpoint and attempt to connect to it
  3. Observe that the request correctly goes to the mcp server's base url
  4. Checkout b7ec382
  5. Run the same sse mcp server with an OAuth metadata endpoint and attempt to connect to it
  6. Observe that the request now goes to the proxy not the intended metadata endpoint

Logs
The first three requests are from the prior commit and are correct 8b38d6b
The second group of sse requests are from the regression, the requests are now going to the proxy only.
Image

Metadata

Metadata

Assignees

Labels

authIssues and PRs related to authorizationbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions