Updated on November 26, 2026
Snap’s engineering and security teams have published a detailed production blueprint explaining how they moved internal Model Context Protocol (MCP) tooling off fragile local Docker containers onto a central MCP Gateway serving more than 60 MCP servers and 1,100 tools. During a single measured week ending October 11, 2026, employees and Snap’s internal assistant Casper executed roughly 1.6 million tool calls through the gateway, alongside several million additional weekly calls from automated service-account workloads.
The architectural trigger was an identity failure every enterprise hits the moment MCP leaves a developer’s laptop. A server that worked cleanly over a local proxy immediately returned forbidden errors behind a central gateway because downstream service-to-service authentication saw only the MCP server’s service account rather than the engineer initiating the task. Worse, when a remote coding agent opened a GitHub pull request on an employee’s behalf, audit logs credited the agent’s GitHub app instead of the human requester.
Snap solved that blind spot with a strict dual-authorization invariant: whenever an AI agent invokes a restricted tool on behalf of an employee, the request must pass authorization checks for both the human user and the agent’s own registered machine identity. Even if Casper holds an organizational grant for a team-restricted MCP, an employee outside that team is blocked. Conversely, an agent never inherits its user’s full access footprint; it can reach only the exact tools explicitly granted to it.
To propagate dual identity safely across multi-hop microservice chains without dumping third-party credentials into MCP servers, Snap partnered with Docker as a design partner on Docker MCP Enterprise Gateway and layered two internal security components on top: Agent Attestation Tokens (AATs) minted only by verified allowlisted orchestrators, and a pre-existing Auth Translation Service (ATS) owned by Snap Security to store and refresh per-user OAuth tokens centrally.
Production Throughput and Tool Scale : According to Snap Engineering’s MCP Gateway architecture post , the central gateway fronts 60+ internal MCP servers exposing 1,100+ tools, handling 1.6 million weekly human-and-Casper tool invocations plus several million weekly service-account calls.
Why Local MCP Proxies Broke Down : Snap initially shipped a local MCP Proxy running approved MCPs as local Docker containers, where OAuth logins for Jira and Slack expired almost daily. Once teams exceeded 10 active MCP servers, container sprawl and CLI onboarding friction stalled adoption outside engineering.
Agent Attestation Token (AAT) Chain : Built jointly by Developer Productivity and Snap Security, an AAT cryptographically carries both the original requester (human or upstream agent) and the acting agent. Only allowlisted orchestrators like Casper can mint delegation tokens, and only after verifying inbound signatures such as Slack message signatures.
Zero OAuth Tokens Inside MCP Servers : Instead of storing user OAuth tokens in the gateway or individual MCP containers, Snap routed all third-party credentials through its Auth Translation Service (ATS), where users authenticate once and Security manages automated token rotation.
Dual-Approval Write Grants and Prompt-Injection Containment : Every registered agent starts with read-only defaults. Granting write or destructive tools requires sign-off from both the agent’s team and the target tool owner, while strict read scoping limits the blast radius if prompt injection hidden in one tool output tries to hijack the next call.
Comparing Local MCP Proxies Against Snap’s Dual-Auth Gateway
Platform teams scaling beyond a handful of IDE-attached MCP servers face predictable breaking points around token expiry, identity loss, and auditability. Snap’s production evolution maps cleanly onto four concrete architectural controls.
Control Layer
Local Docker MCP Proxy (<10 MCPs)
Naive Central Gateway
Snap Production MCP Gateway (60+ MCPs)
Caller Identity
Local user workstation session
Overwritten by shared gateway/agent service account
Dual identity via signed Agent Attestation Token (AAT)
Authorization Rule
User permissions only
Broad agent service-account grant
Intersection: allowed for both human requester and agent
OAuth Token Storage
Local disk; Jira/Slack expire daily
Embedded in gateway or MCP server env vars
Isolated in Security-owned Auth Translation Service (ATS)
Write Access Governance
Ad-hoc per developer setup
Global opt-in per server
Earned per tool; dual sign-off from agent team + tool owner
Audit Trail
Fragmented across laptops
Blames bot account for human-triggered PRs
Centralized logs tying requester, agent, grant, and denial
Caller Identity
Local Docker MCP Proxy (<10 MCPs) Local user workstation session
Naive Central Gateway Overwritten by shared gateway/agent service account
Snap Production MCP Gateway (60+ MCPs) Dual identity via signed Agent Attestation Token (AAT)
Authorization Rule
Local Docker MCP Proxy (<10 MCPs) User permissions only
Naive Central Gateway Broad agent service-account grant
Snap Production MCP Gateway (60+ MCPs) Intersection: allowed for both human requester and agent
OAuth Token Storage
Local Docker MCP Proxy (<10 MCPs) Local disk; Jira/Slack expire daily
Naive Central Gateway Embedded in gateway or MCP server env vars
Snap Production MCP Gateway (60+ MCPs) Isolated in Security-owned Auth Translation Service (ATS)
Write Access Governance
Local Docker MCP Proxy (<10 MCPs) Ad-hoc per developer setup
Naive Central Gateway Global opt-in per server
Snap Production MCP Gateway (60+ MCPs) Earned per tool; dual sign-off from agent team + tool owner
Audit Trail
Local Docker MCP Proxy (<10 MCPs) Fragmented across laptops
Naive Central Gateway Blames bot account for human-triggered PRs
Snap Production MCP Gateway (60+ MCPs) Centralized logs tying requester, agent, grant, and denial
Snap’s rationale for restricting read permissions, not just write operations, deserves emphasis for security architects. Because prompt injection remains unsolved, an agent that inherits every document, Slack channel, and repository its human user can read becomes an automated exfiltration proxy the moment it parses one untrusted Jira comment or web page. Separating user entitlements from agent grants ensures a compromised prompt cannot silently sweep an engineer’s entire corporate access scope.
The developer-velocity payoff also explains why centralizing MCP infrastructure works better than policing shadow containers. Once Snap integrated Docker’s gateway core into its internal service mesh, a data platform team stood up a brand-new internal MCP, deployed it behind the gateway within one week, and opted into Casper support without writing custom agent authentication plumbing.
Snap’s staged write-access rollout offers an equally practical playbook for CISOs nervous about giving autonomous agents mutation privileges. GitHub MCP launched strictly read-only across code, issues, and pull requests while security teams validated telemetry and denial logs. Snap’s first write-capable integration was the open-source Jira MCP server, followed only later by GitHub pull-request writes and Slack posting. For chat-triggered tasks originating in Slack, the trusted orchestrator verifies Slack’s cryptographic message signature and maps the sender to an internal corporate principal before requesting an Agent Attestation Token, blocking forged prompts from impersonating privileged engineers across service-mesh boundaries.
Designing a Dual-Identity Authorization Check at the Gateway
Engineering organizations building or adopting a centralized MCP gateway can enforce Snap’s intersection rule directly in policy middleware before forwarding any tool invocation downstream:
{
"mcp_policy_decision": {
"token_type": "AgentAttestationToken",
"original_requester": "human:[email protected] ",
"acting_agent": "agent:casper-prod",
"requested_tool": "github.pull_request.create",
"checks": {
"requester_authorized": true,
"agent_grant_authorized": true,
"write_tool_owner_approved": true,
"oauth_source": "auth-translation-service"
},
"decision": "ALLOW"
}
}
If either requester_authorized or agent_grant_authorized evaluates to false, the gateway returns a deterministic denial and writes both identities to the central audit log before touching the downstream MCP server or ATS credential broker.
Retire Local Multi-Container MCP Proxies Once Past 10 Servers : Consolidate internal MCP servers behind a single service-mesh gateway so teams stop maintaining local Docker stacks and daily expiring OAuth sessions.
Enforce Intersection-Based Authorization for Delegated Agents : Implement signed delegation tokens carrying both human requester and agent machine identities, verifying both permissions on every restricted read and write call.
Move Third-Party OAuth Tokens Out of MCP Containers : Centralize user OAuth storage and rotation in a security-managed token broker so individual MCP server authors never handle raw Slack, Jira, or GitHub credentials.
Beat:
Topics:
# ai-agents
# identity-security
# mcp-gateway
# oauth
# snap