# OrangePro [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/OrangeproAI/orangepro-mcp  
**GitHub Stars:** 20  
**npm Downloads (last month):** 2399  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/orangepro

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

## Tools
Capabilities this server exposes over MCP:

- **orangepro_start** — One-command local setup for a repo or PR: analyze sources, auto-apply weak AI candidate links and candidate flows when a real BYOK provider is configured, write behavior-coverage.html (detailed report), short_behavior-coverage.html (summary), tests.csv + rtm.md, summarize changed/gap targets, and return agent next actions. When nothing changed since the last run it returns at once with unchanged_since and reuses the reports (fresh=true forces a full run). AI lanes stay separate and never affect Proven coverage.
- **orangepro_analyze_sources** — Build or refresh the local OrangePro evidence graph from a local checkout/path plus optional CSV/Markdown enrichers. Metadata-only by default — reads source in-process but never stores or uploads code. Optionally stages/applies AI candidate flows and refreshes the report when ai_flows=true.
- **orangepro_graph_score** — Return the local graph readiness score (0-100), band, per-dimension breakdown, and plain-language missing evidence. Readiness signal, not a proof of test lift.
- **orangepro_status** — Show local workspace state without generating anything: whether the graph is fresh/stale/missing, source mix, score, and privacy settings (always local, no upload).
- **orangepro_doctor** — Recommend the smallest next source that would most improve generated-test quality, with expected score impact. Teaches what data improves output.
- **orangepro_find_test_gaps** — List requirements/flows with weak or missing test evidence, plus top_risk_gaps for unproven code symbols ranked by the OrangePro Risk Score (Probability × Impact × DetectionDifficulty). Risk is prioritization only; it never changes coverage/proof status.
- **orangepro_record_run** — Record an agent test-writing attempt as static diagnostics. When test_path is provided for TS/JS, OrangePro first tries scoped deterministic re-prove; otherwise it re-analyzes the repo. Static hard COVERS edges render as Linked; public Proven requires orangepro_prove.
- **orangepro_prove** — Run the dynamic targeted-proof oracle for a CodeSymbol and append a metadata-only ledger certificate. Public Proven closes only when baseline green plus a valid sentinel mutation of the credited symbol fails the same test at an assertion. Static record_run is diagnostics only.
- **orangepro_prove_loop** — Product wrapper around orangepro_prove: run trusted-local setup_commands in the source checkout, then the UNCHANGED dynamic targeted-proof oracle, then refresh the behavior report. Setup is non-secret repo prep only (build/install/shim); a setup failure returns unrunnable, does not run the oracle, and leaves the ledger untouched (never Proven). Public Proven still closes only through the unchanged certificate.
- **orangepro_stats** — Summarize the local gap-fill ledger: attempted, dynamic-reproven, unproven, legacy static-associated, generated-but-unverifiable, and kept rate. Metadata-only.
- **orangepro_rtm** — Write and return a deterministic Requirements Traceability Matrix. Status comes only from the local graph and gap-fill ledger: Proven, Runs under tests, Linked, Unconfirmed, No test found, Reproven, or Generated-unverifiable. No LLM calls.
- **orangepro_update_graph** — Refresh the local graph from changed files. Incremental and non-destructive by default — preserves evidence and marks affected generated tests stale.
- **orangepro_changed_impact** — DIFF/PR TOOL — only for real code-review situations. Summarizes what changed vs a base git ref and which local graph behaviors/tests are affected (basic changed-file impact; no deep route/API shape analysis). Requires a git repo and a real diff: returns status 'no_diff' / 'no_code_changes' (diff was docs-only) / 'missing_base_ref' / 'not_a_git_repo' with guidance instead of fabricated impact when there is nothing to analyze. For baseline (no-PR) test opportunities use orangepro_find_test_gaps.
- **orangepro_ai_links** — Opt-in AI lane: propose weak MAY_RELATE_TO candidate links between existing deterministic behavior and CodeSymbol nodes. Generate writes .orangepro/ai/links.json only; apply=true explicitly merges survivors into candidate_edges. These links never affect proven coverage.
- **orangepro_ai_flows** — Opt-in AI lane: propose candidate behavior-flow chains over existing deterministic entry and CodeSymbol ids. Generate writes .orangepro/flows.json only; apply=true stores survivors under analysis.candidate_flows. Candidate flows are a verify-these worklist and never affect Proven, deterministic flow counts, tiers, or coverage.
- **orangepro_generate_tests** — Generate a small capped set (1-5) of grounded tests from local evidence using your own model key (BYOK: OpenAI-compatible, Ollama, or Anthropic). Tests are diversified across lightweight LOCAL scenario buckets (happy_path, validation_error, edge_case, integration_flow, security_privacy, regression) chosen from the evidence — unjustified buckets are skipped, never padded. By default it focuses the top-gap behavior and returns up to `limit` bucket-diverse tests for it; pass multiple target_ids to split the budget across them. Each test reports its bucket plus VALIDATED grounding `evidence` (every cited entity resolved against the local graph with its kind, evidence strength, and source_ref) and discloses weak/candidate evidence; `evidence_summary` reports proof coverage and any broken citations, so the grounding is verifiable rather than asserted. If evidence is too thin, returns missing-evidence guidance instead of generic tests. Returns each test's code plus `run_hints` (a suggested file path + run command) and an `agent_workflow`: YOU (the agent) write each file and run it with your shell tools, then report pass/fail + stack traces — OrangePro never writes to or runs anything in the repo. Requires the repo's test framework/deps to already be installed.
- **orangepro_explain_test** — Explain why a generated test exists: which graph evidence anchors support it, source refs, and whether weak/candidate evidence was used. Exposes trust artifacts only, not internal generation logic.
- **orangepro_export_evidence_pack** — Export a portable evidence pack (JSON) plus a human-readable Markdown summary for review or later hosted promotion. Includes facts, provenance, generated outputs, and high-level score metadata — never prompts, weights, traces, or raw source. Validates against the local schema.
- **orangepro_install_github_action** — Preview, by default, the opt-in post-merge workflow (.github/workflows/orangepro-proof.yml: contents: read, no secrets, pinned actions) and the .orangepro/actions/ folder it reads (the profile: target, oracle, fault, selected tests, the test to replay). Writes nothing unless dry_run is false and confirm is "install" (or "uninstall" with uninstall: true). Never commits, pushes, creates secrets, grants permissions or opens pull requests; a file changed since OrangePro wrote it is reported as a conflict and never overwritten or removed. Tested locally; a real Actions run is separate.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "orangepro": {
    "command": "npx",
    "args": ["-y","@orangepro/mcp-server","mcp"]
  }
}
```

## Documentation

## What OrangePro MCP server does

OrangePro builds an evidence graph for a repository's public functions and the tests associated with them. It distinguishes between code that is proven by a failing mutation, code that is exercised but not proven, code that appears connected through a test file or name, and code with no useful test evidence. These states become a ranked worklist for deciding what to write or verify next.

The server produces HTML reports under `.orangepro/`, including a short priority summary and a detailed developer worklist. It also writes `tests.csv` with test slots, preconditions, steps, data, expected results, priorities, and suggested folders. The reports include evidence, rankings, drafted tests when available, proof commands, run details, and fingerprints for comparing results across runs.

## How it works

Analysis traces which tests call which functions and uses repository evidence to rank weak or missing coverage. Ranking can account for consequences such as paths leading to deletion or purge, as well as change frequency, caller count, and scheduled execution. Similar test names and mock-only checks are treated as leads rather than proof of behavior.

For mutation proof, OrangePro changes a target function in an isolated copy, runs the relevant test unchanged, and checks whether the test fails. A test is considered proven when it passes against the original code and fails against the deliberate break. Proof results and test-only patches can be reviewed in the generated reports.

The MCP interface supports a complete workflow: start with setup and reporting, inspect gaps, generate or explain tests, prove behavior, refresh the graph, and export evidence. Optional AI tools can suggest weak behavior-to-symbol links and candidate flows.

## Setup and configuration

Run the server against a repository with:

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

The MCP tools can then drive analysis and reporting from a compatible coding agent. OrangePro operates locally and sends nothing to OrangePro. Mapping, gap ranking, and mutation proof do not require a model key. Generating a test with real assertions requires a model provider; selecting `provider: deterministic` without a key produces placeholders instead of complete assertions.

## Tools and capabilities

- `orangepro_start` performs setup, analysis, reporting, and next-action generation.
- `orangepro_analyze_sources` builds or refreshes the evidence graph.
- `orangepro_find_test_gaps` ranks behaviors with weak or missing tests.
- `orangepro_generate_tests` drafts tests for identified gaps.
- `orangepro_prove` runs mutation-based proof for a behavior.
- `orangepro_prove_loop` combines setup, proof, and report refresh for one behavior.
- `orangepro_graph_score` reports graph readiness on a 0–100 scale.
- `orangepro_status`, `orangepro_doctor`, `orangepro_stats`, and `orangepro_rtm` provide workspace state, evidence recommendations, aggregate statistics, and a requirements traceability matrix.
- `orangepro_changed_impact` shows what a Git diff affects and requires Git plus a base reference.
- `orangepro_record_run` records a test-run result, while `orangepro_explain_test` explains why a test was generated.
- `orangepro_export_evidence_pack` exports metadata-only evidence, and `orangepro_update_graph` performs an incremental graph update.
- `orangepro_ai_links` and `orangepro_ai_flows` provide optional AI-assisted relationship and flow suggestions.

## Limitations and notes

OrangePro is focused on testing and behavioral evidence, not general pull-request review. Test generation depends on a model provider for real assertions. Without one, deterministic generation returns placeholders. The changed-impact workflow depends on Git and a base reference, and optional AI suggestions are separate from the model-free analysis, ranking, and proof workflow.

_Full upstream README: https://allmcps.com/mcp/orangepro/readme_

