Skip to content

Commit 04ac645

Browse files
committed
fix(examples): pass full MCP endpoint to OAuthClientProvider
1 parent cc3b552 commit 04ac645

File tree

1 file changed

+1
-1
lines changed
  • examples/clients/simple-auth-client/mcp_simple_auth_client

1 file changed

+1
-1
lines changed

examples/clients/simple-auth-client/mcp_simple_auth_client/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async def _default_redirect_handler(authorization_url: str) -> None:
207207
# Create OAuth authentication handler using the new interface
208208
# Use client_metadata_url to enable CIMD when the server supports it
209209
oauth_auth = OAuthClientProvider(
210-
server_url=self.server_url.replace("/mcp", ""),
210+
server_url=self.server_url,
211211
client_metadata=OAuthClientMetadata.model_validate(client_metadata_dict),
212212
storage=InMemoryTokenStorage(),
213213
redirect_handler=_default_redirect_handler,

0 commit comments

Comments
 (0)