goldbergyoni avatar

Test Coverage Mcp

goldbergyoni/test-coverage-mcp

Reads LCOV files and gives your AI agent structured coverage data without burning tokens on massive raw files. Exposes four tools: coverage_summary for project-wide percentages, coverage_file_summary for individual file metrics, start_recording to snapshot a baseline, and get_diff_since_start to measure coverage impact during a session. Useful when you want agents to maintain or improve coverage as they write code, or when testing agents need to identify uncovered areas. Works with any language that generates LCOV output. The baseline tracking is clever because agents don't have to hold initial coverage numbers in their context window throughout the entire conversation.

GitHub stars
41
tools
4
transport
STDIO
last updated
Nov 7, 2025

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

coverage_summaryGet overall project coverage from an LCOV file.

Get overall project coverage from an LCOV file.

No parameter schema in public metadata yet.

coverage_file_summaryGet coverage for a specific file.

Get coverage for a specific file.

No parameter schema in public metadata yet.

start_recordingRecord current coverage as a baseline for later comparison.

Record current coverage as a baseline for later comparison.

No parameter schema in public metadata yet.

get_diff_since_startCompare current coverage against the recorded baseline.

Compare current coverage against the recorded baseline.

No parameter schema in public metadata yet.

Sponsors

Readme

Test Coverage MCP

npm version License: MIT Coverage CI Last Commit

Make your agents coverage-aware as they code for you

“Hey, I’m a coding agent. I just created flashy nifty feature… but oops, I downgraded the coverage 🤓. How could I know that?”

“Hey, I’m a testing agent. I was tasked to cover some code with testing, but how can I find which areas are not covered?😳”

Give your coding and testing agent eyes: MCP server that provides instant, reliable, token-efficient test coverage data for any programming language (LCOV based)

__

🚀 Just launched (November 2025) ! I spend great time these days on polishing this library. If you find this valuable, a ⭐ star helps signal to other developers that this project is worth their attention


View the full README on GitHub

Details

Repository
github.com/goldbergyoni/test-coverage-mcp
Package
test-coverage-mcp
Transport
STDIO
Registry
MCP registry, active