test-intel-mcp
TypeScript および JavaScript プロジェクト向けのテストカバレッジインテリジェンス MCP サーバーです。カバレッジレポートを解析し、未テストの関数を検出し、循環複雑度をローカルでスコアリングします。外部サービスや認証は不要です。
ツール
ツール | 説明 |
| lcov、istanbul JSON、または cobertura XML レポートを解析し、カバーされていないファイル、関数、行、ブランチを明らかにします |
| ソースディレクトリをスキャンして、対応するテストファイルがない関数を探します |
| 関数ごとの循環複雑度を計算して、何を最初にテストすべきかを優先順位付けします |
| 特定の関数を分析し、カテゴリ別のテストケースの提案を生成します |
Related MCP server: Chisel
セットアップ
オプション A: stdio(ローカル)
Claude Desktop
設定ファイル: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"test-intel": {
"command": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}Claude Code
claude mcp add test-intel -- npx -y @barissozudogru/test-intel-mcpCursor
設定ファイル: ~/.cursor/mcp.json
{
"mcpServers": {
"test-intel": {
"command": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}Windsurf
設定ファイル: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"test-intel": {
"command": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}VS Code + Copilot
設定ファイル: .vscode/mcp.json
{
"servers": {
"test-intel": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}Cline
{
"mcpServers": {
"test-intel": {
"command": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}Continue.dev
設定ファイル: ~/.continue/config.yaml
mcpServers:
- name: test-intel
command: npx
args:
- -y
- "@barissozudogru/test-intel-mcp"Zed
設定ファイル: ~/.config/zed/settings.json
{
"context_servers": {
"test-intel": {
"command": {
"path": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}
}JetBrains (IntelliJ, WebStorm, etc.)
{
"mcpServers": {
"test-intel": {
"command": "npx",
"args": ["-y", "@barissozudogru/test-intel-mcp"]
}
}
}オプション B: HTTP(リモートクライアント)
サーバーを起動します:
npx @barissozudogru/test-intel-mcp --http
# or
PORT=3000 TRANSPORT=http npx @barissozudogru/test-intel-mcpサーバーは http://0.0.0.0:3000/mcp で待ち受けます。ヘルスチェックは /health で利用できます。
Cursor (HTTP)
{
"mcpServers": {
"test-intel": {
"url": "http://localhost:3000/mcp"
}
}
}VS Code + Copilot (HTTP)
{
"servers": {
"test-intel": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Windsurf (HTTP)
{
"mcpServers": {
"test-intel": {
"serverUrl": "http://localhost:3000/mcp"
}
}
}Continue.dev (HTTP)
mcpServers:
- name: test-intel
url: http://localhost:3000/mcpオプション C: Docker
docker build -t test-intel-mcp .
docker run -p 3000:3000 -v $(pwd):/project -w /project test-intel-mcpその後、任意の HTTP クライアントが http://localhost:3000/mcp を指すように設定します。
対応カバレッジ形式
形式 | 拡張子 | ジェネレーター |
lcov |
| Jest, Vitest, nyc, Istanbul |
istanbul |
| Jest, nyc, Istanbul |
cobertura |
| Jest, pytest-cov, JaCoCo |
format が省略された場合、形式はファイル拡張子から自動検出されます。
要件
Node.js >= 18
認証やネットワークアクセスは不要です
すべてのファイル分析はローカルで実行されます
ライセンス
MIT
Available Tools
4 toolsanalyze_test_coverageAnalyze Test CoverageA
Parse a coverage report (lcov, istanbul JSON, or cobertura XML) and return uncovered files, functions, lines, and branch gaps.
Inputs: coverage_path (required), format.
find_untested_functionsFind Untested FunctionsA
Scan source files for function/method declarations and identify those with no corresponding test file.
Inputs: source_dir (required), test_dir, extensions.
get_function_complexityGet Function ComplexityA
Analyze a file's functions for cyclomatic complexity to prioritize which functions need tests most urgently.
Inputs: file_path (required).
suggest_test_casesSuggest Test CasesA
Analyze a specific function and generate structured test case suggestions based on its logic, branches, and type signatures.
Inputs: file_path (required), function_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct focus: generating test cases, parsing coverage reports, finding untested functions, and analyzing complexity. However, find_untested_functions and get_function_complexity both aim at identifying functions that need testing, which could cause some initial confusion.
All tool names follow a consistent snake_case verb_noun pattern, e.g., suggest_test_cases, analyze_test_coverage, find_untested_functions, get_function_complexity. This makes the toolset predictable and easy for an agent to navigate.
Four tools is well-scoped for a testing intelligence server, with each tool serving a clear and non-redundant purpose. There is no bloat, and the count feels sufficient for the stated domain.
The set covers a natural workflow of testing intelligence: generating tests, assessing coverage, identifying untested functions, and prioritizing via complexity. This is a solid read-only surface, though additional tools like listing existing test files or summarizing coverage trends could round it out further.
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.
MCP server for understanding Javascript internals from ECMAScript specification.
Related MCP Servers
- AlicenseAqualityFmaintenanceMCP server for Codecov that provides tools to get commit coverage totals and prompts to suggest tests to write.16ISC
- AlicenseNot gradedqualityBmaintenanceMCP server for test impact analysis and code intelligence. Maps tests to code and git history to determine impacted tests, risk scores, and ownership for AI coding agents.8MIT
- FlicenseAqualityDmaintenanceMCP server for Java branch coverage analysis using JaCoCo. Enables agent-style coverage feedback with per-test-class granularity and uncovered line identification.2-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides instant, token-efficient test coverage data for any programming language, allowing agents to query coverage summaries and track session progress.73 npm42MIT