nano-vm-mcp

v0.5.0
nano-vm-mcp Checked 4 days ago Published 22 days ago

MCP 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.

ParameterTypeDescription
program *objectnano_vm.Program JSON (steps, budgets, etc.)
save_asstringOptional name to save the program for later reuse.

get_trace

Retrieve the full Trace JSON for a completed run by trace_id.

ParameterTypeDescription
trace_id *stringUUID 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.

ParameterTypeDescription
program_id *string

delete_program

Delete a saved program and all its traces.

ParameterTypeDescription
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.

ParameterTypeDescription
session_id *stringCaller-owned conversation identifier (e.g. a chat_id).
inputobjectContext (first call) or resume payload (later calls).
programobjectnano_vm.Program JSON. Required on first call.
save_asstringOptional name to save the program under.