coverage-mcp 0.16.0

Find coverage gaps and compare measurements with concise source-oriented evidence
docs.rs failed to build coverage-mcp-0.16.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: coverage-mcp-0.15.0

Coverage MCP

Find missing coverage, inspect the returned locations with rg, run your existing test command, and compare the reports. Coverage MCP reads LLVM JSON, LCOV, coverage.py JSON, Istanbul JSON, Cobertura, JaCoCo, and Go coverprofiles.

Development status: this checkout is 0.16.0, schema 18. It replaces the old API with two read-only tools: coverage_gaps and coverage_compare. The local runtime and marketplace update have been tested; publishing them is a separate release step. See upgrading from 0.15.

Install

For Codex, install the testing plugin from codegen-marketplace. The plugin pins the runtime version and starts the shared daemon. The published plugin may still provide the earlier contract until 0.16 is released.

For contributors testing this checkout, Rust 1.85.1 and a C++ build toolchain are required for the bundled DuckDB build:

cargo install --path . --locked --bin coverage-mcp
coverage-mcp --version

Try a report

After installation, run this in a project directory:

mkdir -p target
printf 'TN:\nSF:example.rs\nDA:1,1\nDA:2,0\nend_of_record\n' > target/example.lcov
coverage-mcp gaps --measurement target/example.lcov

The result identifies line 2 as missing. Source identity is unverified and test status is unknown; the example does not require an example.rs source file.

For real measurements, preserve the baseline before running tests:

cp target/coverage.json target/baseline.json
# Run only the new cases with the repository's existing coverage command.
coverage-mcp gaps --measurement target/coverage.json --query parse_header
coverage-mcp compare --scope incremental --baseline target/baseline.json --measurement target/coverage.json

Incremental mode reports new coverage and the baseline-plus-batch total. Pass --previous REPORT for earlier batches; see incremental use.

Report-file CLI queries need no server, database, or import. Each answer shows a few source locations and omitted counts. Selected-test absences are not regressions; source/build receipts are needed for verified comparison claims. Use --json for structured output or --help for command options.

To use MCP and saved history, run coverage-mcp connect --repo /absolute/project. It starts or reuses the loopback daemon; the dashboard is then available at http://127.0.0.1:59471/.

Guides

For bugs, see support. Report vulnerabilities through the security policy. Licensed under MIT.