Search DevTools

Jump to any tool or page

OrangePro

Unexplored

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

OrangeproAI17 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

Find the behaviors your tests miss. Generate grounded tests that actually run.


OrangePro maps every public behavior in your codebase, scores each one by real test evidence, and shows you the structural blind spots before your users find them. Runs locally. Your code never leaves your machine.

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

Table of Contents


What you get

One command produces an interactive HTML report:

npx -y @orangepro/mcp-server@latest start .
open .orangepro/behavior-coverage.html

The report has two modes: Simple (integration-level blind spots, plain English) and Expert (full behavior list, evidence tiers, flows, system map). Toggle with the pill switch at the top.

โ†’ Live example: Twenty CRM (5,237 behaviors mapped)

System map โ€” entry lanes (GraphQL, HTTP, Jobs) flowing into services, sized by traffic, colored by evidence tier, red-ringed by risk.

Priority gaps of another open source Project HONO โ€” top 20 unproven behaviors ranked by blast radius, with generated test drafts.


Evidence tiers

Every behavior gets exactly one tier. Nothing is labeled "tested" on faith.

TierColorWhat it means
Dynamically Proven๐ŸŸขA real test kills a targeted mutation of this behavior
Runtime-covered๐ŸŸขCoverage tool executed this code
Statically Linked๐ŸŸกA test imports and calls this code โ€” structural link, not proof
Unconfirmed CandidateโšชA similar test file exists โ€” a lead, not evidence
No Signal๐Ÿ”ดNothing tests this behavior

"Dynamically Proven 0" is normal on first run. Proof requires running tests against targeted mutations. That's the trust model.


Quick start

cd /path/to/your/repo
npm install          # install the repo's own dependencies first

npx -y @orangepro/mcp-server@latest start .
open .orangepro/behavior-coverage.html

No API key needed. The report shows your system map, evidence tiers, priority gaps, and delta since last run.

Want test generation? Add a model key (BYOK):

export ANTHROPIC_API_KEY="..."   # or OPENAI_API_KEY / OLLAMA_BASE_URL
npx -y @orangepro/mcp-server@latest start .

AI output never changes evidence tiers. Only the mutation-kill oracle can mint Dynamically Proven.

Output:

.orangepro/
โ”œโ”€โ”€ behavior-coverage.html   โ† open this
โ”œโ”€โ”€ graph.json               โ† deterministic evidence graph
โ”œโ”€โ”€ COVERAGE_REPORT.md       โ† coverage and gap summary
โ””โ”€โ”€ ai/                      โ† candidate flows (when a key is configured)

orangepro_generated/         โ† generated tests; your source files are never touched

Each rerun shows a delta banner: what entered the codebase, what moved up in risk, what got resolved.


Use with your coding agent

OrangePro runs as an MCP server. Add 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 / OpenCodeRun npx -y @orangepro/mcp-server@latest agent --client codex

The workflow: Tell your agent:

"Use orangepro_start, then orangepro_generate_tests with base_ref=main. Write each test to its suggested_path, run it, and report pass/fail."

The agent writes the test, runs it, calls orangepro_prove, and the behavior turns Dynamically Proven. One prompt, full loop.


Works with

Claude Code ยท Cursor ยท GitHub Copilot ยท Codex ยท Windsurf ยท OpenCode ยท VS Code

Any MCP-compatible agent can drive OrangePro. No vendor lock-in.


How it works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Your Code  โ”‚ โ”€โ”€โ–บ โ”‚  Knowledge   โ”‚ โ”€โ”€โ–บ โ”‚  Evidence   โ”‚
โ”‚  (any lang) โ”‚     โ”‚    Graph     โ”‚     โ”‚   Tiers     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ–ผ             โ–ผ
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ”‚ Gap Reportโ”‚  โ”‚ Generate โ”‚
             โ”‚ + Risks   โ”‚  โ”‚  Tests   โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
PhaseWhat happensNeeds a model key?
AnalyzeAST walk โ†’ behaviors, flows, evidence tiersNo
ScoreGraph readiness score (0โ€“100)No
GenerateGrounded tests for top gapsYes (BYOK)
ProveMutation-kill oracle confirms test breaks if behavior changesNo

Same code = same score. Deterministic. Always.


Language support

LanguageStatic mappingGenerated testsDynamic proof
TypeScript / JavaScriptโœ“โœ“ Jest / Vitest / Mochaโœ“
Pythonโœ“โœ“ pytestโœ“
Goโœ“โœ“ *_test.goโœ“
Javaโœ“โœ“ JUnit 4/5โœ“
Kotlin, Rust, PHP, C#, Ruby, Swift, C, C++โœ“plannedplanned

