Search DevTools

Jump to any tool or page

OrangePro

Unexplored

Find test gaps, generate grounded tests, and dynamically prove behavior with mutation testing.

OrangeproAI18 stars1 forksAI & Agents
View source

Install

Terminal

$npx -y @orangepro/mcp-server mcp

mcp_config.json

{
  "mcpServers": {
    "ai-orangepro-mcp": {
      "env": {
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "OLLAMA_BASE_URL": "${OLLAMA_BASE_URL}",
        "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}"
      },
      "args": [
        "-y",
        "@orangepro/mcp-server",
        "mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

See which code your tests really protect. Prove it by breaking the code on purpose.


OrangePro maps every public function in your repository, links each one to the tests that actually call it, and ranks what's left by what it can break. For a test you care about, it breaks the function in an isolated copy and checks that the test fails. It runs on your machine, uses no AI model for scoring, and sends nothing to OrangePro. Mapping, gap ranking and proof work with no model key. Drafting a test with real assertions needs a model provider; with no key, provider: deterministic returns placeholders only (see Model setup under Reference).

npx -y @orangepro/mcp-server@latest start .

Contents


What you get

Every run writes two reports and a spreadsheet of tests to .orangepro/:

FileForWhat's in it
short_behavior-coverage.htmlLeads, managers, anyone in a hurryOne page: what to do with the 20 highest-priority functions, the top five with the reason and the tests drafted for each, what changed since the last report, and how to reproduce the run.
behavior-coverage.htmlDevelopersWorklist: every ranked function with what to do, filters, and a side panel with the evidence, why it ranks, two drafted tests and the proof command. Map: where tests reach, by area. Run details: inputs, counts, proofs, fingerprints and settings.
tests.csvQA, test managersOne row per test slot (preconditions, steps, test data, expected result, priority, folder), ready for Excel, Google Sheets, TestRail, Jira Xray or Zephyr Scale. Export tests (CSV) in the detailed report downloads it, and its Run details show how the columns map (Importing tests.csv).

Every function gets one of four things to do:

What it meansWhat to do
DoneA test fails when this code breaks.Nothing. It moves back to Prove if the code changes.
ProveA test runs it, or a coverage run executes it, but no test is proven to catch a break.Run the proof command.
CheckA test file or test name points here, but no call was traced.Read that test file first; prove it if it drives the function, otherwise write one.
WriteNo test catches a break here yet.Write a test (two are drafted for the top 20), then prove it.

The one-page summary

The detailed report

Both from OrangePro run on its own repository at commit 64a5213, without a model key, so no tests were drafted. With a key, each of the top 20 shows two drafted tests, and the side panel shows their steps and code.


Why developers use it

  • It tells you what a test actually checks, not just what it runs. A test that calls a function isn't necessarily checking it. opro prove replaces the function body with a fixed return value in an isolated copy and reruns your own test, unchanged. If the test still passes, it wasn't protecting that function.
  • It puts consequences first. One filter shows the code paths that reach a delete or purge (cache evictions don't count); others show code that changes often, has many callers or runs on a schedule.
  • It's honest about evidence. A function is "linked" only when a test calls that exact function. A test with a similar name is a lead, never coverage. Tests that only check mocks don't count.
  • It's repeatable. Same commit, full git history, same config and same version give the same ranking. Each report records fingerprints, so you can tell when a change in results came from the code and when it came from the tool.
  • Your coding agent can drive it. As an MCP server it gives Claude Code, Cursor, Copilot, Codex and others the ranked gaps, the suggested test location and the proof step in one loop.
  • It's free, local and open source (MIT). No account, no API key for analysis, and no upload.

Why OrangePro is better than Qodo and CodeRabbit

OrangePro is the better choice for testing and verifying AI-written code.

Qodo and CodeRabbit review pull requests. That is useful, and it is not the same job as proving that your tests would actually catch a break. OrangePro is built for that proof.

Why OrangePro wins

  • Independent verification. The tool that wrote the code should not grade that code. OrangePro checks the change after the fact, on your tests and your repository.
  • Mutation proof. A test counts only if it passes on the original code and fails when that behavior is broken on purpose. You get a receipt, and a test-only patch to review.
  • Risk ranking from real code. It maps the functions in your repo, links them to the tests that actually call them, and ranks the unproven ones by risk. You start where a break would hurt most.
  • Free, local, and MIT licensed. It runs on your machine, including as an MCP server, with no OrangePro account, and your code stays on your machine. Mapping, ranking and proof need no model key.
  • Qodo no longer offers a PR test command. Qodo's legacy PR test command was deprecated on 1 Sep 2026 with "No direct replacement," and was scheduled for removal on 1 Oct 2026. Its current public pages focus on review and governance. If you came to Qodo to generate or prove tests, OrangePro is the stronger fit today.
OrangeProQodoCodeRabbit
Built forTesting and verifying AI-written code, with proof that your tests would catch a break.AI code review and governance for engineering teams shipping at agent speed.AI code review, with optional unit test generation and application-level QA.
How it proves a testMutation proof on the functions that matter most. A test counts only with a pass on the original and a fail on a broken copy.Review comments, coding standards and rules, PR triage, and governance across repositories.Review comments, summaries, suggested fixes, and pre-merge checks. CodeRabbit Verify generates user journeys and runs them against the application.
TestsRanks real test gaps, then proves or drafts tests. Optional drafting uses your own model key.The current product pages focus on review and governance. The legacy PR test command was deprecated on 1 Sep 2026 with "No direct replacement," and was scheduled for removal on 1 Oct 2026. The open-source Qodo Cover repository is still public.@coderabbitai generate unit tests on the Team plan, and on Essentials for public repositories. CodeRabbit's docs mark this as Open Beta. Generated tests are not a receipt that your existing suite would catch a break.
When it runsAfter merge, before release, on the combined code you are about to ship.On pull requests, and in the agent loop, before merge.On pull requests, and also in the IDE and CLI, before merge.
How you run itFree, MIT licensed, on your machine, including as an MCP server: npx -y @orangepro/mcp-server@latest start .A hosted platform. Local review now goes through the Qodo Agentic Toolbox with a coding agent. The IDE plugin was retired on 30 Oct 2026. Qodo pull request review was not affected.A hosted service. Reviews of public repositories are free.

Longer write-ups, with the same sources: Qodo alternatives and CodeRabbit alternatives. The product site is orangepro.ai.

Sources

Checked 22 Nov 2026, 3:02 AM PT, against each tool's public pages.


Quick start

cd /path/to/your/repo
# install the repo's own dependencies first (npm ci, uv sync, go mod download, ...)
npx -y @orangepro/mcp-server@latest start .
open .orangepro/short_behavior-coverage.html

Mapping, gap ranking and proof work with no model key. Drafting a test with real assertions needs a model provider (see Model setup); deterministic mode returns placeholders only.

Tips for the most accurate run:

  • Use a full clone, not a shallow one. Change history drives part of the ranking, and the report says when history was partial.
  • Exclude what isn't product code with rank_exclude_paths (see Configuration).
  • Rerun after a change. Each report says what changed since the last one. When nothing changed (same commit, files, settings, coverage and proofs), start reuses the last reports at once and says so; --fresh runs in full anyway.

What's written:

.orangepro/
├── short_behavior-coverage.html   ← one-page summary
├── behavior-coverage.html         ← detailed report: worklist, map, run details
├── tests.csv                      ← drafted tests, one row per test
├── report-data.json               ← the data both reports show (used to compare and reuse runs)
├── run-key.json, last-start.json  ← what the last run saw, so an unchanged repo is not analysed again
├── graph.json                     ← the evidence graph (deterministic)
├── ledger.json                    ← proof certificates
├── rtm.md                         ← traceability matrix
└── config.json                    ← optional per-repo settings

orangepro_generated/               ← generated tests (real assertions need a model provider; deterministic mode returns placeholders only); your files are never edited

Evidence tiers

Every function gets exactly one evidence label. The four things to do above are read from it.

EvidenceWhat it meansTo do
ProvenA test passed on the original code and failed at its own assertion when this function was broken in an isolated copy.Done
Runs under testsA coverage tool you ran executed this code.Prove
LinkedA test calls this exact function. That's a structural link, not proof.Prove
UnconfirmedA test file or a test with a similar name points here, but no call was traced. That's a lead, not evidence.Check
No test foundNothing links a test to it.Write

A proof that ran and did not catch the break turns the function into Write; a proof made before the code changed turns it back into Prove.

After opro export-tests, a function can also show a patch status: Verified test patch (not merged) means a new test, in orangepro-tests.patch, catches a fault the existing tests missed. It is not an evidence tier. The row keeps its label and what to do until the merged test is proven.

A successful orangepro_prove sets the oracle field proven to true and writes the ledger status reproven. That status is used the first time too. The report's Proven count is how many behaviors still match one of those certificates. The traceability row says Reproven (this run). That label does not mean the function was proved earlier.

What OrangePro doesn't count, so linked numbers are a floor, not a coverage percentage:

  • tests that only assert on mocks;
  • calls made over HTTP or from end-to-end suites, apart from one case: a supertest request to an Express app the test imports is linked to the function its route runs (below);
  • in Python, objects that reach a test only through a fixture;
  • in JavaScript and TypeScript, calls on an object a test gets from a fixture (for example Playwright's test.extend), and calls to an inherited method, which are not linked to the class that defines it.

Check the tests before writing new ones for a flagged path.

"Proven 0" is normal on a first run. Proof runs your tests, so it happens only for the functions you choose, or within the attempt budget of opro start.


How the ranking works

Each unproven function gets an OrangePro Risk Score, ORS = P × I × D:

  • P: how likely it is to change. Change history, fan-out, new code and size.
  • I: what it can break. Incoming references, entry-point position, data sensitivity, and a floor for paths that reach a delete or purge within two calls.
  • D: how hard a break would be to notice. Evidence tier (a linked test or a coverage run makes a break easier to notice than a name match or nothing), and whether it runs unattended (jobs and schedulers).

The score sets the order of work. It is not a defect probability. The weights are fixed and no AI model is involved. The report shows the inputs behind every row.


Prove a test

# Python: the mutation value is derived from the function (return annotation or its observed result)
opro prove-loop --target-symbol 'sym:app/billing/invoices.py#void_invoice' \
  --test 'tests/test_invoices.py::test_void_marks_invoice_void' --replacement sentinel

# TypeScript / JavaScript: give the inert body to substitute
opro prove-loop --target-symbol 'sym:src/orders.service.ts#OrdersService.cancel' \
  --test src/orders.service.spec.ts --replacement 'return null;'
  • Proven: the test passes on the original code and fails at its own assertion on the broken copy. The oracle then says proven: true. The ledger stores that attempt as reproven, including the first time, and the traceability row says Reproven (this run).
  • Not proven: the test still passes on the broken copy, so it doesn't protect that function. That's a finding too.
  • Unrunnable: setup failed. This is never counted either way.

Arguments for orangepro_prove

For a JavaScript or TypeScript function the call needs:

  • target_symbol: sym:<file>#<Symbol>. A bare name is refused.
  • test_path: the test file, relative to the repo.
  • replacement: empty, or a single return of a literal, such as return null;. A throw, a call, or any other statement is refused.
  • replacement_mode: return-json for a normal function (the default). promise-json when the function is async, so the literal is returned as a resolved promise.
  • runner: jest, vitest, mocha, or auto. Use the runner the repo uses.

Worked example for an async run in index.js, tested with Jest:

{
  "target_symbol": "sym:index.js#run",
  "test_path": "index.test.js",
  "replacement": "return null;",
  "replacement_mode": "promise-json",
  "runner": "jest"
}

Go and Java do not take replacement. They take test_run (^TestName$ for Go, TestClass#testMethod for Java).

Find weak tests without a model key:

opro roast .   # passing tests whose targeted mutant still survives

Use with your coding agent

OrangePro runs as an MCP server. Add it to your client's config:

{
  "mcpServers": {
    "orangepro-local": {
      "command": "npx",
      "args": ["-y", "@orangepro/mcp-server@latest", "mcp"]
    }
  }
}
ClientWhere to put it
Claude Code.mcp.json or ~/.claude.json
Cursor~/.cursor/mcp.json or Settings → MCP
VS Code / CopilotMCP settings
Codex / OpenCode / Windsurfnpx -y @orangepro/mcp-server@latest agent --client codex prints the setup

A prompt that runs the whole loop:

"Use orangepro_start, then orangepro_find_test_gaps. For the top gap, write a test at the suggested path, run it, then call orangepro_prove_loop and tell me whether it was proven."


Configuration

Optional. Put it in .orangepro/config.json in the repository, or in ~/.orangepro/config.json for defaults across repositories. Every setting that changes the ranking is shown in the report.

{
  "classification": {
    "rank_exclude_paths": ["ui/**", "docs/**", "scripts/**"],
    "test_support_paths": ["internal/testutil/**"],
    "destructive_sinks": ["archive*"]
  },
  "tuning": { "churn_window_days": 180 },
  "proof": { "python_runner": "auto", "attempt_limit": 20 },
  "overrides": [
    { "symbol": "sym:src/legacy/shim.ts#shim", "action": "suppress", "reason": "generated shim, not product code" }
  ]
}
  • rank_exclude_paths removes paths from the ranking. They are still counted as behaviors.
  • destructive_sinks adds delete-like calls for your codebase.
  • Overrides (suppress, pin, reclassify) each require a reason, and the report lists them.
  • Weights and tiers can't be configured.

Language support

LanguageMap functionsLink tests that call themDraft testsMutation proof
TypeScript / JavaScript✓✓✓ Jest, Vitest, Mocha✓ Jest, Vitest, Mocha
Python✓✓✓ pytest✓ pytest
Go✓✓✓ *_test.go✓ go test
Java✓✓✓ JUnit 4 and 5✓ Maven with JUnit 5 only
Kotlin, Rust, PHP, C#, Ruby, Swift, C, C++✓name match onlynot yetnot yet
  • **"Name match

Sourced from the repository README.

More in AI & Agents