File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1313import httpx
1414
1515from mcp .client .auth import OAuthClientProvider , TokenStorage
16+ from mcp .client .auth .utils import build_oauth_authorization_server_metadata_discovery_urls
1617from mcp .client .streamable_http import streamablehttp_client , MCP_PROTOCOL_VERSION
1718from mcp .shared .auth import (
1819 OAuthClientInformationFull ,
@@ -190,8 +191,10 @@ async def perform_client_credentials_flow(self) -> None:
190191
191192 async def _discover_oauth_metadata (self ) -> None :
192193 """Discover OAuth metadata using upstream MCP SDK discovery logic."""
193- # Use the inherited _get_discovery_urls method from parent class
194- discovery_urls = self ._get_discovery_urls ()
194+
195+ discovery_urls = build_oauth_authorization_server_metadata_discovery_urls (
196+ self .context .auth_server_url , self .context .server_url
197+ )
195198
196199 async with httpx .AsyncClient () as client :
197200 for metadata_url in discovery_urls :
You can’t perform that action at this time.
0 commit comments