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`.

コメント

「その他」の他のコンテンツ