OptionalauthOAuth provider used when the server requires authorization.
OptionalauthBearer token added as the Authorization header.
OptionalclientClient identity advertised to the server.
OptionalclientOptions forwarded to the official MCP SDK Client.
OptionaldefaultDefault timeout/cancellation options for requests.
OptionalfetchFetch implementation used by the HTTP transport.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalheadersHeaders included with MCP transport requests.
OptionaloauthAuto-OAuth options for HTTP servers.
{}: client creates the platform provider on connectfalse: disable auto-OAuth (e.g. CLI --no-oauth)createOAuthProviderIgnored when authProvider or authToken is set, or when headers
already includes Authorization.
OptionalonCallback for elicitation requests from servers.
OptionalonCallback for notifications from servers.
OptionalonCallback for sampling input.
OptionalprotocolProtocol version negotiation mode. Defaults to "auto" to negotiate both
v1 and v2 MCP servers. See HttpConnector.
OptionalrootsInitial roots advertised to the server.
OptionaltimeoutConnection timeout in milliseconds.
MCP endpoint URL.
Configures a remote MCP server accessed with streamable HTTP.