mcp

MCP tools (lifecycle, exec, act, k3s)

Sandbox lifecycle, exec, files, workspace, act, and k3s tools exposed over MCP.

The MCP server registers tools such as:

ToolPurpose
grain_healthDaemon health + info
grain_list_vms / grain_get_vmInventory
grain_create_vm / grain_start_vm / grain_stop_vm / grain_delete_vmLifecycle
grain_execRun commands (optional streaming)
grain_write_file / grain_read_fileGuest files
grain_workspace_sandboxRepo-oriented sandbox helper
grain_forward_add / grain_forward_removePort forwards
grain_image_list / grain_image_pullImages
grain_fs_*Guest filesystem ops
grain_act / grain_k3sRecipe helpers
grain_agent_health / grain_logs / grain_statsObserve

Exact names and schemas come from tools/list on a live server (go run ./scripts/mcp-handshake.go ./bin/grain).

See the MCP overview for configuration and host setup.