π The fast, Pythonic way to build MCP servers and clients.
Honor client supplied scopes during registration (#1860)
Daniel Mikusaae8f4fc67966
diff --git a/src/fastmcp/server/auth/oauth_proxy.py b/src/fastmcp/server/auth/oauth_proxy.pyindex 6b64bda49..f7e7e92da 100644--- a/src/fastmcp/server/auth/oauth_proxy.py+++ b/src/fastmcp/server/auth/oauth_proxy.py@@ -407,7 +407,7 @@ class OAuthProxy(OAuthProvider):redirect_uris=client_info.redirect_uris or [AnyUrl("http://localhost")],grant_types=client_info.grant_typesor ["authorization_code", "refresh_token"],- scope=self._default_scope_str,+ scope=client_info.scope or self._default_scope_str,token_endpoint_auth_method="none",allowed_redirect_uri_patterns=self._allowed_client_redirect_uris,)