MCP-JaCoCo
by crisschan
MCP-JaCoCo is a server tool that converts JaCoCo code coverage reports into formats optimized for Large Language Models (LLMs), making AI-driven analysis easier and more effective. It bridges the gap between traditional code coverage reports and AI tools by transforming XML reports into LLM-friendly formats.
Last updated: N/A
What is MCP-JaCoCo?
MCP-JaCoCo is a server tool designed to convert JaCoCo XML code coverage reports into JSON format, optimized for consumption by Large Language Models (LLMs). This allows for AI-driven analysis of code coverage data, enabling more efficient and insightful testing workflows.
How to use MCP-JaCoCo?
Install MCP-JaCoCo using uv with the provided configuration. The jacoco_reporter_server
tool reads a JaCoCo XML report from a specified path (jacoco_xmlreport_path
) and returns coverage data in a structured JSON format. The JSON output includes coverage metrics for each source file, categorized by package, lines, and branches, indicating whether they are uncovered, partially covered, or fully covered.
Key features of MCP-JaCoCo
Smart Conversion: Transforms JaCoCo XML reports into LLM-friendly JSON format
Flexible Coverage Types: Supports multiple coverage metrics (instruction, branch, line, etc.)
Efficient Processing: Fast and lightweight report processing
Structured Output: Well-organized JSON format for easy AI consumption
Customizable Analysis: Filter coverage data by specific metrics of interest
Use cases of MCP-JaCoCo
Quick, meaningful summaries of code coverage
Easy identification of untested or poorly tested code
Smart suggestions for new test cases
Streamlined AI-assisted test planning
Automated documentation of coverage results
FAQ from MCP-JaCoCo
What problem does MCP-JaCoCo solve?
What problem does MCP-JaCoCo solve?
It simplifies JaCoCo's complex XML reports for AI use, pulls coverage metrics into one accessible place, cuts down on time-consuming manual reviews, and makes raw data play nicely with AI tools.
What is the input format for MCP-JaCoCo?
What is the input format for MCP-JaCoCo?
The input is a JaCoCo XML report.
What is the output format of MCP-JaCoCo?
What is the output format of MCP-JaCoCo?
The output is a JSON formatted string containing coverage metrics.
What coverage metrics are supported?
What coverage metrics are supported?
It supports multiple coverage metrics, including instruction, branch, and line coverage.
How does MCP-JaCoCo help with testing?
How does MCP-JaCoCo help with testing?
It enables AI-driven analysis of code coverage, allowing for smarter test planning, identification of untested code, and automated documentation of coverage results.