Class Nexus\Mcp\Client\Auth\AuthorizedHttpClient

final
implements DelegateHttpClient

HTTP client decorator that presents an OAuth 2.1 bearer token to a protected MCP server, obtains one when challenged, and steps its scopes up when the server says they are insufficient. Hand it to StreamableHttpClientTransport in place of the default client.

Methods