Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Supergateway

$ supergateway Official Med Risk
Supercorp · Agent Bridges & Meta · MIT · macos / linux / windows

Supergateway runs stdio-based MCP servers behind SSE, WebSocket, or Streamable HTTP endpoints (--stdio <cmd> --port <n>), or connects remote --sse / --streamableHttp endpoints back into local stdio clients. Supports --oauth2Bearer headers and --stateful HTTP sessions.

FCRS-1.0 Score
74 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
npm install -g supergateway
CLI vs MCP Decision CLI Only

supergateway is an infrastructure bridge daemon itself, converting transports between MCP clients and servers rather than acting as a domain MCP server.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Deterministic flag-driven CLI (--stdio, --port, --sse, --streamableHttp), though it runs as a long-lived bridge process without --json status output.

  • Flag-based transport bridging via --stdio, --sse, --streamableHttp, --port
Trust & Safety 17 / 25

Supports --oauth2Bearer and --cors, but spawns arbitrary --stdio shell commands and exposes network listeners when --port is opened.

  • Executes arbitrary --stdio <cmd> subprocesses and binds HTTP/SSE ports
Setup & Portability 13 / 15

Cross-platform Node.js package runnable immediately via npx -y supergateway or Docker.

  • Published on npm (supergateway) and Docker Hub
Utility & Efficiency 12 / 15

Solves MCP transport mismatches cleanly across stdio, SSE, WebSocket, and Streamable HTTP.

  • Supports bidirectional stdio <-> SSE/WS/Streamable HTTP bridging
Maintenance & Lineage 8 / 10

Maintained by Supercorp (supercorp-ai/supergateway) under MIT license.

  • Active supercorp-ai/supergateway repository
Docs & Verifiability 8 / 10

Clear README documenting all flags, header options, and Docker/npx usage examples.

  • GitHub README lists every transport flag and example

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Accepts bearer tokens via --oauth2Bearer or custom --header flags and passes environment variables to child stdio processes.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Supergateway Agent Rules
- Run `supergateway` as a managed background service with explicit `--port` and loopback binding where possible.
- Never pass raw secrets in CLI arguments if logs are captured; prefer environment variables.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Supergateway CLI options
npx -y supergateway --help

Prints supported transport flags (--stdio, --sse, --streamableHttp, --port) without opening ports.

Controlled Writes & Previews

Bridge a local stdio MCP server to Streamable HTTP
npx -y supergateway --stdio "npx -y @modelcontextprotocol/server-filesystem ." --port 8000 --stateful

Starts a stateful local HTTP MCP gateway wrapping a stdio server on port 8000.

Strengths for Agents

  • + Bridges stdio, SSE, WebSocket, and Streamable HTTP transports in one npx command.
  • + Supports --stateful Streamable HTTP and --oauth2Bearer forwarding.

Caveats & Pitfalls

  • ! Long-running daemon process blocks foreground terminals unless backgrounded.
  • ! No --json control output or dry-run config validator; passing secrets via --oauth2Bearer exposes them in process listings.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI