Writing — December 2026

MCP gateways: what the vendor guides leave out

Your teams want agents that act, and agents act through MCP servers. Each server is code, often from a third party, that runs with credentials to your systems. Security asks for a gateway in front of them. The question for a CTO or a platform lead is what that gateway can promise, and what it cannot.

Search for "MCP gateway" today and most of the top results come from companies that sell one. The guides are useful. They describe a runtime enforcement point that sits between agents and Model Context Protocol (MCP) servers: a catalog of approved servers, identity, tool-level access, data loss prevention, telemetry.

I read five of them closely, from Snowflake, Speakeasy, Traefik, TrueFoundry, and Aembit. Some cover tool-level access well. One describes pinning tool descriptions by hash. None of the five mentions drift or reconciliation.

That gap matters more than any feature comparison. Tool drift is real. Servers change what they expose, and what their tools do, after you approve them. A gateway enforces a policy. It does not decide what the policy is, and it does not notice when its live state stops matching that decision. This piece covers the three things around the gateway that decide whether it works: admission, per-call tool authorization, and reconciliation. It follows the agent identity piece, which describes the control plane. Here the focus is what that control plane has to enforce for MCP specifically.

Admission: what "approved" has to mean

Every guide talks about a catalog of approved servers. Few define approved. The public MCP Registry will not do it for you. It authenticates namespaces and hosts metadata. It leaves security scanning to the package registries and to downstream aggregators.

An admission record for an MCP server needs seven fields before the gateway routes a single call to it:

  1. Owner. A named team answers for the server, patches it, and retires it. A server without an owner does not get admitted.
  2. Pinned artifact. An exact package version or container image digest. A floating tag such as latest does not count.
  3. Tool allow list. The named tools this server may expose, each pinned by a hash of its full definition: name, description, input and output schemas, annotations. A tool that is not on the list is denied, even when the server is admitted.
  4. Scan result. Dependency and code scan of the pinned artifact, plus a review of the tool descriptions for injected instructions.
  5. Risk tier per tool. What data each tool reads, what it can change, and whether the change can be undone. Tier the tool, not the server.
  6. Re-admission triggers. Any change to fields 2 or 3, or a failed eval, sends the server back through review.
  7. Behavioral evals, where practical. A small set of known tool calls with expected results and expected side effects. Run them in a sandbox against the pinned artifact at admission, on every version change, and on a schedule. Start with the tools in the highest risk tier.

Fields 2 and 3 look redundant, but they catch different changes. Only one of the five guides mentions pinning, and it pins descriptions.

A definition hash catches a "rug pull". Invariant Labs uses that term for a server that changes a tool description after a client approved it. The OWASP MCP Security Cheat Sheet states the limit. A definition hash detects metadata changes. It does not detect changes to server code behind an unchanged definition.

The postmark-mcp case shows why that limit is real. According to Snyk's analysis of community reports, version 1.0.16 of this npm package added a hidden blind copy to an external address on every email it sent. Snyk reports that the only notable code difference from the benign 1.0.15 was the added blind-copy line. The tool's description did not need to change. A description hash would not have flagged it. A deployment pinned to a reviewed earlier version would not have picked it up on its own. A behavioral eval would have caught the upgrade. A test that sends one email in a sandbox and checks the recipient list fails on 1.0.16.

Risk tier is the field that drives everything downstream. It decides which tools need a human approval step, which calls get full argument logging, and how fast a change gets re-reviewed. The MCP tools spec says clients must treat tool annotations as untrusted unless they come from trusted servers. The tier has to come from your own review, not from the server's readOnlyHint.

Tool authorization: per agent, per call

Server-level access is the default in most products. An agent can reach a server or it cannot. One of the guides says this directly: standard gateways control binary access at the server level, and only some enforce access per tool.

Server-level access is not enough, because one server bundles many tools with very different risk. Identity-provider-driven access does not close the gap either. The MCP Enterprise-Managed Authorization extension lets the identity provider decide which servers an employee can reach. The server still has to map token claims to permissions and define its own authorization logic.

