hn.today

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

eng.snap.com3 points0 comments
Screenshot of MCP Gateway: How Snap Checks Both the Person and the Agent

Snap built a centralized Model Context Protocol (MCP) Gateway so employees and their AI agents can use internal tools without losing track of who initiated an action. Local integrations failed when services saw only an agent’s service account, not the employee behind it; remote agents also made actions appear under their own identities. Snap’s rule is that a tool call made for a person must be authorized as both that person and the agent. The gateway now fronts more than 60 MCP servers and 1,100 tools, handling about 1.6 million weekly calls by people and Casper, Snap’s agent, alongside millions more from automated service accounts.

Each agent has its own machine identity and limited default access. A signed Agent Attestation Token carries both the original requester and the acting agent; trusted services verify the requester before tokens are issued. The gateway checks that both identities are allowed to use restricted tools, records calls and denials, and routes third-party credentials through Snap’s existing token service rather than storing secrets itself. Agent access is granted tool by tool through reviewed pull requests, with read/write and destructive operations classified separately; agents can do only what their grants permit, and a person’s access remains an additional limit. Snap says more than 60 agents have received expanded permissions. Service teams build and operate their own MCP servers, while the platform team provides shared infrastructure. Future work includes consistent access across environments, human confirmation for riskier actions, and checks on combinations of agent capabilities.

Read on eng.snap.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.