Airlock: MCP elicitation as a permission system for agent shell commands
Any agent (Claude Code, Cursor, VS Code, Zed) runs shell commands through one MCP server, and each command is checked before it runs. Most agent guards decide which tools an agent may call; Airlock is the layer under them and decides what a shell command can do to the machine. Asked in your own client: a risky command returns an MCP elicitation form, which you answer with once, this session, always for this project or refuse. The MCP bundle signs the request state, and Airlock ties it to that exact command with a one-use token, so an answer for "make test" can't be reused to run anything else. Granted commands are rate limited: one called in a loop is asked again. Read like a shell would: a grant for "make test" doesn't cover "make test; rm -rf ~", and sudo, recursive deletes, git push and curl | sh are always asked. Run in a sandbox (bubblewrap on Linux, sandbox-exec on macOS): commands can write only inside the project and can't read your keys, and the network reaches package registries and the hosts you allow. Output checked by a model through symfony/ai-platform, using structured output (clean or injection); secrets in the output are masked, and every command goes into one audit log. Built on symfony/mcp-bundle (mcp/sdk), symfony/ai-platform and ai-bundle. Try it: one install command, a working demo in five minutes, and "airlock attacks" replays 25 injected commands to show what Airlock does with each, without running anything. For judges: docs/judges.md goes from clone to a running demo and points to the code that matters, and docs/mcp-spec.md maps each MUST and SHOULD of the MCP spec on tools and elicitation to the code and the test behind it. 995 tests; CI runs the real binary as a client would on Linux x86_64, Linux arm64 and macOS; releases are signed binaries with checksums, attestations and an SBOM.
Play the video on YouTube
1:30