How do I set up Mirrors, step by step?
Five steps: connect an MCP client so your AI does the driving, add the collector so real sessions start streaming, then build an environment, author an eval set, and read your first result. Steps 3 to 5 can be run from your MCP client, the CLI, or the dashboard; they all hit the same backend.1
Install the MCP
Mirrors hosts an MCP server that exposes the full product surface (build, explore, query, and eval environments), so any MCP client can drive it. Point your client at the hosted endpoint; sign-in happens in the browser on first use, no API key to paste.Then run Every other client (Zed, Warp, Goose, Cline, Windsurf, …), the one-click installs, and headless/CI setups with a workspace key are on the MCP server page.
- Claude Code
- Cursor
- VS Code
- ChatGPT
- Codex
- Claude / Desktop
/mcp → mirrors → Authenticate via browser.2
Install the collector
The collector streams your agent’s real production traces to Mirrors, the raw material every environment is built from. First mint a workspace API key (Run your agent normally and traces start streaming. Details per language: Python, TypeScript, Go.
mk_live_…) at runmirrors.com under Settings → API keys, then install the collector and initialize it before your agent runs. It auto-instruments LangChain/LangGraph, Anthropic, and OpenAI, ships traces in the background, and never raises into your app.3
Build your first environment
Turn the collected traces into an environment: a schema, a seeded database, and bound tools, a runnable copy of your agent’s world, scored per tool for fidelity. Ask your MCP client, or use the CLI:You can also build from the dashboard under Ingest → Build. Prefer files over a live stream?
mirrors build traces.jsonl --name my-agent ingests a trace log directly.4
Create your first eval set
An eval set is the suite of sessions replayed against every change. Auto-author cases from your real traces, then keep the ones that matter:Hand-write or extend cases with
mirrors eval create my-agent --name smoke --from cases.json. See How it works for what a case scores.5
View your first result
Run the eval set and read the result: per-tool coverage and accuracy, plus any session that would have broken.Or open the run in the dashboard. From here, wire the same eval set into CI so every PR that touches your agent replays it. See CI gate.
Next steps
How it works
Fidelity scoring, deterministic seeding, business context, and evals.
MCP server
Every client, one-click installs, and headless setups.
CLI
The
mirrors command: full parity with the web app.CI gate
Block regressions at the pull request, Vercel-style.
