@honua/sdk-js
    Preparing search index...

    Interface McpClientOptionsExperimental

    interface McpClientOptions {
        apiKey?: string;
        auth?: StudioAiTokenSource;
        baseUrl?: string;
        clientName?: string;
        clientVersion?: string;
        fetchImpl?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        workflowView?: string;
    }
    Index

    Properties

    apiKey?: string

    API key sent as x-api-key, the same scheme as honua-mcp-proxy. Mutually exclusive with McpClientOptions.auth.

    baseUrl?: string

    The /mcp endpoint's base — the client POSTs to ${baseUrl}/mcp.

    "/api"
    
    clientName?: string

    Advertised in initialize's clientInfo.

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

    Override for tests. Defaults to globalThis.fetch.

    Type Declaration

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

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

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

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

        Returns Promise<Response>

    workflowView?: string

    Server-authored workflow view negotiated for this session; omitted for the server default.