返回资讯中心
外部精选
软件工程
#开发者实时流

What is an MCP gateway, and when do you need one?

The first MCP server is easy: install it, paste a token, done. By the fifth, every agent holds five long-lived tokens, nobody knows which person asked for which call, and revoking access means editing config files on la…

Hacker News 最新giuseppecassata2026/11/26 · 今天8 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

The first MCP server is easy: install it, paste a token, done. By the fifth, every agent holds five long-lived tokens, nobody knows which person asked for which call, and revoking access means editing config files on laptops.

The Model Context Protocol (MCP) lets an AI agent, such as Claude Code or Cursor, call tools exposed by MCP servers: list pods, open a ticket, query a database. Each server is a small program with its own way of authenticating, and usually with its own credentials.

That works for one developer and one server. In a team it turns into a grid: every agent connects to every server, and each connection carries a token. Those tokens tend to be broad (the server needs to do everything any user might ask) and long-lived (nobody wants to paste a new one every hour). When something goes wrong, the server’s log shows the token, not the person who typed the prompt.

An MCP gateway replaces the grid with a single point of entry.

An MCP gateway is a proxy that speaks MCP on both sides. Agents connect to the gateway as if it were one MCP server; the gateway connects to the real servers behind it. In between, it can do the things each server would otherwise have to do on its own:

Points 3 and 4 are where gateways differ most, and where they matter most for security.

The three names get mixed up, and “AI gateway” is used for more than one of them.

An LLM gateway controls what goes to the model. An MCP gateway controls what the agent does after the model has decided. A team that runs agents against real systems usually needs the second; it can run next to the first.

The MCP authorization specification is built on OAuth 2.1, and its security guidance names token passthrough as an anti-pattern: a server should not accept a token issued for someone else and forward it downstream. The same rule applies to a gateway. If it forwards the token the agent sent, every MCP server behind it receives a credential that would also work on every other server.

The cleaner design is for the gateway to exchange the person’s token for a new one, issued for the target server only. OAuth 2.0 Token Exchange (RFC 8693) does exactly that, and Keycloak 26 supports it natively, enabled per client. Each server then checks that the token’s audience is itself. A compromised server cannot replay its token elsewhere.

You probably do not need one yet when a single developer runs local MCP servers against their own sandbox, or when every server is read-only and public.

IzyTrust is the MCP gateway we build at Izylife Solutions. It runs on Kubernetes, uses Keycloak for sign-in and follows the design above:

Connecting a new MCP server is one entry in the registry:

upstreams:

With this entry, a person with the read scope can list pods and read deployments, and only a person with write can scale. Tools that the Kube MCP server exposes but the entry does not list stay invisible to agents.

IzyTrust is in early access. Policies on resources and context (OPA or Cedar) and human approval for destructive operations are on the roadmap, not in the current release.

The Helm values and a demo that runs on k3d are in the izytrust-examples repository. To try it, or to discuss your agents and MCP servers, contact us.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →