Skip to content

Fix: Pre-registered Client ID as fallback to DCR #684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

2underscores
Copy link

@2underscores 2underscores commented Aug 5, 2025

Motivation and Context

The guided auth flow did not support static client fallback after dynamic client registration (DCR) had failed. This doesn't meet the MCP spec.

The MCP spec authorization states:

"Authorization servers and MCP clients SHOULD support the OAuth 2.0 Dynamic Client Registration Protocol (RFC7591).". The lack of fallback here means the auth debug flow doesn't meet MCP spec as it mandates that resource servers MUST support DCR.

This PR adds a static client credentials attempt as a fallback for failed DCR. If DCR is supported and successful, the static client will not be used.

Addresses #683.

How Has This Been Tested?

Tested locally with MCP servers with both DCR and static fallback.

Breaking Changes

No, purely an additive fallback.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Additional context

Potentially static client should take precedence if provided. That's the behaviour i'd personally expect, but that's opinionated. Either way, changes are expected to DCR as MCP spec roadmap already states looking for DCR alternatives

LMK if any changes needed, happy to change this around if another approach works better with the codebase, haven't worked with MCP inspector before.

@2underscores 2underscores changed the title Dcr fallback fix Fix: Pre-registered Client ID as fallback to DCR Aug 5, 2025
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