
goldbergyoni/test-coverage-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
goldbergyoni/test-coverage-mcp は [https://github.com/goldbergyoni/test-coverage-mcp.] からインポートされた MCP サーバー候補です
概要
goldbergyoni/test-coverage-mcp は [https://github.com/goldbergyoni/test-coverage-mcp.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
エージェントのカバレッジアウェアをコードとして使用
「ねえ、私はコーディングエージェントです。 私はちょうど懐かしいnifty機能を作成しました…しかし、oops、私はカバレッジを下げました。 どうやって知ることができますか?
「ねえ、私はテストエージェントです。 テストでいくつかのコードをカバーしようとしましたが、どの領域がカバーされていないか分かりましたか?
プログラミング言語(LCOVベース)の即時、信頼性、トークン効率の高いテストカバレッジデータを提供するMCPサーバー
アーカイブ
2025年11月発売! このライブラリを磨くのに、この日は素晴らしい時間を過ごしています。 この価値があると見れば、このプロジェクトが注目する価値がある他の開発者に ◀ ◀ 星は信号を助けます
問題
AI コーディングエージェントが適切なカバレッジツールなしでコードで動作する場合、それらは3つの重要な問題に直面します。
1.Coverageブラインドネス - 変更が改善されたか、またはテストカバレッジを退会したかどうかは、それらは確認できません 2。 トークン廃棄物 - 彼らは大規模なLCOVファイルを解析しようとするトークンの数千を燃やします(一部10 MBを超える) 3。 信頼できないスクリプト - 彼らは、多くの場合、失敗または誤った結果を生成するスクリプトを解析するカスタムを改善します
ソリューション
このMCPサーバーは、以下の3つの問題をすべて解決します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Test Coverage MCP
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
The Problem
When AI coding agents work on your code without proper coverage tooling, they face three critical issues:
- Coverage Blindness - They can’t see if their changes improved or regressed test coverage
- Token Waste - They burn thousands of tokens trying to parse massive LCOV files (some exceed 10 MB)
- Unreliable Scripts - They improvise custom parsing scripts that often fail or produce incorrect results
The Solution
This MCP server solves all three problems by providing:
- Coverage Awareness - Agents can check coverage anytime with a simple tool call
- Token Efficiency - Get coverage summaries in <100 tokens instead of thousands
- Accuracy - Production-grade LCOV parsing that handles all format variations
- Baseline Tracking - Measure coverage progress within a session without keeping state in memory
Test Coverage: This project maintains 95% test coverage and we’re targeting 100% soon.
Two Main Workflows
1. Query Coverage Summary
Ask for overall project coverage or coverage for specific files:
// Get overall project coverage
coverage_summary({ lcovPath: "./coverage/lcov.info" });
// Returns: { linesCoveragePercentage: 87.5, branchesCoveragePercentage: 82.1 }
// Get coverage for specific files
coverage_file_summary({
lcovPath: "./coverage/lcov.info",
filePath: "src/utils/parser.ts",
});
// Returns: { path: "src/utils/parser.ts", linesCoveragePercentage: 92.0, branchesCoveragePercentage: 88.5 }
2. Baseline Tracking for Session Progress
Establish a baseline at session start, then measure your progress:
// At session start - record current coverage as baseline
start_recording({ lcovPath: "./coverage/lcov.info" });
// Returns: "Recording started"
インストール
npx -y test-coverage-mcp設定
{
"mcpServers": {
"test-coverage": {
"command": "npx",
"args": ["-y", "test-coverage-mcp"]
}
}
}