Repository navigation
v0.1.0
mcpgate v0.1.0
A production MCP gateway: one endpoint in front of your MCP servers, with the production layer filled in.
Auth
- API keys, OIDC JWT bearer tokens, OAuth2 token introspection (RFC 7662)
- Scopes and per-tool authorization
Traffic
- Per-key token-bucket rate limiting, Redis-backed distributed buckets
- Response caching, Redis-backed shared cache
- Per-backend circuit breakers, load balancing across backend endpoints
Protocol
- HTTP and stdio backends, SSE live relay (including post-response notifications), incremental SSE parsing, notification forwarding
Shaping
- Request/response transformation: rename and hide fields, schema rewriting (rename/hide tool arguments), per-backend tool filtering, header injection
Ops
- Prometheus metrics, /healthz and /readyz, backend health checks with fail-fast
- Admin API: config reload, runtime status, cache invalidation
- TLS termination, strict config validation, structured logging
Demo
demo/demo-record.sh runs a 5-act terminal walkthrough against the echo backend: 401 without a key, cache MISS then HIT, a tools/call, rate-limit 429s, and health/metrics.