Skip to content

Commit 66c783e

Browse files
committed
docs: add CIMD usage example to simple-auth-client
Update simple-auth-client to demonstrate using client_metadata_url parameter for SEP-991 CIMD support.
1 parent 7d68025 commit 66c783e

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)