You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OAuth metadata url building should use authorization_server as base_url rather than mcp server url #762
Describe the bug
When I'm trying to connect to github-mcp-server, it always raises a 403 Error. After investigating code I believe it's due to wrong base_url when building authorization server url.
then the built metadata well-known url is /.well-known/oauth-authorization-server/mcp which path comes from mcp server url. However the right url should be /.well-known/oauth-authorization-server/login/oauth and the path comes from authorization_servers.
Expected behavior
Build the metadata url with authorization_servers.
Additional context
I also tried python sdk and it is working. the related code is using authorization_server_url to build the metadata url.
changed the title [-]OAuth authorization server url building should use authorization_server as base_url rather than mcp server url[/-][+]OAuth metadata url building should use authorization_server as base_url rather than mcp server url[/+]on Jul 11, 2025
Activity
[-]OAuth authorization server url building should use authorization_server as base_url rather than mcp server url[/-][+]OAuth metadata url building should use authorization_server as base_url rather than mcp server url[/+]