MCP.so
登录
M

MCP Jacoco Reporter

@crisschan

基本信息

分类

其他

传输方式

stdio

作者

crisschan

提交者

Criss Chen

关于 MCP Jacoco Reporter

暂无概览

#mcp-jacoco#code-coverage#ai-integration

MCP Jacoco Reporter 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-jacoco-reporter-server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/Users/crisschan/workspace/pyspace/mcp-jacoco-reporter/mcp-jacoco-reporter-server.py"
      ],
      "env": {
        "COVERED_TYPES": "nocovered, partiallycovered, fullcovered"
      },
      "alwaysAllow": [
        "jacoco_reporter_server"
      ]
    }
  }
}

MCP Jacoco Reporter 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Mcp Jacoco Reporter?

Mcp Jacoco Reporter is a server tool that converts JaCoCo code coverage reports into JSON formats optimized for Large Language Models (LLMs). It is designed for development teams who want to use AI tools to analyze, summarize, and act on Java code coverage data more effectively.

How to use Mcp Jacoco Reporter?

Install the server using uv with the provided MCP configuration, which includes an environment variable to filter coverage types. The server exposes a single tool, jacoco_reporter_server, which takes a path to a JaCoCo XML report and returns coverage metrics as structured JSON.

Key features of Mcp Jacoco Reporter

  • Smart conversion of JaCoCo XML into LLM-friendly JSON format.
  • Supports multiple coverage types (instruction, branch, line, etc.).
  • Fast and lightweight report processing.
  • Well-organized JSON output for easy AI consumption.
  • Filter coverage data by specific metrics of interest.

Use cases of Mcp Jacoco Reporter

  • Generate quick, AI-readable summaries of code coverage for pull reviews.
  • Automatically identify untested or poorly tested source files and branches.
  • Feed structured coverage data into LLMs for smart test case suggestions.
  • Enable AI-assisted test planning and coverage gap analysis.
  • Automate documentation of coverage results for team dashboards.

常见问题

1

What format does Mcp Jacoco Reporter output?

The server converts JaCoCo XML reports into a structured JSON array, where each entry includes source file, package, and breakdowns of uncovered and partially covered lines and branches.

2

How do I install Mcp Jacoco Reporter?

It is installed via `uv` by adding the provided JSON block to your MCP configuration. The block specifies the command, arguments, environment variable `COVERED_TYPES`, and the tool to always allow.

3

What input is required to run the tool?

The `jacoco_reporter_server` tool requires the `jacoco_report_path` argument, which is the filesystem path to the JaCoCo XML report.

4

Does Mcp Jacoco Reporter depend on a specific runtime?

Yes, it requires the `uv` package manager and the `mcp[cli]` Python package to be available in the execution environment.

5

Can I limit which coverage types are analyzed?

Yes. The `COVERED_TYPES` environment variable in the configuration lets you filter the report by coverage statuses such as `nocovered`, `partiallycovered`, and `fullcovered`.

评论

其他 分类下的更多 MCP 服务器