Skip to content

Improved supported for ProtectedResourceMetadata #1235

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

Conversation

yannj-fr
Copy link
Contributor

@yannj-fr yannj-fr commented Aug 4, 2025

Improving ProtectedResourceMetadata and feed .well-known/oauth-protected-resource

Motivation and Context

The current ProtectedResourceMetadata was a partial implementation.
I added the full RFC 9728 parameters.
I also improved the create_protected_resource_routes so it is possible to add resource_name (RECOMMENDED in RFC9728) and resource_document, they are of course optional

How Has This Been Tested?

Tested with basic server (and fastmcp)

Breaking Changes

No

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

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@yannj-fr yannj-fr requested a review from a team as a code owner August 4, 2025 18:24
@yannj-fr yannj-fr requested a review from ochafik August 4, 2025 18:24
pcarleton
pcarleton previously approved these changes Aug 4, 2025
Copy link
Contributor

@pcarleton pcarleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@pcarleton pcarleton enabled auto-merge (squash) August 4, 2025 18:27
@pcarleton pcarleton merged commit 68e25d4 into modelcontextprotocol:main Aug 4, 2025
10 checks passed
@Kludex
Copy link
Member

Kludex commented Aug 4, 2025

Can someone please be transparent about what are those sneaky merges? @ihrpr @dsp-ant

I've seen a lot of 1-minute PRs pretty frequently with no tests or code quality consideration. This seems too weird.


This PR is very short, and I don't see anything bad besides lack of tests, but this has happened a lot.

@yannj-fr
Copy link
Contributor Author

yannj-fr commented Aug 4, 2025

I will add test

@yannj-fr yannj-fr deleted the feature/expose-protected-resource-metadata branch August 4, 2025 19:46
@yannj-fr yannj-fr restored the feature/expose-protected-resource-metadata branch August 4, 2025 19:46
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.

3 participants