mcpwn API
    Preparing search index...

    Interface Transport

    A transport relays framed MCP traffic through a MessagePipeline. It owns framing + I/O (stdio newlines, HTTP/SSE frames) and the child/connection lifecycle; the pipeline owns the parse→correlate→rules→intercept→forward decision. Keeping the two apart lets stdio and HTTP share identical tamper semantics.

    interface Transport {
        start(): Promise<number>;
        stop(): void | Promise<void>;
    }

    Implemented by

    Index
    • Start relaying; resolves with the exit/status code when the session ends.

      Returns Promise<number>

    • Tear down the transport (kill child, close sockets, restore the tty).

      Returns void | Promise<void>