@node-in-layers/mcp-server
    Preparing search index...

    Interface HttpConnection

    HTTP connection configuration. Use this when the MCP server is exposed over a network via the Streamable HTTP transport.

    const connection: HttpConnection = {
    type: 'http',
    url: 'http://localhost:3000/mcp',
    headers: { 'x-api-key': 'secret' },
    timeout: 5000,
    retry: { attempts: 3, backoff: 500 },
    }
    interface HttpConnection {
        headers?: Readonly<Record<string, string>>;
        retry?: Readonly<{ attempts: number; backoff: number }>;
        timeout?: number;
        type: "http";
        url: string;
    }
    Index

    Properties

    headers?: Readonly<Record<string, string>>

    Static headers sent with every request to the server.

    retry?: Readonly<{ attempts: number; backoff: number }>

    Retry policy for failed requests.

    timeout?: number

    Request timeout in milliseconds.

    type: "http"
    url: string

    Base URL of the MCP HTTP endpoint (e.g. http://localhost:3000/mcp).