mcp-use TypeScript API
    Preparing search index...

    Interface ProxyHttpConfig

    HTTP connection settings accepted by MCPServer.proxy.

    interface ProxyHttpConfig {
        authToken?: string;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        headers?: Record<string, string>;
        protocolNegotiation?: "auto" | "legacy" | { pin: string };
        timeout?: number;
        url: string;
    }
    Index
    authToken?: string

    Bearer token sent to the upstream server.

    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Fetch implementation used for upstream HTTP requests.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    headers?: Record<string, string>

    Extra headers sent on every upstream request.

    protocolNegotiation?: "auto" | "legacy" | { pin: string }

    Protocol negotiation mode forwarded to @mcp-use/client.

    timeout?: number

    Connection timeout in milliseconds.

    url: string

    Upstream MCP endpoint URL.