A per-call decision needs five inputs:

  • The agent identity: which agent is calling, not only which human it acts for. The agent identity piece covers how to give agents one.
  • The delegating user, when there is one.
  • The server-qualified tool name. The spec scopes tool name uniqueness to one server and tells aggregating proxies to disambiguate, for example with a server prefix. A policy keyed on search alone matches every server that has a search tool.
  • The arguments, for tools in the higher risk tiers. Reading one record and exporting a table can be the same tool.
  • The tool's risk tier, from the admission record.

The current spec gives a gateway two mechanisms to work with.

First, tokens. MCP servers must validate that a token was issued for them as the audience, and must not accept or pass through other tokens. The security best practices call token passthrough an anti-pattern, partly because downstream logs then show the wrong caller. They also tell servers to start with minimal scopes and step up with targeted scope challenges. Wildcard scopes are on the list of common mistakes.

Second, tool lists. A server's tools/list response may vary by the authorization on the request. The gateway can filter the list, so an agent never sees a tool it cannot call.

Authorization does not remove the human. The spec says there should always be a human in the loop who can deny tool invocations. Put that approval step on the highest risk tier. There it is worth the friction.

Drift: why a gateway alone decays

A gateway holds live state: registered servers, routes, per-tool rules, exceptions. It has no record of what that state should be. That record lives somewhere else. Often it is a ticket.

Drift enters in predictable ways:

  • An engineer widens a rule in the console during an incident and never narrows it.
  • An upstream server adds, removes, or rewrites a tool. Without an allow list, the gateway forwards the new tool and nobody reviews it.
  • An upstream server changes what a tool does and leaves its definition alone. Nothing in the gateway notices.
  • A group changes in the identity provider. Server access changes with it. The gateway's per-tool rules may not.
  • A team runs an MCP server on a laptop over a local transport. As one of the vendor guides notes, a gateway only sees the servers registered with it.

None of these is an attack. Each one makes the gateway enforce something nobody approved. Over time, the catalog says one thing, the gateway does another, and the audit trail explains neither.

The fix is an old idea from infrastructure work. Declare the desired state in version control. Run software that continuously observes actual state and applies the desired state. That is a control loop, and it keeps running after deploy. The admission record becomes the declared state. The gateway's routes and rules, the identity provider's grants, and the inventory entry are all outputs. A console change gets reverted or raised as an alert. A pinned version that no longer matches the running artifact gets flagged. A changed tool hash can remove the tool from every agent until review.

Two controls detect tool drift, and they catch different changes. The allow list catches a change in what a server exposes: a new tool, a removed tool, a rewritten description. The eval suite catches a change in what a tool does behind an unchanged definition. Evals cost effort to write and keep current, so do not try to cover every tool. Cover the tools that write data, send data out, or cannot be undone. For the rest, the allow list and the pinned artifact are enough.

For the same reason, do not let the gateway own the policy. If the gateway is the source of truth, a gateway replacement means a policy rebuild. If the declared state is the source of truth, the gateway is a replaceable part.

Questions to ask before you buy or build

Put these to any gateway vendor, and to your own team if you build:

  1. What do you pin: the tool description, the package version, or the image digest? What happens when one of them changes?
  2. Do you deny a tool that is not on an explicit allow list, including a new tool from a server you already admitted?
  3. Can a policy key on agent identity, the server-qualified tool name, and the arguments in one rule?
  4. Do you filter tools/list per caller, or only block at call time?
  5. Can the policy be declared outside your console and reconciled? What do you report when the live state differs from it?
  6. Which MCP servers in our company will you not see, and what finds those?

Listen hardest to the answers on 1, 2, 5, and 6. Specific answers there mean the vendor has run this in operation.

The decision

The gateway is the easy part. Before you sign a contract or start a build, name two owners. One owns admission: the record, the tool allow list, the tiers, the evals, and the re-review triggers. One owns reconciliation: the loop that keeps the gateway, the identity provider, and the inventory equal to that record. Both are ongoing jobs. Staff them that way, not as a one-time project.

If nobody can take either job, delay the gateway and start with the admission records. A list of owned, pinned, tiered servers with a tool allow list is useful on its own. A gateway without one enforces whatever its console says, and nobody can tell you what that is.

Have a problem like this one?

That's the right reason to start a conversation.

Start a conversation