MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / oauth_client_metadata

Function oauth_client_metadata

tests/interaction/auth/_harness.py:205–215  ·  view source on GitHub ↗

Build the client's registration metadata. `scope` is left unset so the SDK's scope-selection strategy chooses one from the server's metadata before registration.

()

Source from the content-addressed store, hash-verified

203
204
205def oauth_client_metadata() -> OAuthClientMetadata:
206 """Build the client's registration metadata.
207
208 `scope` is left unset so the SDK's scope-selection strategy chooses one from the server's
209 metadata before registration.
210 """
211 return OAuthClientMetadata(
212 client_name="interaction-suite",
213 redirect_uris=[AnyUrl(REDIRECT_URI)],
214 grant_types=["authorization_code", "refresh_token"],
215 )
216
217
218def shimmed_app(

Calls 1

OAuthClientMetadataClass · 0.90