EU Parliament Monitor — API Documentation - v0.8.39
    Preparing search index...

    Interface IMFClientOptions

    Options accepted by IMFMCPClient. Shape intentionally matches MCPClientOptions for historical compatibility — fields unused by the native HTTP transport (serverPath, gatewayUrl, gatewayApiKey, maxConnectionAttempts, connectionRetryDelay) are accepted and silently ignored so existing call-sites do not break.

    interface IMFClientOptions {
        apiBaseUrl?: string;
        timeoutMs?: number;
        fetchImpl?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        serverPath?: string;
        maxConnectionAttempts?: number;
        connectionRetryDelay?: number;
        maxRetries?: number;
        gatewayUrl?: string;
        gatewayApiKey?: string;
        serverLabel?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    apiBaseUrl?: string

    Override the IMF REST base URL (default: DEFAULT_IMF_API_BASE_URL).

    timeoutMs?: number

    Per-request timeout in milliseconds (default: DEFAULT_IMF_API_TIMEOUT_MS).

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

    Optional fetch implementation injection for testing.

    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>

    serverPath?: string
    maxConnectionAttempts?: number
    connectionRetryDelay?: number
    maxRetries?: number

    Maximum retries for callToolWithRetry() (default: 2)

    gatewayUrl?: string

    MCP Gateway URL for HTTP transport (e.g., http://host.docker.internal:80/mcp/european-parliament)

    gatewayApiKey?: string

    API key for MCP Gateway authentication

    serverLabel?: string

    Human-readable server name used in operational log messages (default: 'European Parliament MCP Server')