3 v0.9.0 更新于 2026-11-09
Test Inventory MCP Server
Discover tests, skip reasons and affected tests, and compare inventories without running tests.
适用客户端
本地客户端
Claude Desktop、Claude Code、Cursor、Cline 等支持本地 MCP 的客户端
安装配置
本地运行(npm)
{
"mcpServers": {
"test-inventory": {
"command": "npx",
"args": [
"-y",
"test-inventory-mcp"
]
}
}
}将上方 JSON 加入 MCP 客户端配置(如 Claude Desktop 的 claude_desktop_config.json 或项目的 .mcp.json)即可接入;远程接入按客户端要求填写 URL 与鉴权头。
提供的工具 接入后 Agent 可调用这 5 个工具
test_summary
按状态、标签和注解统计测试数量,并提供配置与项目信息,可按文件、标签或项目分组。
find_tests
根据 states、tags、grep、related 等条件查找匹配的测试,并返回所选字段。
get_tests
根据 ids 获取最多 20 个测试的完整记录及扫描诊断,找不到的 id 返回在 notFound 中。
scan_diagnostics
返回扫描发现的问题(如解析失败的文件),可按级别、代码或路径过滤。
diff_inventories
比较项目内两份已保存的 JSON 测试清单,返回分页的变更、摘要和警告。