Skip to main content

Module oauth

Module oauth 

Source
Expand description

MCP OAuth Token Exchange

Implements the OAuth 2.0 Client Credentials flow for machine-to-machine authentication with MCP servers that require bearer tokens.

Structs§

TokenResponse
Token response from an OAuth token endpoint.

Functions§

exchange_client_credentials
Exchange client credentials for an access token (OAuth 2.0 Client Credentials flow).