Model Context Protocol Python Sdk
OAuth client support in `mcp.client.auth` allows credentials to be sent to an authorization server selected by an untrusted MCP server. Specifically, `ClientCredentialsOAuthProvider` and `PrivateKeyJWTOAuthProvider` cannot identify the authorization server that owns their credentials. Affected HTTP clients using these providers, `OAuthClientProvider`, or the deprecated `RFC7523OAuthClientProvider` may disclose a `client secret`, authorization code, PKCE `code verifier`, or signed client assertion. This issue does not affect MCP servers, stdio clients, or clients that attach their own tokens or headers.