/** * Unified Streamable HTTP Transport Server * * This module provides a configurable Streamable HTTP transport that can * optionally enable OAuth2 authentication. * * Usage: * // As a module: * import { startStreamableHttpServer } from './streamableHttpServer.js'; * startStreamableHttpServer({ useAuth: true }); * * // From command line (via index.ts): * node dist/index.js streamableHttp # No auth * node dist/index.js streamableHttp --auth # With OAuth2 */ export interface StreamableHttpServerOptions { /** * Enable OAuth2 authentication for MCP endpoints. * When true, clients must provide a valid Bearer token. * @default false */ useAuth?: boolean; /** * Port to listen on. * @default process.env.PORT || 3001 */ port?: number; } /** * Parse command line arguments for streamableHttp options. */ export declare function parseStreamableHttpArgs(args: string[]): StreamableHttpServerOptions; /** * Starts the Streamable HTTP server with optional OAuth2 authentication. */ export declare function startStreamableHttpServer(options?: StreamableHttpServerOptions): Promise; //# sourceMappingURL=streamableHttpServer.d.ts.map