AI Skill Hub 推荐使用:Ruby代码覆盖率工具 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
优化Ruby Simplecov测试覆盖率数据
Ruby代码覆盖率工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
优化Ruby Simplecov测试覆盖率数据
Ruby代码覆盖率工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/keithrbennett/cov-loupe
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"ruby-------": {
"command": "npx",
"args": ["-y", "cov-loupe"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Ruby代码覆盖率工具 执行以下任务... Claude: [自动调用 Ruby代码覆盖率工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"ruby_______": {
"command": "npx",
"args": ["-y", "cov-loupe"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p style="text-align:center; margin-bottom:-36px;"> <img src="https://raw.githubusercontent.com/keithrbennett/cov-loupe/main/dev/images/cov-loupe-logo.png" alt="CovLoupe logo" width="560"> </p>
<p style="text-align:center;"> An MCP server, command line utility, and library for Ruby SimpleCov test coverage analysis. </p>
<p style="text-align:center;"> <strong><a href="https://keithrbennett.github.io/cov-loupe/">Documentation Website</a></strong> </p>
-s full|uncovered|none / --source full|uncovered|none with -c N / --context-lines N for context linesmcp gem dependency).resultset.json filesimplecov gem >= 0.21cov-loupe declares a runtime dependency on simplecov (>= 0.21) to support multi-suite merging using SimpleCov's combine helpers. The dependency is lazy-loaded only when needed, ensuring fast startup for single-suite projects.
gem install cov-loupe
cov-loupe --raise-on-stale true list || exit 1
git clone https://github.com/keithrbennett/cov-loupe.git cd cov-loupe bundle install
gem build cov-loupe.gemspec gem install cov-loupe-*.gem ```
See dev/DEVELOPMENT.md for more.
CLI - View Coverage Table: ```sh cov-loupe
cov-loupe automatically searches for .resultset.json in standard locations (coverage/.resultset.json, .resultset.json, tmp/.resultset.json). For non-standard locations:
```sh
cov-loupe -r /path/to/your/coverage
export COV_LOUPE_OPTS="-r /path/to/your/coverage"
For accurate coverage tracking and validation, set COV_LOUPE_OPTS to match your SimpleCov track_files patterns:
```ruby
export COV_LOUPE_OPTS="--tracked-globs lib/**/.rb,app/*/*.rb" ```
This ensures list and totals output matches SimpleCov's scope and missing_tracked_files (in list) / missing_from_coverage (in totals) report meaningful gaps.
Note: By default, --tracked-globs is empty (shows all files in the resultset). This prevents silently hiding coverage data that doesn't match assumed patterns.
Boolean flags such as --color (short: -C) and --raise-on-stale (short: -S) require explicit boolean arguments. Recognized literals:
yes | no |
y | n |
true | false |
t | f |
on | off |
+ | - |
1 | 0 |
Each row lists the equivalent true token (left) and false token (right).
cov-loupe --color false # disable ANSI colors explicitly
cov-loupe -C false # short form
cov-loupe --raise-on-stale yes # enforce stale coverage failures
```sh
ruby -v/bin/ps which may be blocked by sandbox restrictions. Use rbenv or chruby instead.For more detailed help, see the full Troubleshooting Guide.
优化Ruby代码测试覆盖率的有用工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Ruby代码覆盖率工具 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | cov-loupe |
| 原始描述 | 开源MCP工具:Refines Ruby Simplecov test coverage data as CLI, MCP server, and library。⭐46 · Ruby |
| Topics | mcprubysimplecov |
| GitHub | https://github.com/keithrbennett/cov-loupe |
| License | MIT |
| 语言 | Ruby |
收录时间:2026-06-11 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端