Raytrace CLI logo

Raytrace CLI

MCP access to RayTrace for creating isolated agent sandboxes and inspecting recorded commands, file changes, network activity, and session evidence.

Install Raytrace CLI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "raytrace-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@raytrace-cli/cli@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @raytrace-cli/cli@latest

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

raytrace-cli MCP server connects agent workflows to RayTrace's local sandboxing CLI. It lets an agent create or connect to an isolated copy of a Git repository, run Claude Code or Codex inside it, and inspect the resulting activity through RayTrace's dashboard. Reach for it when you need verifiable evidence of commands, file access, file changes, network connections, and real exit codes rather than relying only on an agent's report. Local operation keeps project data and captured activity on the machine.

Use cases

  • Create an isolated copy of a Git repository for agent work
  • Inspect commands and network connections made during an agent session
  • Compare reported tool calls with externally captured sandbox evidence
  • Export agent-generated repository changes as a patch
  • Rerun a session with changed inputs and an optional test command

Key features

  • Local Docker and gVisor sandboxing inside a Lima VM
  • External capture of commands, exit codes, files, and network activity
  • Dashboard for prompts, tool calls, evidence, and file changes
  • Claude Code and Codex connection modes
  • Session forking with optional checks
  • MIT-licensed local operation without required cloud upload

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · @raytrace-cli/cli@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars123Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Raytrace CLI works

What raytrace-cli MCP server does

raytrace-cli MCP server gives MCP-connected agents access to RayTrace's local sandbox workflow. A repository is copied into an isolated environment where an agent can work without direct access to the host's files or private networks. The resulting activity is captured for inspection in a local dashboard.

RayTrace separates reported agent activity from observed sandbox evidence. The dashboard can show prompts, answers, and tool calls alongside commands that actually ran, their exit codes, files read or changed, and network destinations. Project changes are snapshotted after edits, and the resulting differences can be taken out as a patch.

This fits development tasks where an agent needs to modify or test a repository but the operator also needs an auditable record of what happened.

How it works

Each local sandbox runs as a Docker container under gVisor inside a Linux virtual machine managed by Lima. A collector outside the sandbox records activity, so the agent cannot disable or alter the capture process. The host project itself is not modified, and local sessions do not upload data.

Sandboxes have fixed resource limits: 2 GB of memory, 2 CPUs, 256 processes, and a 512 MB /tmp. They share a 30 GiB virtual-machine disk. The dashboard runs locally at http://127.0.0.1:8797 by default.

The workflow can start Claude Code, start Codex, or provide a plain shell in the sandbox. Sessions remain available when the terminal disconnects. RayTrace can also rerun a session from a previous step as a separate fork, with altered tool results, files, model, or messages, and optionally run a check such as npm test.

Setup and configuration

Install the CLI from npm with npm install -g @raytrace-cli/cli, or install the PyPI package with pip install raytrace-cli or uv tool install raytrace-cli. The npm route requires Node.js 22.16 or newer on macOS or Linux; the PyPI package supplies its own Node.js runtime.

From a Git repository, create a local sandbox with raytrace sandbox create --local, then connect with raytrace connect <repository-or-sandbox> --claude or --codex. Omitting both flags opens a plain shell. Use raytrace open to access the local dashboard. The MCP setup can use npx -y @raytrace-cli/cli@latest; when using the Python installation, use uvx --from raytrace-cli raytrace instead.

macOS 13.5 or later can use Lima 2.0+ or let RayTrace download it. Linux requires Lima, QEMU, and access to /dev/kvm. Windows support is experimental and requires WSL2 for local sandboxes. Initial setup downloads about 1 GB, and the VM uses 4 GiB of memory while running. raytrace doctor checks the host prerequisites.

Tools and capabilities

  • Create, list, start, stop, and destroy local sandboxes.
  • Connect a repository to Claude Code, Codex, or a plain shell.
  • Open a local dashboard for prompts, tool calls, and sandbox evidence.
  • Review commands, exit codes, file reads, edits, and network connections.
  • Inspect snapshots and export changes as patches.
  • Archive or delete captured logs when destroying a sandbox.
  • Upload logs to the RayTrace cloud dashboard after signing in.
  • Fork recorded sessions and compare reruns with optional checks.

Limitations and notes

Local sandboxes depend on virtualization support and host resources. Older macOS versions need QEMU in addition to Lima, Linux needs KVM access, and Windows follows an experimental WSL2 path. Each sandbox shares the VM's disk capacity and has the stated CPU, memory, process, and temporary-storage limits.

Cloud sandboxes and cloud log uploads are optional. Uploading logs requires a RayTrace account; local use does not require one. Destroying a sandbox prompts for a log-handling choice: captured data can be deleted or moved into ~/.raytrace/archive/ for continued dashboard access.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Raytrace CLI

raytrace-cli is an MCP server that connects agent workflows to RayTrace local sandboxes and its CLI. Its main tools support creating or connecting to isolated Git repositories, running Claude Code or Codex there, and reviewing dashboard evidence for commands, file changes, network connections, and session activity.

Install the CLI with npm, pip, or uv, then use the corresponding MCP launcher. The npm command is `npx -y @raytrace-cli/cli@latest`; with the Python package, use `uvx --from raytrace-cli raytrace`.

Run `raytrace sandbox create --local` from a Git repository, then connect with `raytrace connect <name> --claude` or `--codex`. Use `raytrace open` in another terminal to open the local dashboard.

Yes. RayTrace can start Claude Code or Codex inside a sandbox, or open a plain shell where you run either agent yourself.

No for local sandboxes: captured activity stays on the machine. Logs can be uploaded to the RayTrace cloud dashboard separately with `raytrace upload logs --sandbox <name>`, which requires signing in.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRaytrace CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/raytrace-cli?style=directory)](https://allmcps.com/mcp/raytrace-cli)
HTML Embed
<a href="https://allmcps.com/mcp/raytrace-cli"><img src="https://allmcps.com/api/badge/raytrace-cli?style=directory" alt="Raytrace CLI on AllMCPs" /></a>