Run MCP Without the Desktop App
Therei CLI ships the same MCP server
the desktop app does, and can host it directly. This is the path for a headless install,
a CI box, or anyone who works in the terminal — no app, no GUI, no account.
1. Install the CLI
rei command, which runs the same analyzers as the desktop app, fully
on your machine.
2. Warm the context (recommended)
rei analyze writes a cached analysis the MCP server reads, so health and complexity
tools answer instantly. It’s optional — see Cold start — but running it
once means the first agent call returns real data immediately.
3. Register the server
rei mcp runs the MCP server over stdio, scoped to whatever git repo it’s launched in —
no “active project” file needed.
Claude Code:
command/args differ from the
desktop-app setup (which points at the app binary with --mcp-server).
Cold start
If you skiprei analyze, the first context-dependent tool call
(get_project_health, get_complexity_hotspots, …) returns a short “run rei analyze”
hint and warms the context in the background — a retry a moment later succeeds. The
diff and annotation tools (get_annotated_diff, list_annotations,
add_annotation_comment, …) work immediately regardless, because they read live git and
your annotation file, not the cached analysis.
So the review loop is usable the instant the server connects; only the analysis-derived
tools need a warm-up.