MCP Server Framework - v1.0.0
    Preparing search index...

    Type Alias TransportOptions

    TransportOptions:
        | StdioTransportOptions
        | HttpTransportOptions
        | HttpsTransportOptions

    Transport configuration — discriminated union by mode.

    TypeScript narrows the available options based on the selected mode:

    • { mode: 'stdio' } — no additional options
    • { mode: 'http', port: 8000, ... } — flat HTTP options
    • { mode: 'https', port: 8443, tls: { ... }, ... } — flat HTTPS options with required TLS
    // Stdio
    transport: { mode: 'stdio' }

    // HTTP
    transport: { mode: 'http', port: 8000, host: '0.0.0.0' }

    // HTTPS
    transport: { mode: 'https', port: 8443, tls: { certPath: '/certs/cert.pem', keyPath: '/certs/key.pem' } }