reflow mcp · local stdio + hosted HTTP

For coding agents and agent builders.

Connect Claude Code, Codex, Cursor, or any MCP client to Reflow’s deterministic execution engine, versioned product knowledge, live --hold debugging, changed-line coverage, and Review App publishing.

curl -fsSL https://reflow.io/install.sh | sh
reflow login

Bundles Node + 7 core Go plugins; optional plugins install on demand via reflow init.

Connect your MCP client.

Use the same private profile for the CLI and MCP client. Reflow infers the checkout from the working directory and discovers the local service automatically. Hosted connection settings are defaults. For desktop clients launched outside the checkout, see the setup appendix.

Local stdioreflow mcp
Hosted HTTPhttps://mcp.reflow.io/mcp
reflow mcp
CLI one-liner · Claude Code
claude mcp add reflow -- reflow mcp
Config file · Claude Code (stdio)
{
  "mcpServers": {
    "reflow": {
      "command": "reflow",
      "args": [
        "mcp"
      ]
    }
  }
}

Local stdio runs reflow mcp on your device with full execution, --hold debugging, plugins, coverage, and Review App publishing. Switch to Hosted HTTP (https://mcp.reflow.io/mcp) for OAuth read-only inspection from remote clients.

How an agent drives Reflow.

Execution is deterministic with zero in-runner LLM calls. Your coding agent reads product rules, runs manage_execution, debugs held failures live, checks changed-line coverage, and publishes Review Apps or review_changes bundles for human merge.

Architecture & security boundaries
Coding agent Claude Code · Codex Cursor · VS Code · MCP reads diff & rules owns diagnosis stdio reflow mcp local server · same profile manage_execution debug_execution search_kb · load_skill query_code_coverage DAG Device service private bindings · zero LLM 12+ plugins (Browser, SQL, OpenAPI, TLA+, Lean, VM…) --hold pauses failed step sync Evidence & PRs human merge decides Hosted Review Apps reflow pr review threads Changed-line coverage Retained runs & diffs

MCP tool surface.

Full tool catalog exposed by reflow mcp. Tools marked both are also available read-only or for shared reads over Hosted HTTP (https://mcp.reflow.io/mcp).

Full MCP tool contracts

Execution & live debugging

Plan dependency graphs, run flows in parallel, and debug held failures without replaying passed steps.

manage_execution local stdio

Select target, plan with reuse/timing estimates, apply (including --hold), watch status, taint, and unlock.

debug_execution local stdio

Inspect a held failed run live: capture DOM/ARIA snapshots, take screenshots, and run diagnostic RFL lines before resuming.

Flows, collections & plugins

Discover, author, and lock Markdown/RFL flows across Git and hosted storage.

search_flows local + hosted

Find covering flows by changed source path, slug, tag, or free-text query.

manage_flows local + hosted

Read, create, update, and validate flows in Git or Reflow collection storage.

list_plugins local stdio

Inspect installed plugin schemas, command signatures, and runtime requirements.

init_plugins local stdio

Initialize or upgrade the application collection’s pinned plugin lock.

manage_collections local stdio

List, create, and select application collections directly from CLI or MCP.

Knowledge, guidance & preferences

Load task-specific skills, maintain versioned product rules, and persist team/user instructions.

get_reflow_context local + hosted

Return active collection, storage policy, target status, and available capabilities.

load_skill local + hosted

Load focused packaged skills on demand (test-change, flow-authoring, review-apps, pr-publishing, golden-authoring).

get_product_docs local + hosted

List, search, and read the exact product docs bundled with the connected CLI.

search_kb local + hosted

Search versioned application knowledge pages by rule, route, or symbol.

get_kb_page local + hosted

Read a pinned revision of a knowledge document and its linked covering flows.

manage_preferences local + hosted

Read and update persistent user and team instructions delivered to every agent session.

Evidence & code coverage

Keep large captures out of context until inspected, and measure changed-line or golden coverage.

get_run_evidence local + hosted

Fetch retained screenshots, motion recordings, SQL row tables, command output, and downloads for a run.

query_code_coverage local stdio

Query Go, Swift/LLVM, and browser JS/TS coverage: changed-line diffs, cumulative gain, and golden suite attribution.

Review Apps & PR review

Assemble interactive hosted Review Apps and structured before/after comparisons for human PR merge.

manage_review_apps local stdio

Create, validate, preview locally, and publish sandboxed HTML/JS Review Apps with <reflow-compare>, <reflow-flow>, <reflow-run>, and <reflow-file>.

upload_review_app_asset local stdio

Upload custom diagrams, captures, or data files referenced by a Review App.

review_changes local + hosted

Compare base and candidate runs, prepare Markdown/media comments, and export review bundles.

manage_review_notes local + hosted

Attach and read structured review notes linked to specific runs and comparisons.

get_dashboard_links local + hosted

Generate direct links to runs, flows, comparisons, and published Review Apps.

End-to-end PR verification loop.

From branch diff to live held inspection, changed-line coverage, and published Review App—keeping raw screenshots and recordings in Reflow instead of your context window.

Quickstart guide
MCP session transcript · diff to PR review reflow mcp + reflow pr review
1. get_reflow_context()
   -> collection: northstar-web · storage: git · target: http://localhost:3000

2. load_skill({ name: "test-change" })
   search_flows({ paths: ["src/team/InviteModal.tsx"] })
   -> covering flows: [seed-data, invite-member, verify-role, accept-invite]

3. manage_execution({ action: "plan" })
   -> reuse: seed-data · run: invite-member (~2.4s) · wait: verify-role, accept-invite

4. manage_execution({ action: "apply", hold: true, fingerprint: "fp_91bd04" })
   -> invite-member passed (visual delta) · verify-role HELD at step 2 (role select missing)

5. debug_execution({ action: "snapshot" })
   -> live DOM confirms role <select> omitted in InviteModal.tsx; flow & finding verified

6. query_code_coverage({ base: "main" })
   -> changed-line coverage: 84% (26/31 lines)

7. manage_review_apps({ action: "publish" })
   $ reflow pr review 184 --head 9c1e2f7 -F review.md --comments-file comments.json
   -> Review App published with <reflow-compare> slider; inline thread posted as reflow-code-review[bot]

Checks belong in the flow.

Saving a new flow checks it against the authoring rules your agent loads with the flow-authoring guide. A check hidden in a shell pipe is refused, with the rule and the fix. The agent moves the check into the flow as expect=, where a reviewer can read what passing means, and the same command saves.

Check results with expect
Saving refuses a hidden check. Put it in the flow.Recorded CLI run
$ reflow apply team-list
plan: 1 to run, 2 to reuse
started  team-list
done     team-list 0:01
process cleanup confirmed
Apply complete: 3 flows · 1 passed · 2 reused · 0:07 ·
  parallelism 1 · process cleanup confirmed
Reused: Seed data, Invite Sam

Read the full run as text · Recorded output; long pauses are shortened.

Machine-readable index.

Point any agent or documentation crawler at https://reflow.io/llms.txt or install SKILL.md directly.

Preview /llms.txt (112 lines)
# Reflow

> Test the product. Review what changed. Reflow gives your coding agent versioned product knowledge, deterministic multi-plugin flows, changed-line code coverage, and interactive Review Apps for human PR review.

## Start here

- Human quickstart: https://reflow.io/docs/getting-started
- Agent setup and documentation map: https://reflow.io/docs/agents-start-here
- Installable Reflow skill: https://reflow.io/skills/reflow/SKILL.md
- MCP reference: https://reflow.io/docs/mcp
- Connected MCP discovery: call `get_product_docs` to list/search/read bundled docs, `get_reflow_context` for active collection and storage state, and `load_skill(name="reflow")` for task-specific guidance (`test-change`, `flow-authoring`, `plugin-execution`, `knowledge-corpus`, `evidence-review`, `golden-authoring`, `review-apps`, `pr-publishing`, `flow-sweep`, `user-preferences`).

## Quick install and connect

- Public stable installer: https://reflow.io/install.sh
- Supported platforms: `darwin-arm64`, `linux-arm64`, and `linux-x64`.
- Includes Node and the seven bundled plugins: Browser, PostgreSQL, LocalBash, DockerUbuntu, Mailbox, MCP and OpenAPI Go plugins. Optional plugins (ClickHouse, TLA+, Lean 4, Bombadil) download on demand per device during `reflow init`.

```sh
curl -fsSL https://reflow.io/install.sh | sh
export PATH="$HOME/.local/share/reflow-sidecar/bin:$PATH"
reflow login
```

- Local stdio MCP: configure your coding agent to launch `reflow` with args `["mcp"]` from the application checkout using the same profile as the CLI. Reflow discovers or starts the per-checkout local device service automatically.
- Hosted HTTP MCP: https://mcp.reflow.io/mcp (OAuth browser consent) reads saved flows, runs, evidence, and knowledge remotely without executing flows.

## Core capabilities

- **Deterministic DAG execution and reuse:** Flows declare prerequisites with `needs`, source scope with `covers`, parallel variants with `matrix`, and reusable steps with `use` + cached browser `session`. `reflow plan` reports run, reuse, wait, and blocked decisions with timing estimates before touching the app. `reflow apply --parallelism 4` overlaps independent work across the same target session; `reflow taint` forces targeted reruns.
- **Zero-LLM execution + live hold-and-resume repair:** Flows run deterministically as written with no model or provider key inside the runner. On failure, `reflow apply --hold` keeps the live browser and plugins open so your coding agent can inspect DOM/ARIA snapshots, take screenshots, and run diagnostic RFL via `debug_execution`, then edit the flow and apply again without releasing the hold. The new execution continues on the held browser and plugins from the failed step while reusing passed steps and preserving the original failed attempt.
- **12+ built-in plugins + custom Go DSLs:** Combine Browser (`site.snapshot`, `site.record` motion recording), SQL (PostgreSQL and ClickHouse), LocalBash, DockerUbuntu, Mailbox, MCP inspector, OpenAPI, TLA+ (TLC model and trace checking), Lean 4 (proof checking), Bombadil (property-based browser exploration), MacOSApp, macOS VM, and Swift Testing. Author domain-specific Go providers on the Apache-2.0 RFL protocol and provider framework.
- **Git or hosted test storage:** Collections support Reflow-hosted versioned flows (default for new teams, zero repo files) and Git-stored Markdown flows under `.reflow/flows/` in one unified plan/apply graph, with explicit previewed moves between locations. Bindings, URLs, and credentials stay in private device files (`--bindings`) and never enter flow source.
- **Code coverage and golden suites:** Measure Go, Swift/LLVM, and browser JavaScript/TypeScript execution via `query_code_coverage` and `reflow coverage diff --base <commit>`. Track changed-line coverage, cumulative test gain without re-running the full suite, and per-flow golden suite attribution.
- **Versioned knowledge and agent preferences:** Maintain application rules and routes as versioned Markdown (`search_kb`, `get_kb_page`, `prepare_knowledge_refresh`). Persist user and team working conventions with `manage_preferences` and `reflow preferences set`.
- **Interactive Review Apps, evidence diffing, and inline PR review:** Build and publish sandboxed HTML/JS Review Apps via `manage_review_apps` and `upload_review_app_asset` using `<reflow-compare>` before/after sliders, `<reflow-flow>`, `<reflow-run>`, and `<reflow-file>`. Compare runs with `reflow evidence diff` and `review_changes`, and post inline pull request comments as `reflow-code-review[bot]` via `reflow pr review` or `reflow ci report --post`. Human acceptance belongs to PR merge.

## Key CLI and MCP workflows

- **Target and plan/apply:** `reflow target http://localhost:3000 --group my-app --collection <id> --bindings /abs/path/bindings.json`, then `reflow plan` and `reflow apply` (or MCP `manage_execution` passing `fingerprint` and `storage_fingerprint`). Plan and apply are the single execution path (`reflow run` invokes the same controller).
- **Hold and debug:** `reflow apply --hold` holds a failing run live; `debug_execution` inspects it without mutating recorded step outcomes; re-applying the edited flow continues from the failed step.
- **Visual checkpoints and recordings:** Snapshots are CSS-scoped captures (`ui.snapshot name="checkout" selector="..."`) and motion captures (`site.record`). Reflow stores no rigid visual baseline; your agent compares runs with `reflow evidence diff`, `reflow ci report`, or `review_changes` and explains whether each difference belongs in PR scope.
- **CI reporting:** GitHub Actions runs PR code in a read-only execution job and hands retained artifacts to a trusted publisher that updates one live Change Summary comment and links the hosted Review App and evidence report.

## Product

- [Knowledge base](https://reflow.io/product/knowledge-base): versioned application rules, source references, linked flows, and knowledge diffs.
- [Plugins](https://reflow.io/product/plugins): Browser, Bash, SQL, Mailbox, OpenAPI, MCP, DockerUbuntu, TLA+, Lean 4, Bombadil, macOS, macOS VM, and Swift commands for application flows.
- [Browser](https://reflow.io/product/plugins/browser): screen captures, `site.record` motion recordings, and visual evidence for agent review.
- [Bash](https://reflow.io/product/plugins/bash): retained command output, exit codes, and output files.
- [SQL](https://reflow.io/product/plugins/sql): PostgreSQL and ClickHouse query snapshots and row-level data comparisons.
- [OpenAPI](https://reflow.io/product/plugins/openapi): typed HTTP requests, JSON assertions, and public scalar captures from a pinned API contract.
- [Mailbox](https://reflow.io/product/plugins/mailbox): remote named inboxes, email codes, and magic links persisting until explicit reset.
- [TLA+](https://reflow.io/product/plugins/tla-plus): optional plugin for TLC model checking, counterexamples, and trace verification.

## Documentation

- [Docs index](https://reflow.io/docs): Complete Reflow documentation map.
- [Getting started](https://reflow.io/docs/getting-started): Install the CLI, connect MCP, install the skill, and run your first flow.
- [Agents start here](https://reflow.io/docs/agents-start-here): Detailed installation, sign-in, target selection, and first flow for coding agents.
- [Application collections](https://reflow.io/docs/collections): Create collections, list applications, and select a collection from MCP or CLI.
- [Test storage](https://reflow.io/docs/test-storage): Team defaults, hosted vs. Git authoring, unified plan/apply, and explicit moves.
- [Edit application knowledge](https://reflow.io/docs/knowledge-editing): Shared revisions and delta edits for application knowledge.
- [Flow format](https://reflow.io/docs/flow-format): Markdown steps, frontmatter, dependencies, matrix fan-out, inputs, and reusable sessions.
- [RFL reference](https://reflow.io/docs/reflow-language): Plugin bindings, typed values, browser statements, conditionals, and formal grammar.
- [Test accounts](https://reflow.io/docs/test-accounts): Shared generated values, reusable accounts, and explicit reset.
- [Guiding the agent](https://reflow.io/docs/guiding-the-agent): Authoring workflows, user/team preferences, and knowledge maintenance.
- [Plugin setup](https://reflow.io/docs/plugins): Private bindings, shared application locks, and the seven bundled plugins.
- [Browser plugin](https://reflow.io/docs/plugins/browser): Page actions, assertions, CSS-scoped snapshots, and `site.record` motion capture.
- [LocalBash plugin](https://reflow.io/docs/plugins/local-bash): Host commands, stdout/stderr, services, and file capture.
- [SQL: PostgreSQL and ClickHouse](https://reflow.io/docs/plugins/sql): Unified SQL query, value, and execute commands across PostgreSQL and ClickHouse.
- [PostgreSQL plugin](https://reflow.io/docs/plugins/postgresql): Bundled SQL plugin for PostgreSQL read-only queries and explicit setup writes.
- [ClickHouse plugin](https://reflow.io/docs/plugins/clickhouse): Optional SQL plugin for ClickHouse telemetry and analytics tables.
- [DockerUbuntu plugin](https://reflow.io/docs/plugins/docker-ubuntu): Commands executed inside an existing Ubuntu container.
- [Mailbox plugin](https://reflow.io/docs/plugins/mailbox): Remote named inboxes, stable addresses, and email code/link extraction.
- [MCP inspector plugin](https://reflow.io/docs/plugins/mcp): Test an MCP server’s tools, resources, prompts, and call results.
- [MCP JSON assertions and captures](https://reflow.io/docs/mcp-json): Public scalar capture, JSON comparators, redaction limits, and safe interpolation.
- [OpenAPI plugin](https://reflow.io/docs/plugins/openapi): Pinned OpenAPI specs, validated requests, JSON assertions, and scalar captures.
- [TLA+ plugin](https://reflow.io/docs/plugins/tla-plus): Optional plugin for TLC model checking and trace validation against TLA+ specs.
- [Lean plugin](https://reflow.io/docs/plugins/lean): Optional plugin for verifying Lean 4 proofs with no `sorry` and standard axioms.
- [Bombadil plugin](https://reflow.io/docs/plugins/bombadil): Optional plugin for autonomous browser property exploration against your spec.
- [MacOSApp plugin](https://reflow.io/docs/plugins/macos): Native macOS desktop application testing through Accessibility.
- [macOS VM plugin](https://reflow.io/docs/plugins/vm): Disposable macOS virtual machines with host-side screenshots and input.
- [Swift tests and coverage](https://reflow.io/docs/plugins/swift): Runs its own fixture's Swift Testing suites and LLVM coverage in a macOS virtual machine.
- [Writing plugins](https://reflow.io/docs/writing-plugins): Extend flows for an external API or custom system with the Apache-2.0 Go provider framework.
- [Target readiness](https://reflow.io/docs/target-readiness): Concurrent HTTP preflight probes and exit code 75 for unready targets.
- [Plan and apply output](https://reflow.io/docs/plan-timings): Live dependency trees, `reflow watch`, reuse rules, timing breakdowns, and OTLP tracing.
- [Matrix runs and parallel execution](https://reflow.io/docs/matrix-and-parallelism): Parameterize flows with `matrix:`, overlap independent flows with `--parallelism`, and watch live DAG execution.
- [Repair and rerun](https://reflow.io/docs/repair-and-rerun): Hold failed runs live with `--hold`, inspect via `debug_execution`, edit, and resume from the failed step.
- [Snapshots and review](https://reflow.io/docs/visual-testing): Scoped screenshots, motion recording, `reflow evidence diff`, and multi-plugin comparisons.
- [Evidence diffing](https://reflow.io/docs/evidence-diff): Compare screenshots, accessibility trees, structured checkpoints, downloads, and step timings with A/A noise filtering.
- [Review apps](https://reflow.io/docs/review-apps): Publish interactive HTML, Markdown, and static-site review pages with `<reflow-compare>`, `<reflow-flow>`, `<reflow-run>`, and `<reflow-file>`.
- [Pull request code reviews](https://reflow.io/docs/pr-review): Post PR summaries, keyed inline diff comments, and thread replies as `reflow-code-review[bot]` via `reflow pr review`.
- [Code coverage](https://reflow.io/docs/code-coverage): Measure instrumented Go, Swift/LLVM, and browser JS/TS execution with before/after deltas.
- [Grow coverage with useful tests](https://reflow.io/docs/coverage-guided-testing): Cumulative source-scoped coverage, line gaps, and checkpoints via MCP.
- [Cumulative coverage and test gain](https://reflow.io/docs/code-coverage-cumulative): Measure what a new test adds without re-running the suite.
- [Golden coverage suites](https://reflow.io/docs/code-coverage-golden): Attribute statement coverage to individual golden flows and export reproducible reports.
- [Changed-line coverage](https://reflow.io/docs/coverage-changed-lines): Compare a Git commit with coverage documents via `coverage diff --base <commit>`.
- [GitHub Actions](https://reflow.io/docs/github-action): Read-only CI execution, live Change Summary comments, and Review App links.
- [MCP reference](https://reflow.io/docs/mcp): Full local and hosted MCP tool contracts, evidence retrieval, Review Apps, and PR review.
- [API and tokens](https://reflow.io/docs/api): HTTP API (`https://app.reflow.io/v1`), PAT scopes, and automation endpoints.
- [Pricing](https://reflow.io/pricing): Simple screenshot-based usage plans with unlimited users.
- [Capabilities](https://reflow.io/features): End-to-end verification and PR review capabilities.
- [For agents](https://reflow.io/agents): Machine-first MCP setup, tool catalog, and end-to-end transcript.

## Pricing and access

- Customer app: https://app.reflow.io (closed beta; sign in to register team interest).
- Free plan: 1,000 screenshots/month for $0 with unlimited users.
- Paid plan: 10,000 screenshots/month for $200 USD with unlimited users.
- Non-browser steps (SQL, Bash, OpenAPI, MCP, Docker, TLA+, Lean 4, code coverage) do not count toward screenshot allowance.