AxMCPStreamableHTTPTransportOptions Generated TypeScript API reference. typescript api api/reference build/apidocs/Interface.AxMCPStreamableHTTPTransportOptions.md interface AxMCPStreamableHTTPTransportOptions

AxMCPStreamableHTTPTransportOptions

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/options.ts#L5

Properties

PropertyTypeDescription
authentication?AxMCPAuthenticationComposable bearer, API key, Basic, HMAC, or caller-defined authentication.
authorization?string-
fetch?{ (input: URL | RequestInfo, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; }Host-provided fetch implementation for all HTTP transport requests.
headers?Record<string, string>-
legacySSEFallback?booleanAttempt legacy HTTP+SSE fallback when an initialize POST gets a legacy status. Defaults to false; use AxMCPHTTPSSETransport when you know the server is legacy SSE-only.
maxRedirects?numberMaximum validated redirect hops for GET/HEAD requests. Defaults to 5.
maxResponseBytes?numberMaximum decoded response body size. Defaults to 16 MiB.
mtls?AxMCPMTLSOptionsRFC 8705 mutual-TLS channel; also inherited by OAuth unless overridden.
oauth?AxMCPOAuthOptions-
retry?| false | { baseDelayMs?: number; maxAttempts?: number; maxDelayMs?: number; statuses?: readonly number[]; }Retry policy for safe MCP operations on 429/502/503/504.
ssrfProtection?AxMCPSSRFProtectionOptionsSSRF protection for the configured MCP endpoint. HTTPS and public hosts are required by default; set allowHTTP/allowLoopback for controlled local development, or disabled for trusted test fixtures.
timeoutMs?numberPer-request timeout. Defaults to 30 seconds.
Docs