mcpwn API
    Preparing search index...

    Interface HttpTransportOptions

    The collaborators every transport needs.

    interface HttpTransportOptions {
        listenHost: string;
        listenPort: number;
        logger: Logger;
        mode?: HttpMode;
        pipeline: MessagePipeline;
        upstream: string;
    }

    Hierarchy (View Summary)

    Index
    listenHost: string

    Interface to bind. Empty / "0.0.0.0" binds all; endpoint rewrites use 127.0.0.1 in that case.

    listenPort: number

    Port to bind. 0 picks an ephemeral port (used by tests — see port()).

    logger: Logger
    mode?: HttpMode

    streamable | sse (legacy) | auto. Only affects legacy endpoint rewriting.

    pipeline: MessagePipeline
    upstream: string

    Remote MCP HTTP endpoint, e.g. http://host:1234/mcp.