View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/client/auth/oauth.py
ClientRegistrationResponse
Attributes
MCP client instance
MCP client instance
MCP client instance
MCP client instance
List of items
List of items
List of items
MCP client instance
String value
method init
Create a new model by parsing and validating input data from keyword arguments.Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self is explicitly positional-only to allow self as a field name.ParametersSignatureParameter value
FileTokenStorage
OAuth
method init
Initialize OAuth handler.ParametersSignatureThe MCP server URLToken storage implementation. Defaults to FileTokenStorageOAuth scopes to requestOAuth client ID. If not provided, will attempt dynamic registrationOAuth client secret (for confidential clients)Port for local callback server, if empty, 8080 is usedOAuth client provider to prevent metadata discovery
OAuthClientProvider
method init
Create a new model by parsing and validating input data from keyword arguments.Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self is explicitly positional-only to allow self as a field name.ParametersSignatureParameter value
ServerOAuthMetadata
Attributes
Parameter value
Parameter value
Parameter value
Parameter value
Parameter value
Parameter value
Parameter value
Parameter value
List of items
List of items
List of items
List of items
List of items
List of items
List of items
method init
Create a new model by parsing and validating input data from keyword arguments.Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self is explicitly positional-only to allow self as a field name.ParametersSignatureParameter value
TokenData
method init
Create a new model by parsing and validating input data from keyword arguments.Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self is explicitly positional-only to allow self as a field name.ParametersSignatureParameter value