Menu

Post image 1
Post image 2
1 / 2
0

Introducing hatch - a capability-based sandbox for MCP

DEV Community·Irfan·18 days ago
#tZs58qbq
#ai#mcp#rust#llm#hatch#sandbox
Reading 0:00
15s threshold

Irfan

Github repo

Hatch is a capability-based sandbox for MCP (Model Context Protocol) servers on Linux and macOS. Each server runs under a signed TOML manifest that declares its network destinations, filesystem paths, subprocess permissions, and per-tool argument rules in a CEL subset, enforced by user/mount/pid/net namespaces + cgroups + iptables on Linux and sandbox-exec + PF on macOS, plus an SNI-filtering proxy and DNS allowlist for egress. The threat model is the contract: "what hatch does NOT protect against" sits right next to "what it does."

Read More