supergateway

supercorp-ai
1350
Run the MCP standard input/output server via SSE, and run the AI Gateway through standard input/output using SSE.

Overview

What is supergateway

Supergateway is a tool that allows you to run MCP stdio-based servers over Server-Sent Events (SSE) with a single command. It facilitates remote access, debugging, and connection to SSE-based clients when your MCP server only communicates via stdio.

How to Use

To use Supergateway, run the command via npx: `npx -y supergateway --stdio 'command'`. You can specify options like port, base URL, and paths for SSE subscriptions and messages. Alternatively, you can run it in SSE to stdio mode by providing an SSE URL with the `--sse` flag.

Key Features

Key features include easy setup via npx or Docker, support for both stdio to SSE and SSE to stdio modes, customizable logging levels, CORS support, and health check endpoints. It also integrates with tools like MCP Inspector and Claude Desktop.

Use Cases

Use cases for Supergateway include remote debugging of MCP servers, connecting local MCP servers to remote clients, and integrating with other applications that utilize SSE. It is also useful for developers looking to expose their MCP servers without modifying the existing server architecture.

Content