Static mapping works across many languages via tree-sitter. Dynamic proof is deliberately narrower โ€” each language needs a runner, mutation locator, and sandbox profile.


Privacy

  • No stored source. Reads code in-process. Never uploads to an OrangePro server.
  • No existing-source mutation. Never edits your source or test files.
  • Your keys stay yours. Read from env at call time, never persisted.
  • BYOK is direct. Code context goes to the model provider you configure. OrangePro is not in that path.

CLI reference

opro                          # analyze + report + agent next actions
opro start --base main        # same, scoped to a branch diff
opro analyze                  # build the evidence graph
opro score                    # graph readiness (0โ€“100)
opro gaps --limit 10          # top 10 untested behaviors
opro generate --base main     # tests for PR diff
opro generate --single        # top gap, whole repo
opro prove                    # mutation-kill oracle
opro rtm                      # traceability matrix
opro export                   # metadata-only evidence pack
opro mcp                      # run as MCP server (stdio)
opro doctor                   # what evidence to add next
opro coverage                 # ingest runtime coverage

Add --json to any read command for machine output. Run opro help for the full reference.

MCP tools (18 total)

ToolWhat it does
orangepro_startOne-command setup: analyze + report + next actions
orangepro_analyze_sourcesBuild/refresh the evidence graph
orangepro_generate_testsGenerate grounded tests for gaps
orangepro_proveRun mutation-kill oracle on a behavior
orangepro_prove_loopSetup + dynamic proof + report refresh for one behavior
orangepro_find_test_gapsList behaviors with weak/missing tests, ranked by risk
orangepro_graph_scoreGraph readiness score (0โ€“100)
orangepro_statusWorkspace state without generating anything
orangepro_doctorRecommend next evidence to improve quality
orangepro_rtmRequirements traceability matrix
orangepro_statsAggregate statistics
orangepro_changed_impactWhat a diff touches (requires git + base ref)
orangepro_record_runRecord a test run result
orangepro_explain_testExplain why a test was generated
orangepro_export_evidence_packExport metadata-only evidence pack
orangepro_update_graphIncremental graph update
orangepro_ai_linksWeak behaviorโ†’symbol suggestions (optional AI)
orangepro_ai_flowsCandidate flow discovery (optional AI)

PR workflow

opro generate --base main              # tests for what this branch changed
opro generate --pr 1234                # checks out PR #1234
opro generate --changed                # current branch diff vs main

Each generated test includes:

  • Grounding โ€” the real files, symbols, and existing tests it cites
  • Run hints โ€” where to write it, how to run it
  • Scenario bucket โ€” what failure mode it targets

If dependencies aren't installed, tests are kept as Manual tests (Given/When/Then steps with the blocker named). Install dependencies and re-run to convert them to runnable tests.

Test categories

Generation is evidence-gated. A category is produced only when the graph has supporting evidence.

CategoryWhat it targets
Happy pathPrimary expected behavior
Validation errorBad/invalid input handling
Edge caseBoundaries, empty/null, concurrency, retries
Integration flowMulti-step behavior across services
Security / privacyAuth, injection, data leakage
RegressionPinning a previously-broken behavior

Model setup (BYOK)

Analysis, scoring, and proof need no model key. Generation does.

ProviderEnvironment variable
OpenAI-compatibleOPENAI_API_KEY (optional: OPENAI_BASE_URL, OPENAI_MODEL)
AnthropicANTHROPIC_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.

Run opro setup to configure interactively. Keys stay in your environment โ€” never written to graph, config, or artifacts.

AI candidate lanes

With a provider key, OrangePro stages weak AI behaviorโ†’symbol links and AI-suggested candidate flows. These are review/generation worklists, not evidence:

  • AI links appear as AI-linked suggestions.
  • AI flows are stored separately from deterministic flows.
  • Neither lane changes evidence tiers or denominator counts.

Use them when you want the agent to find likely service-boundary flows faster; ignore them for a deterministic-only report.


What's on the hosted platform

This repo is the free local tool. The OrangePro platform adds:

  • Persistent knowledge graph across PRs and repos
  • PR/CI policy gates over evidence tiers and risk deltas
  • Jira / Confluence / TestRail / OpenAPI enrichment
  • Cross-repo intelligence and recurring-flow memory
  • Production incident correlation and regression targeting
  • Team dashboards and test lifecycle management

Contributing

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

Sourced from the repository README.

More in AI & Agents