Skip to content

Commit 643ae86

Browse files
committed
comment
1 parent b0f0222 commit 643ae86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mcp/client/auth.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ async def _handle_protected_resource_response(self, response: httpx.Response) ->
268268
if metadata.authorization_servers:
269269
self.context.auth_server_url = str(metadata.authorization_servers[0])
270270

271-
# Only set scope if client_metadata.scope is None
272-
# Per MCP spec, priority order:
271+
# Per MCP spec, scope selection priority order:
273272
# 1. Keep client scope if configured
274273
# 2. Use scope from WWW-Authenticate header (if provided)
275274
# 3. Use all scopes from PRM scopes_supported (if available)

0 commit comments

Comments
 (0)