nano-vm-mcp
v0.5.0MCP server for llm-nano-vm — run deterministic LLM programs via Model Context Protocol
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_program
Execute a nano-vm Program dict. Returns trace_id, status, step count, and cost. Optionally persists the program under a name.
| Parameter | Type | Description |
|---|---|---|
program * | object | nano_vm.Program JSON (steps, budgets, etc.) |
save_as | string | Optional name to save the program for later reuse. |
get_trace
Retrieve the full Trace JSON for a completed run by trace_id.
| Parameter | Type | Description |
|---|---|---|
trace_id * | string | UUID returned by run_program. |
list_programs
List all saved programs (id, name, created_at).
get_program
Retrieve a saved Program JSON by its program_id.
| Parameter | Type | Description |
|---|---|---|
program_id * | string |
delete_program
Delete a saved program and all its traces.
| Parameter | Type | Description |
|---|---|---|
program_id * | string |
vm_step
(session_id, input) -> output for channel adapters. First call for a session must include 'program'; the trace runs and suspends/finishes. Subsequent calls for the same session_id resume the suspended trace with 'input' as the new turn's payload — 'program' may be omitted. Response includes 'suspended': bool signalling whether the caller must call vm_step() again to continue the conversation.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Caller-owned conversation identifier (e.g. a chat_id). |
input | object | Context (first call) or resume payload (later calls). |
program | object | nano_vm.Program JSON. Required on first call. |
save_as | string | Optional name to save the program under. |