Hacker News

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

20 points by Kaedon ago | 6 comments

hobofan [-]

> 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.

I don't think I've seen any MCP server implement tool call approval like this. The much more common pattern is a annotation hint for a destructive or open world tool, which most clients interpret as prompt for user approval (depending on their settings).

glenngillen |root |parent |next [-]

Claude’s somewhat recent “mods” feature adds some nice hooks that make customising things like this possible. I built a very rudimentary PoC to see how it would work in providing a bit more customisation around risk scoring certain tool calls. I think it has a lot of promise, though my particular demo leaves a lot to be desired in terms of UX: https://glenngillen.com/thoughts/risk-scoring-tool-calls/

hobofan |root |parent [-]

Nice write-up!

We are building an self-hostable chat platform[0], so tool call approval from the perspective of a client is very much at the forefront of my mind.

It's suprising how little writing and existing work regarding that topic exists out there despite it being quite essential for secure operation of MCP servers. We are currently mostly tackling it from a lens of "how can we make a tool call understandable for a layman user", but are also looking to integrate a auto-review system similar to the one you outlined.

We are starting there first, as in the case of an auto-review system coming to the conclusion that user approval is necessary, the user has to be able to judge the involved risk without being a security expert (it's very much not apparent that a simple read-ony web request can be easily used to leak sensitive company information). I think the 5 policy criteria you outlined are a good starting point, but I think it's in many cases probably necessary to introduce even more. It may also be interesting to make them pluggable to model organization-specific compliance requirements as individual policy scores.

[0]: https://github.com/EratoLab/erato

thecopy |root |parent |next |previous [-]

Google's MCP does this

lubujackson |root |parent |previous [-]

The problem is that nobody follows the spec consistently and neat features like elicitation go mostly unused because if not all clients can use it you are building functionality multiple times without knowing which approaches are actually being used. This in addition to custom clients or scripts pretending to be MCP clients. You need to support everybody, so the lowest common denominator reigns.

This reminds me of the early browser wars. You can build to the spec then notice every major company's MCP is dumb or built with custom logic (like Datadog). Support enough customers and you soon find out why.

raxxorraxor |root |parent [-]

I don't see how it could work differently. MCP for us in a company currently means accessing knowledge sources and tools like find_xxx and we need custom connectors to do that. Especially if those also have to link to the authorisation layers of a source that has to be "forwarded" to the MCP server to be checked against the caller.

And yes, the currently strategy is a monolithic MCP Server to spread tools and to not have everyone to vibe code their own. This could be another layer that solves some problems here.