Python SDK: OAuth
The methods of the Python client under OAuth. Authorization, token exchange and discovery for scoped third-party apps.
client.oauth.mcp_resource
client.oauth.mcp_resource() -> models.OAuthResourceMetadataSends oauth.mcpResource: GET /.well-known/oauth-protected-resource/mcp
Discover the MCP resource.
Access public: no credential.
client.oauth.metadata
client.oauth.metadata() -> models.OAuthServerMetadataSends oauth.metadata: GET /.well-known/oauth-authorization-server
Discover authorization.
Access public: no credential.
client.oauth.register
client.oauth.register(body: models.RegisterOAuthClient) -> models.RegisteredOAuthClientSends oauth.register: POST /oauth/register
Register a public client dynamically.
Access public: no credential.
client.oauth.resource
client.oauth.resource() -> models.OAuthResourceMetadataSends oauth.resource: GET /.well-known/oauth-protected-resource
Discover the API resource.
Access public: no credential.
client.oauth.token
client.oauth.token(body: models.OAuthTokenRequest) -> models.OAuthTokensSends oauth.token: POST /oauth/token
Exchange or refresh tokens.
Access public: no credential.

