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 | ||
|---|---|---|
public
|
__construct(
string $resource,
AuthorizationOptions $options,
UserAuthorizationInterface $userAuthorization,
DelegateHttpClient $client,
null|TokenStoreInterface $tokens = null,
null|ClientRegistrationStoreInterface $registrations = null,
LoggerInterface $logger = new NullLogger(),
)
|
# |
public
|
request(Request $request, Cancellation $cancellation): Response
|
# |