Skip to content

Conversation

@xiaoyijun
Copy link
Contributor

According to the RFC, the supported scopes filed name should be scopes_supported rather than scope_supported.

@xiaoyijun xiaoyijun requested a review from gao-sun July 10, 2025 03:21
@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@gao-sun gao-sun requested a review from Copilot July 10, 2025 04:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the OAuth metadata property name to match RFC8414 by replacing scope_supported with scopes_supported and adjusts tests and type definitions accordingly.

  • Tests now mock and assert the new scopes_supported (server response) and scopesSupported (client output) fields for both OAuth and OIDC
  • OAuth types (authorizationServerMetadataObject) have replaced scope_supported with scopes_supported and updated the inline documentation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/mcp-auth/src/utils/fetch-server-config.test.ts Added scopes_supported to mocked well-known responses and assertions
packages/mcp-auth/src/types/oauth.ts Replaced scope_supported with scopes_supported in the Zod schema

@xiaoyijun xiaoyijun merged commit 073aaea into master Jul 10, 2025
5 checks passed
@xiaoyijun xiaoyijun deleted the xiaoyijun-fix-auth-server-metadata branch July 10, 2025 05:25
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