Find test gaps, generate grounded tests, and dynamically prove behavior with mutation testing.
Runs on your machine from its package; the steps are below.

At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @orangepro/mcp-server
MCP client config
{
"mcpServers": {
"orangepro": {
"command": "npx",
"args": [
"-y",
"@orangepro/mcp-server"
]
}
}
}
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. Model calls happen only if you add your own key, for optional test generation and suggestions.
npx -y @orangepro/mcp-server@latest start .
Every run writes two reports and a spreadsheet of tests to .orangepro/:
| File | For | What's in it |
|---|---|---|
short_behavior-coverage.html | Leads, managers, anyone in a hurry | One 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.html | Developers | Worklist: 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.csv | QA, test managers | One 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 means | What to do | |
|---|---|---|
| Done | A test fails when this code breaks. | Nothing. It moves back to Prove if the code changes. |
| Prove | A test runs it, or a coverage run executes it, but no test is proven to catch a break. | Run the proof command. |
| Check | A 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. |
| Write | No test catches a break here yet. | Write a test (two are drafted for the top 20), then prove it. |
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.
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.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
Analysis, ranking and proof need no model key. Test generation is optional and uses your own key (see Model setup).
Tips for the most accurate run:
rank_exclude_paths (see Configuration).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 (only with a model key); your files are never edited
Every function gets exactly one evidence label. The four things to do above are read from it.
| Evidence | What it means | To do |
|---|---|---|
| Proven | A test passed on the original code and failed at its own assertion when this function was broken in an isolated copy. | Done |
| Runs under tests | A coverage tool you ran executed this code. | Prove |
| Linked | A test calls this exact function. That's a structural link, not proof. | Prove |
| Unconfirmed | A 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 found | Nothing 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.
What OrangePro doesn't count, so linked numbers are a floor, not a coverage percentage:
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.
Each unproven function gets an OrangePro Risk Score, ORS = P × I × D:
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.
# 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;'
Find weak tests without a model key:
opro roast . # passing tests whose targeted mutant still survives
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"]
}
}
}
| Client | Where to put it |
|---|---|
| Claude Code | .mcp.json or ~/.claude.json |
| Cursor | ~/.cursor/mcp.json or Settings → MCP |
| VS Code / Copilot | MCP settings |
| Codex / OpenCode / Windsurf | npx -y @orangepro/mcp-server@latest agent --client codex prints the setup |
A prompt that runs the whole loop:
"Use
orangepro_start, thenorangepro_find_test_gaps. For the top gap, write a test at the suggested path, run it, then callorangepro_prove_loopand tell me whether it was proven."
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.suppress, pin, reclassify) each require a reason, and the report lists them.| Language | Map functions | Link tests that call them | Draft tests | Mutation 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 only | not yet | not yet |
.venv or venv, then uv or poetry when their lock files are present, else python -m pytest. Set proof.python_runner to use your own command.npm ci, uv sync, go mod download, mvn -q install, …). Proof runs your own tests in an isolated copy and needs them to pass there..gitignore or .orangeproignore (negations with ! aren't supported), the usual build and dependency folders (node_modules, vendor, dist, build, target, coverage, .venv, …), files over 1 MB, and generated code (files marked Code generated … DO NOT EDIT). Up to 100,000 files; ORANGEPRO_MAX_FILES lowers that and ORANGEPRO_MAX_ANALYZE_MS sets a time limit for the scan.start options, whether a model key is set, and the analysis version. A run whose test drafting failed on a provider error (out of credits, rate limit) runs again in full..env.provider.local, .env.local or .env file in the repository, and OrangePro never writes them anywhere. opro setup saves only the provider and model name.tests.csv include the tests your model drafted, and the prompts include the function names, files and evidence they're based on.Reports include a Give feedback link and a This looks wrong link on each finding. Once in a while, after the findings, they also ask whether the report helped.
opro feedback # print the link and your settings
opro feedback off # stop the "Did this help?" question (links stay)
ORANGEPRO_FEEDBACK_URL=off # hide every feedback link
The question appears at most once every 14 days (ORANGEPRO_FEEDBACK_COOLDOWN_DAYS). That preference is stored only on your machine. MCP clients get the link as optional result metadata (_meta["ai.orangepro/feedback_url"]), and your agent is never asked to prompt you for feedback.
opro # same as opro start .
opro start . --no-ai --no-auto # analyze + reports, no model calls, no proof attempts
opro start . --fresh # run in full even when nothing changed since the last run
opro start --base main # scope to a branch diff
opro analyze # build the evidence graph and reports
opro gaps --limit 10 # top unproven behaviors, ranked
opro prove-loop ... # mutation proof for one function (see above)
opro roast . # find tests whose mutant survives (no key needed)
opro doctor --proof # why top targets aren't proven yet
opro generate --base main # tests for what this branch changed (needs a model key)
opro rtm # traceability matrix
opro export # metadata-only evidence pack
opro coverage # find or generate runtime coverage artifacts
opro feedback [on|off] # feedback link and invitation setting
opro mcp # run as an MCP server (stdio)
Add --json to any read command for machine output. Run opro help for every flag.
| Tool | What it does |
|---|---|
orangepro_start | Analyze, write both reports and tests.csv, return next actions; returns at once with unchanged_since when nothing changed (fresh forces a full run) |
orangepro_analyze_sources | Build or refresh the evidence graph |
orangepro_find_test_gaps | Unproven behaviors ranked by ORS |
orangepro_prove_loop | Setup + mutation proof + report refresh for one behavior |
orangepro_prove | Mutation proof only |
orangepro_generate_tests | Grounded tests for gaps (model key required) |
orangepro_changed_impact | What a diff touches |
orangepro_status | Workspace state without running anything |
orangepro_doctor | What evidence to add next |
orangepro_graph_score | Graph readiness (0–100) |
orangepro_rtm | Traceability matrix |
orangepro_stats | Aggregate statistics |
orangepro_record_run | Record a test run result |
orangepro_explain_test | Why a test was generated |
orangepro_export_evidence_pack | Metadata-only evidence pack |
orangepro_update_graph | Incremental graph update |
orangepro_ai_links | Weak behavior→code suggestions (optional AI, never evidence) |
orangepro_ai_flows | Candidate flows (optional AI, never evidence) |
Run your own unit and integration coverage first, then opro start. OrangePro ingests Go coverprofiles, lcov, coverage.py XML and JaCoCo XML, and keeps unit, integration and unclassified coverage separate. To label artifacts, add .orangepro/coverage-suites.json:
{
"artifacts": {
".orangepro/coverage/unit.coverprofile": { "suite": "unit", "command": "make unit-test-coverage" },
".orangepro/coverage/integration.coverprofile": { "suite": "integration", "command": "make integration-test-coverage" }
}
}
| Provider | Environment variable |
|---|---|
| OpenAI-compatible | OPENAI_API_KEY (optional: OPENAI_BASE_URL, OPENAI_MODEL) |
| Anthropic | ANTHROPIC_API_KEY (optional: ANTHROPIC_MODEL) |
| Ollama (local, no key) | OLLAMA_BASE_URL (optional: OLLAMA_MODEL) |
Auto-detect order: OpenAI → Ollama → Anthropic. Override with --provider and --model, or run opro setup.
orangepro_generated/ with the files and existing tests they're grounded on, and where and how to run them.One row per test, UTF-8. The first 12 columns are for import; the rest keep the priority, evidence and proof command with each test. Priority is High for the five highest-ranked functions and Medium for the rest.
Column in tests.csv | TestRail | Jira Xray | Zephyr Scale |
|---|---|---|---|
| ID | Test Case Identifier | (leave Key empty) | |
| Title | Title | Summary | Name |
Section (a > b) | Sections Hierarchy | ||
Folder (a/b) | Test Repository Path | Folder | |
| Priority | Priority | Priority | Priority (map Medium to Normal) |
| Test type | Type | Labels | Labels |
| Preconditions | Preconditions | (separate issues in Xray; add to Description if you want them) | Precondition |
| Steps | Manual Test Step: Action | ||
| Test data | Manual Test Step: Data | ||
| Steps with data | Steps | Test Script (Steps) - Step | |
| Expected result | Expected Result | Manual Test Step: Expected Result | Test Script (Steps) - Expected Result |
| References | References | Description | Objective |
opro generate --base main # tests for what this branch changed (read-only git diff)
opro generate --changed # current branch vs its base
opro generate --pr 1234 # checks out PR #1234 (asks first; refuses on a dirty tree)
This repository is the free local tool. The OrangePro platform adds:
git clone https://github.com/OrangeproAI/orangepro-mcp.git
cd orangepro-mcp && npm ci && npm run build
npm test
PRs welcome. Please open an issue first for large changes.
MIT License · orangepro.ai