Skip to content
Appearance

Follows your device’s appearance.

Quick Start

This guide builds the runvero CLI and a few ready-made tools from source, runs them inside the sandbox, shows a limit stopping a run, and connects the tools to an MCP client. Every command and output below was run against the current runvero source.

  • Git
  • Rust, installed with rustup. The repository pins the toolchain and the wasm32-wasip2 target, so cargo installs them on first use.
  • Python 3.10 or newer, to build the Python-based starter tools.
  • just, the repository’s command runner.

The first build downloads crates and the WASI SDK and takes a few minutes. Later builds are much faster.

Terminal window
git clone https://github.com/runvero-labs/runvero.git
cd runvero
cargo build --release --package runvero-cli
alias runvero="$PWD/target/release/runvero"
runvero --version
runvero 0.1.0

The repository includes a starter catalog of ready-made tools. Build three of them:

Terminal window
just setup-python
just build-catalog --tool calculator --tool sqlite-runner --tool regex-extractor

Each tool lands in target/catalog/ as a .wasm component next to its .tool.json manifest. The manifest holds the tool’s description, input schema, examples and resource limits. Run just build-catalog with no arguments to build all eight tools.

With no arguments, runvero run uses the first example in the manifest:

Terminal window
runvero run target/catalog/calculator.tool.json
{"result":14}
--- Execution Breakdown ---
Memory Consumed: 12.44 MiB (13,041,664 bytes)
Fuel Consumed: 692,548 instructions
Execution Time: 8.08 ms
---------------------------

Log lines go to stderr, so only the result and breakdown are shown here. Your numbers will differ slightly. Execution time excludes loading and compiling the component, which runvero caches after the first run.

Pass your own arguments with --args. They are checked against the manifest’s input schema before the tool runs:

Terminal window
runvero run target/catalog/sqlite-runner.tool.json \
--args '{"query":"SELECT 6 * 7 AS answer"}'
{"columns":["answer"],"rows":[[42]],"truncated":false}

Every run has a fuel (instruction) budget, a memory cap and a timeout. Give the same tool too little fuel and the host stops it:

Terminal window
runvero run target/catalog/calculator.tool.json --fuel 100000
ERROR runvero: Sandbox execution terminated with error error=Sandbox instruction fuel exhausted (limit reached)

The command exits with status 1 and returns no output. Network access is blocked unless you allow a host with --allow-host; see egress options.

--raw prints only the tool output:

Terminal window
runvero run target/catalog/sqlite-runner.tool.json \
--args '{"query":"SELECT 6 * 7 AS answer"}' --raw

--breakdown-json prints the result and its measurements as JSON:

{
"egress_denials": [],
"execution_time_ms": 0.72,
"fuel_consumed": 333588,
"memory_consumed_bytes": 1310720,
"output": "{\"columns\":[\"answer\"],\"rows\":[[42]],\"truncated\":false}"
}

Serve the build directory. The gateway listens on 127.0.0.1:8080 and requires a bearer token:

Terminal window
export RUNVERO_AUTH_TOKEN="$(openssl rand -hex 24)"
runvero serve --tools-dir target/catalog

Then point your MCP client at the stdio bridge. For Claude Desktop (claude_desktop_config.json):

{
"mcpServers": {
"runvero": {
"command": "/path/to/runvero/target/release/runvero",
"args": ["mcp-bridge", "--gateway-url", "http://127.0.0.1:8080/mcp"],
"env": { "RUNVERO_AUTH_TOKEN": "<the same token>" }
}
}
}

Cursor uses the same command. The client lists each tool with the description and argument schema from its manifest. Ask it to “use the calculator tool to work out 2 + 3 * 4” to confirm the connection works.