Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@simplecov-mcpShow me the uncovered lines in app/models/user.rb"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
simplecov-mcp
An MCP server that lets Claude directly access SimpleCov coverage reports.
No need to read the entire coverage/.resultset.json (which can be tens of MB). Retrieve only the data you need via tools.
Setup
Then, in your Rails project root, register the MCP server:
This adds the MCP server to your project's .mcp.json. The server automatically detects the coverage/ directory from the working directory.
To specify the coverage path explicitly:
After adding, restart Claude Code and verify with /mcp.
Tools
get_summary
Returns the overall coverage summary.
list_files
Lists files with their coverage rates. Supports sorting and filtering.
Parameter | Type | Default | Description |
|
|
| Sort key |
|
|
| Sort order |
| number | - | Minimum coverage percentage |
| number | - | Maximum coverage percentage |
| string | - | Partial match filter for file paths |
get_file_coverage
Returns detailed coverage for a specific file, including per-line hit counts, uncovered line numbers, and branch coverage.
Parameter | Type | Description |
| string (required) | File path. Matched by suffix |
get_uncovered_lines
Extracts only uncovered lines and branches. Useful when adding tests.