File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
examples/clients/simple-auth-client/mcp_simple_auth_client Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -185,12 +185,14 @@ async def _default_redirect_handler(authorization_url: str) -> None:
185185 webbrowser .open (authorization_url )
186186
187187 # Create OAuth authentication handler using the new interface
188+ # Use client_metadata_url to enable CIMD (SEP-991) when the server supports it
188189 oauth_auth = OAuthClientProvider (
189190 server_url = self .server_url ,
190191 client_metadata = OAuthClientMetadata .model_validate (client_metadata_dict ),
191192 storage = InMemoryTokenStorage (),
192193 redirect_handler = _default_redirect_handler ,
193194 callback_handler = callback_handler ,
195+ client_metadata_url = "https://example.com/simple-auth-client" ,
194196 )
195197
196198 # Create transport with auth handler based on transport type
You can’t perform that action at this time.
0 commit comments