Consistent with ollie's own dispatchBuiltinExec. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| claude | ||
| docs | ||
| kiro-cli | ||
| ollama | ||
| LICENSE.md | ||
| README.md | ||
| execute.go | ||
| execute_test.go | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| metrics.go | ||
| mkfile | ||
README.md
anvillm-mcp
MCP server providing sandboxed code execution for LLM agents.
Overview
anvillm-mcp bridges MCP clients (Claude Desktop, Kiro, etc.) to shell execution with security isolation. It wraps script execution in a sandbox (landlock/landrun/bwrap) to limit filesystem and network access.
The execute_code tool implementation lives in ollie's exec package. anvillm-mcp imports it directly, so the two share the same sandboxed execution engine. ollie uses the same package as a built-in tool and does not need anvillm-mcp for execute_code — this server exists for MCP clients that lack a built-in equivalent.
Note: The tools themselves are hosted by anvillm via 9P at anvillm/tools/*. anvillm-mcp is optional — without it, you can still run tools directly:
bash <(9p read anvillm/tools/check_inbox.sh)
Installation
mk install
Backend Setup
Install MCP configuration for your backend:
./claude/install-mcp.sh # Claude Desktop
./kiro-cli/install-mcp.sh # Kiro CLI
./ollama/install-mcp.sh # Ollama
Configuration
Sandbox configuration uses layered YAML files from ~/.config/anvillm/, provided by anvillm:
global.yaml— base configurationsandbox/<name>.yaml— sandbox-specific overrides
See docs/ for detailed security and usage documentation.
Dependencies
- ollie (required) — provides the
execpackage - anvillm (required) — serves tools via 9P, manages sessions/beads
- landrun or bwrap (optional) — sandbox isolation