← Thu, Nov 26 digest

MCP Gateway: How Snap Checks Both the Person and the Agent

read article ↗ hn thread ↗

Snap built a centralized Model Context Protocol gateway to handle millions of weekly tool calls from AI agents, enforcing authentication for both the human user and the agent.

read it It offers a concrete blueprint for solving identity, authorization, and credential management challenges when scaling internal AI agents.

summary

Snap deployed a central Model Context Protocol gateway fronting over 1,100 internal tools to handle millions of weekly requests from engineers and their AI agents. Traditional service-to-service authentication stripped away human identity, so Snap implemented an Agent Attestation Token system to verify both the user and the agent on every restricted call. To manage credentials securely, third-party tokens are delegated to a centralized Auth Translation Service rather than living in the gateway or MCP servers. Granular access is enforced through a PR-driven permissions model where service owners classify tools and approve agent capabilities individually.

key points

  1. Snap's MCP gateway fronts over 60 MCPs and 1,100 tools, handling approximately 1.6 million weekly calls from humans and their primary AI agent, Casper.
  2. An Agent Attestation Token system passes both the initiating user's identity and the agent's identity down the call chain to satisfy access controls.
  3. Third-party OAuth credentials are kept in a centralized Auth Translation Service rather than inside the gateway or individual MCP servers.
  4. Agent write access and sensitive tool grants require explicit, PR-driven approvals from individual service owners.

who should read it

Backend engineers and security architects designing secure internal platforms for AI agent execution.

discussion positive

consensus

Commenters discuss the practical difficulties of implementing human-in-the-loop approvals via MCP elicitation, noting that inconsistent client support forces developers to rely on the lowest common denominator.

pushback

One commenter argues against granting agents access to entire MCP servers, insisting that zero-trust security requires explicitly allowlisting individual tools per agent.

best comment by glenngillen ↗

Yeah, my previous company built a zero trust security protocol that then pivoted into a platform to run agents. Given the borderline security paranoid mindset coming from a security product background, one thing our CTO just could not get on board with was the idea that people were just going around adding MCP "servers" to their agents. He very strongly believed the only acceptable approach was to explicitly opt-in an allowlist of tools to an agent, not a whole server/list_tools of them. In the years since I've grown to see the wisdom of his approach. Though it's still only half the …

It highlights a crucial security lesson from zero-trust architecture: agents should only receive explicitly allowlisted individual tools rather than access to entire MCP servers.

Generated by an LLM from the article and thread. Check the sources before relying on it.