FROM ghcr.io/github/github-mcp-server@sha256:1817b57d43916532dc002bdc5f344d639bd9fb54a9148d42168458f7c3280567 AS github FROM ghcr.io/supercorp-ai/supergateway@sha256:095acf4471e142553c1a5514aa5e480abbc5885d00549d4a3481cc70eac53889 # GitHub publishes a minimal image containing only the official Go binary. # Supergateway contributes transport conversion only; GitHub API behavior and # every exposed tool remain implemented by GitHub's official MCP server. COPY --from=github /server/github-mcp-server /usr/local/bin/github-mcp-server USER 65532:65532 ENTRYPOINT ["supergateway"] # Open WebUI can retain an MCP session longer than a stateful gateway keeps it # alive. A later call then fails although both the token and server are healthy. # Stateless mode provides a fresh auto-initialized stdio server per request. CMD ["--stdio", "/usr/local/bin/github-mcp-server stdio", "--outputTransport", "streamableHttp", "--protocolVersion", "2025-11-25", "--streamableHttpPath", "/mcp", "--port", "8000", "--logLevel", "info"]