SA

supercorp-ai/supergateway

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

2932 stars 262 forks 品質 87 トレンド 47MIT

MCPのスタンディオサーバーをSSE経由で、SSEをスタンディオ経由で運用します。AIゲートウェイです。

概要

1つのコマンドで実行されます。これはリモートアクセス、デバッグ、クライアント接続の際に便利です。MCPサーバーがstdioのみをサポートしている場合に便利です。 - : stdio上でMCPサーバーを実行するコマンド - : SSEに接続用のSSE URL (SSE→stdioモード) - : 接続可能なストリーミング可能なHTTP URL (StreamableHttp→stdioモード) - : 出力MCPトランスポート(デフォルト:sseと--stdio、stdioと--sseまたは--streamableHttp) - : (stdio→SSEまたはstdio→WSモードで受信するポート、デフォルト:8000) - : SSEまたはWSクライアント用のベースURL(stdio→SSEモード;オプション) - : SSEサブスクリプションのパス(stdio→SSEモード、 デフォルト: /sse) - : メッセージのパス(stdio→SSEまたはstdio→WSモード、デフォルト: /message) - : Streamable HTTPのパス(stdio→Streamable HTTPモード、デフォルト: /mcp) - : stdio→Streamable HTTPをステートフルモードで実行 - : セッションタイムアウト(ミリ秒単位)(ステートフルstdio→Streamable HTTPモードのみ) - : 1つ以上のヘッダーを追加(stdio→SSE、SSE→stdio、またはStreamable HTTP→stdioモード;複数回使用可能) - : Authorizationヘッダーを追加...

概要(AI 翻訳)

Supergatewayは、**SSE(Server-Sent Events)またはWebSockets(WS)を1コマンドで*MCPのstdioベースのサーバー実行します。これは、MCPサーバーがstdioのみをサポートする場合のリモートアクセス、デバッグ、クライアント接続に役立ちます。

質問やアイデア、またはただおしゃべりしたいだけですか?Discordのコミュニティに参加してください。

支援者:

  • Supercov — コーディングエージェントおよびソフトウェアファクトリー🌙のカバレッジ
  • スーパーインターフェース
  • スーパーコープ

設置と利用

スーパーゲートウェイをnpx経由で実行:

  • --stdio "command": stdio上でMCPサーバーを実行するコマンド
  • --sse "https://mcp-server-ab71a6b2-cd55-49d0-adba-562bc85956e3.supermachine.app":接続用のSSEアドレス(SSE→stdioモード)
  • --streamableHttp "https://mcp-server.example.com/mcp": 接続用のStreamable HTTP URL(StreamableHttp→stdioモード)
  • --outputTransport stdio | sse | ws | streamableHttp:出力MCPトランスポート(デフォルト:sseと--stdio、stdioは--sseまたは--streamableHttp)。--sseまたは--streamableHttpで与えられたリモートサーバーは、sse、ws、またはstreamableHttpでもサービス可能です;SSE、WS、またはStreamable HTTP→リモートサーバーを参照

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Supergateway runs MCP stdio-based servers over SSE (Server-Sent Events) or WebSockets (WS) with one command. This is useful for remote access, debugging, or connecting to clients when your MCP server only supports stdio.

Questions, ideas or just want to chat? Join the community on Discord.

Supported by:

Installation & Usage

Run Supergateway via npx:

npx -y supergateway --stdio "uvx mcp-server-git"
  • --stdio "command": Command that runs an MCP server over stdio
  • --sse "https://mcp-server-ab71a6b2-cd55-49d0-adba-562bc85956e3.supermachine.app": SSE URL to connect to (SSE→stdio mode)
  • --streamableHttp "https://mcp-server.example.com/mcp": Streamable HTTP URL to connect to (StreamableHttp→stdio mode)
  • --outputTransport stdio | sse | ws | streamableHttp: Output MCP transport (default: sse with --stdio, stdio with --sse or --streamableHttp). A remote server given with --sse or --streamableHttp can be served over sse, ws or streamableHttp too; see Remote server → SSE, WS or Streamable HTTP
  • --port 8000: Port to listen on (stdio→SSE, stdio→WS or stdio→Streamable HTTP mode, default: 8000)
  • --host 127.0.0.1: Address to listen on, e.g. 127.0.0.1 or ::1 ([::1] also works) (stdio→SSE, stdio→WS or stdio→Streamable HTTP mode, default: every interface). --baseUrl does not control binding: only --host limits which addresses accept connections. Refused in SSE→stdio and Streamable HTTP→stdio mode, which listen on nothing
  • --baseUrl "http://localhost:8000": Base URL for SSE clients (stdio→SSE mode; optional)
  • --ssePath "/sse": Path for SSE subscriptions (stdio→SSE mode, default: /sse)
  • --messagePath "/message": Path for messages (stdio→SSE or stdio→WS mode, default: /message)
  • --streamableHttpPath "/mcp": Path for Streamable HTTP (stdio→Streamable HTTP mode, default: /mcp)
  • --stateful: Run stdio→Streamable HTTP in stateful mode
  • --sessionTimeout 60000: Session timeout in milliseconds (stateful stdio→Streamable HTTP mode only)
  • --protocolVersion "2025-06-18": Protocol version the gateway uses when it initializes the server itself and the client’s request doesn’t name one (stateless stdio→Streamable HTTP mode, default: 2024-11-05)
GitHub で README 全文を見る

インストール

uvx mcp-server-git
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "port": 8000, "mcpServers": { "git": { "command": "uvx", "args": ["mcp-server-git"] }, "files": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "./my-folder"], "outputTransport": "streamableHttp", "apiKey": "${FILES_KEY}", }, }, }