#!/usr/bin/env node /** * index.ts * * Run MCP stdio servers over SSE, convert between stdio, SSE, WS. * * Usage: * # stdio→SSE * npx -y mcp-superassistant-proxy --stdio "npx -y @modelcontextprotocol/server-filesystem /" \ * --port 3006 --baseUrl http://localhost:3006 --ssePath /sse --messagePath /message * * # SSE→stdio * npx -y mcp-superassistant-proxy --sse "https://mcp-server-ab71a6b2-cd55-49d0-adba-562bc85956e3.supermachine.app" * * # SSE→SSE * npx -y mcp-superassistant-proxy --sse "https://input-sse-server.example.com/sse" --outputTransport ssetosse \ * --port 3006 --baseUrl http://localhost:3006 --ssePath /sse --messagePath /message * * # SSE→WS * npx -y mcp-superassistant-proxy --sse "https://input-sse-server.example.com/sse" --outputTransport ws \ * --port 3006 --messagePath /message * * # stdio→WS * npx -y mcp-superassistant-proxy --stdio "npx -y @modelcontextprotocol/server-filesystem /" --outputTransport ws * * # Streamable HTTP→stdio * npx -y mcp-superassistant-proxy --streamableHttp "https://mcp-server.example.com/mcp" * * # Streamable HTTP→SSE * npx -y mcp-superassistant-proxy --streamableHttp "https://mcp-server.example.com/mcp" --outputTransport sse \ * --port 3006 --baseUrl http://localhost:3006 --ssePath /sse --messagePath /message * * # Config→SSE (unified multiple servers) * npx -y mcp-superassistant-proxy --config ./config.json --outputTransport sse --port 3006 * * # Config→WS (unified multiple servers) * npx -y mcp-superassistant-proxy --config ./config.json --outputTransport ws --port 3006 * * # Config→StreamableHttp (unified multiple servers - stateless) * npx -y mcp-superassistant-proxy --config ./config.json --outputTransport streamableHttp --port 3006 * * # Config→StreamableHttp (unified multiple servers - stateful with session timeout) * npx -y mcp-superassistant-proxy --config ./config.json --outputTransport streamableHttp --port 3006 --stateful --sessionTimeout 300000 */ export {}; //# sourceMappingURL=index.d.ts.map