Skip to content

Preserve OAuth resource path during scope discovery#1618

Open
blakewang-atlassian wants to merge 1 commit into
modelcontextprotocol:mainfrom
blakewang-atlassian:bwang7/preserve-oauth-resource-path
Open

Preserve OAuth resource path during scope discovery#1618
blakewang-atlassian wants to merge 1 commit into
modelcontextprotocol:mainfrom
blakewang-atlassian:bwang7/preserve-oauth-resource-path

Conversation

@blakewang-atlassian

Copy link
Copy Markdown

Summary

  • Preserve the full MCP server URL when discovering OAuth protected resource metadata
  • Add a regression test for path-based MCP endpoints such as /v1/mcp/preview

Why

Some MCP servers expose different protected resource metadata per path. Discovering metadata from the origin URL drops the endpoint path and can cause Inspector to request scopes for the wrong resource.

Test plan

  • npm test -- --runTestsByPath src/lib/hooks/tests/useConnection.test.tsx
  • npx prettier --check client/src/lib/hooks/useConnection.ts client/src/lib/hooks/tests/useConnection.test.tsx
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant