|
| 1 | +# agentkernel MCP Server |
| 2 | + |
| 3 | +Use agentkernel with any MCP-compatible AI coding agent. |
| 4 | + |
| 5 | +agentkernel includes a built-in MCP (Model Context Protocol) server that lets any compatible agent run commands in hardware-isolated microVM sandboxes. |
| 6 | + |
| 7 | +## Compatible Agents |
| 8 | + |
| 9 | +| Agent | Config Location | Status | |
| 10 | +|-------|----------------|--------| |
| 11 | +| Claude Code | `~/.claude/settings.json` | Built-in (see `claude-plugin/`) | |
| 12 | +| Codex | MCP config file | See `plugins/codex/` | |
| 13 | +| Gemini CLI | `~/.gemini/settings.json` | See `plugins/gemini/` | |
| 14 | +| OpenCode | `.opencode/plugins/` | See `plugins/opencode/` | |
| 15 | +| Any MCP agent | Varies | Use config below | |
| 16 | + |
| 17 | +## Universal MCP Config |
| 18 | + |
| 19 | +For any MCP-compatible agent, add this server configuration: |
| 20 | + |
| 21 | +```json |
| 22 | +{ |
| 23 | + "mcpServers": { |
| 24 | + "agentkernel": { |
| 25 | + "command": "agentkernel", |
| 26 | + "args": ["mcp-server"], |
| 27 | + "env": {} |
| 28 | + } |
| 29 | + } |
| 30 | +} |
| 31 | +``` |
| 32 | + |
| 33 | +With an API key: |
| 34 | + |
| 35 | +```json |
| 36 | +{ |
| 37 | + "mcpServers": { |
| 38 | + "agentkernel": { |
| 39 | + "command": "agentkernel", |
| 40 | + "args": ["mcp-server"], |
| 41 | + "env": { |
| 42 | + "AGENTKERNEL_API_KEY": "sk-..." |
| 43 | + } |
| 44 | + } |
| 45 | + } |
| 46 | +} |
| 47 | +``` |
| 48 | + |
| 49 | +## MCP Tools |
| 50 | + |
| 51 | +The server exposes these tools: |
| 52 | + |
| 53 | +| Tool | Description | |
| 54 | +|------|-------------| |
| 55 | +| `run_command` | Run a command in a temporary sandbox | |
| 56 | +| `create_sandbox` | Create a named persistent sandbox | |
| 57 | +| `exec_in_sandbox` | Execute a command in an existing sandbox | |
| 58 | +| `remove_sandbox` | Remove a sandbox | |
| 59 | +| `list_sandboxes` | List all active sandboxes | |
| 60 | + |
| 61 | +## Prerequisites |
| 62 | + |
| 63 | +Install agentkernel: |
| 64 | + |
| 65 | +```bash |
| 66 | +# Homebrew |
| 67 | +brew tap thrashr888/agentkernel && brew install agentkernel |
| 68 | + |
| 69 | +# Cargo |
| 70 | +cargo install --git https://github.com/thrashr888/agentkernel |
| 71 | + |
| 72 | +# From source |
| 73 | +git clone https://github.com/thrashr888/agentkernel |
| 74 | +cd agentkernel && cargo build --release |
| 75 | +``` |
| 76 | + |
| 77 | +## License |
| 78 | + |
| 79 | +MIT |
0 commit comments