Gateway
The gateway stands in front of your APIs and MCP servers and refuses every call the realm's policies don't allow, with no change to your code.
The gateway is a proxy you run in front of an API or an MCP server. Every request passes through it first: it checks the caller’s token, refuses anything the realm has revoked, decides the request against your policies, and forwards only what they allow. Your API needs no change. It sees only allowed requests, and reads who is calling from a header the gateway sets. A stopped agent, an app a user took back, or a revoked token is refused at your API within seconds, and you change who may do what by changing policies in the realm, not code in the API.
The one idea to read the rest by: the realm decides, the gateway enforces. The gateway is an enforcement point: it holds its own copy of the realm’s keys, policies and revocations, decides each request in process, and asks the realm only what a token can’t settle. If you’d rather build your own enforcement point, it can ask the realm for each decision or decide locally the way the gateway does. All of them read the same policies by the same rules, so they agree.
What you can do
Section titled “What you can do”Get started
Section titled “Get started”Popular guides
Section titled “Popular guides”- Open an API to agents: agents call your API through the gateway, and a stopped agent is refused within seconds.
- Protect an MCP server: one tool allowed, another refused, on the same server.
- Put the gateway behind your proxy: your own proxy asks the gateway before it forwards.
- Check a token at your API: ask the realm, or check the signature yourself.
- Revoke a token: sign a user out cleanly, or answer a leak.
- Bind tokens to a key: a copied token is useless at your APIs.
Every guide is in Gateway guides, every setting in Gateway configuration, and every endpoint in the Gateway API. Before you put the gateway in front of real traffic, read Run it in production.
Coming next
Section titled “Coming next”A published gateway image, tokens from other issuers verified directly, agent-to-agent calls and the gateway’s decisions on the audit trail (What’s next for protecting APIs); one endpoint for many MCP servers (What’s next for MCP servers); rate limits and checks on prompts and responses (What’s next for guardrails); and revocations pushed the moment they happen (What’s next for revocation).
What to plan around today, what isn’t offered, and every limit and default are in Known limitations, Not offered and Limits.