-
Notifications
You must be signed in to change notification settings - Fork 36
feature - sandboxing mcp tooling via zypi, and/or docker, and/or bubblewrap #265
Description
I wanted to stop by to add that if we begin using the MCP tools enabled in this branch, we should really consider adding sandboxing of some kind, gemini cli has some limited form of this, including tool exclusions
so you can exclude ShellCommand(rm -rf) from running for example, and add a "sandbox": true, which then runs the tool within a docker container.
I've been experimenting a bit with this using firecracker VMs, with openapi spec mcp generations
- https://github.com/allen-munsch/zypi
- https://github.com/allen-munsch/yas-mcp ( which i had planned to manage via toolhive/thv )
Its hard to believe how fast the tools have come in the last year, well maybe not considering how incredible aider was just 9 months ago, seems antiquated already.
This issue I believe also brings up a good example using cgroups via bubblewrap.
All very serious concerns, considering agent systems can dangerously make mistakes, intended or not.