9 points Kaedon 2 days ago 3 comments

hobofan 1 hour ago | parent

> 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 57 minutes ago | parent

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 30 minutes ago | 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