# Quick Start

Source: https://runvero.dev/docs/quickstart/
Documentation index: https://runvero.dev/llms.txt

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.

**Install status**
**Available:** building from source, as shown here.
**Planned:** the prebuilt installer (`install.sh`), `cargo install runvero-cli` from crates.io, and `pip install` / `npm install` packages. They arrive with the first public release. Until then, those commands do not work.


## 1. Prerequisites

- Git
- Rust, installed with [rustup](https://rustup.rs). 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`](https://github.com/casey/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.

## 2. Build the CLI

```bash
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
```

```text
runvero 0.1.0
```

## 3. Build starter tools

The repository includes a [starter catalog](https://github.com/runvero-labs/runvero/blob/main/docs/starter-catalog.md) of ready-made tools. Build three of them:

```bash
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.

## 4. Run your first tool

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

```bash
runvero run target/catalog/calculator.tool.json
```

```text
{"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:

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

```text
{"columns":["answer"],"rows":[[42]],"truncated":false}
```

## 5. See a limit stop a run

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:

```bash
runvero run target/catalog/calculator.tool.json --fuel 100000
```

```text
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](https://runvero.dev/docs/cli#egress-options).

## 6. Output for scripts

`--raw` prints only the tool output:

```bash
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:

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

## 7. Connect an MCP client

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

```bash
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`):

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

## Next steps

- [CLI reference](https://runvero.dev/docs/cli): every command and flag.
- [Python client](https://runvero.dev/docs/python-sdk): call the gateway from Python.
- [Tool authoring](https://runvero.dev/docs/wit-contracts): write your own tool.
