We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1940040 commit 929df70Copy full SHA for 929df70
1 file changed
src/mcp/server/auth/handlers/register.py
@@ -68,11 +68,11 @@ async def handle(self, request: Request) -> Response:
68
),
69
status_code=400,
70
)
71
- if set(client_metadata.grant_types) != {"authorization_code", "refresh_token"}:
+ if not {"authorization_code", "refresh_token"}.issubset(set(client_metadata.grant_types)):
72
return PydanticJSONResponse(
73
content=RegistrationErrorResponse(
74
error="invalid_client_metadata",
75
- error_description="grant_types must be authorization_code and refresh_token",
+ error_description="grant_types must contain authorization_code and refresh_token",
76
77
78
0 commit comments