vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias McpStdioOptions

    McpStdioOptions: McpHandlerOptions & {
        maxLineLength?: number;
        maxInFlight?: number;
    }

    Type Declaration

    • OptionalmaxLineLength?: number

      Cap on a single line's length (UTF-16 code units) before it is abandoned. A client that never sends a newline would otherwise grow the read buffer without bound — same class of input-driven memory guard as the stream parser's maxDepth. On overflow the partial line is dropped, a -32700 is written, and input is skipped to the next newline so the stream resynchronises instead of dying. Default: 1 MiB.

    • OptionalmaxInFlight?: number

      Cap on concurrently-dispatched messages. Reaching it pauses stdin until in-flight work drains, so a client that pipes thousands of lines cannot open thousands of simultaneous dispatches. Deliberately NOT 1: MCP clients legitimately issue parallel tool calls, and serialising them would make every slow tool block every fast one. Default: 32.