# Snap MCP Gateway：如何同时校验人与Agent

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

> Hacker News story 50620120 · language: zh · submitted 2026-11-23
> Web version: https://zeli.app/zh/story/50620120
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 22 · by [Kaedon](<https://news.ycombinator.com/user?id=Kaedon>) · 💬 10
[original](<https://eng.snap.com/mcp-gateway>) · [HN discussion](<https://news.ycombinator.com/item?id=50620120>)

## Summary

当AI Agent通过Model Context Protocol调用工具时，身份链往往在中间环节断裂，导致权限校验失败。Snap构建了中央MCP Gateway，连接超过60个MCP服务器和1100多个工具，确保员工及其Agent（如Casper）的调用既代表人也代表Agent本身。我们引入了Agent Attestation Token系统，完整传递原始请求者身份，并结合基于PR的权限审批流程，让服务所有者能精确控制Agent的读写权限。从本地Docker容器到集中式托管，Snap通过这一架构解决了Agent在云环境下的身份传递难题，既保障了安全，又提升了开发效率。

## Key quote

> 如果一个代理代表一个人行动，该调用必须同时通过该人和该代理的验证。

## HN discussion (10 comments)

### [scottfalconer](<https://news.ycombinator.com/item?id=50656323>)

> re: "Where we go from here" / 高风险操作 / MCP 引导
>
> 作为 symfony mcp hackathon 的一部分，我开发了一个正好实现这一功能的工具。当尝试执行高风险操作时，上游可以要求基于签名的 passkey 进行“人工”授权——该授权仅对当前特定操作有效。
>
> 如果客户端不支持 MCP 引导，则回退到 html 卡片。
>
> https://github.com/scottfalconer/verified-human-approval

### [hobofan](<https://news.ycombinator.com/item?id=50654182>)

> \> On top of today’s grant approvals, some actions might need to pause and ask the human to confirm before they run ("are you sure you want to do that?"). MCP elicitation offers a way to do that, and the latest MCP spec supports it without needing stateful requests.
>
> 我觉得我没见过任何 MCP 服务器实现过这种工具调用审批。更常见的模式是为破坏性或开放世界工具提供 annotation 提示，大多数客户端会根据其设置将其解释为请求用户批准。

### [spwa4](<https://news.ycombinator.com/item?id=50657262>)

> 幸运的是，这对本地计算机使用 Agent 完全没有任何限制。比如，如果有需要，Qwen3.8 27B 可以直接使用实际的应用程序，必要时在手机上使用，就像真人操作一样。

---

## Cite

- Page: https://zeli.app/zh/story/50620120
- Date: 2026-11-23
- Source: eng.snap.com (https://eng.snap.com/mcp-gateway)
- Hacker News: https://news.ycombinator.com/item?id=50620120

## Other languages

- en: https://zeli.app/story/50620120 · markdown: https://zeli.app/story/50620120.md
- ja: https://zeli.app/ja/story/50620120 · markdown: https://zeli.app/ja/story/50620120.md
- ko: https://zeli.app/ko/story/50620120 · markdown: https://zeli.app/ko/story/50620120.md
- de: https://zeli.app/de/story/50620120 · markdown: https://zeli.app/de/story/50620120.md
- es: https://zeli.app/es/story/50620120 · markdown: https://zeli.app/es/story/50620120.md
- ru: https://zeli.app/ru/story/50620120 · markdown: https://zeli.app/ru/story/50620120.md
