9to5 coverage · Integrations
Code coverage for Claude Code
Use read-only MCP coverage context to help Claude Code find missing PR tests and verify the result.
Register the remote server
First install the GitHub App and upload a report from CI. In the repository where you use Claude Code, register the HTTP endpoint:
claude mcp add --transport http 9to5-coverage https://coverage.9to5.software/mcpUse Claude Code’s /mcp interface to inspect the connection and complete OAuth when requested. Authorize only repositories you intend to work on. The coverage upload token from CI is not an MCP credential.
Inspect, test and verify
- Resolve the PR coverage before asking for line detail. Confirm the head commit and recorded baseline.
- Request uncovered changed lines, then let Claude inspect local source and existing tests.
- Add assertions for the behavior that was missed. Run relevant tests and the complete required checks.
- Upload coverage for the new commit and inspect the resulting PR checks.
Inspect coverage for OWNER/REPO PR NUMBER. Explain the uncovered changed
behavior and propose focused tests. After implementing them, run the tests.
Report the head SHA and distinguish local results from the latest uploaded
coverage; do not report the PR as verified while CI is still pending.
Recover without guessing
If the repository is unavailable, check your GitHub membership and the authorized scope. If the baseline is missing, upload the relevant base report using the same format. If multiple formats exist, select the intended format explicitly. Keep tokens out of prompts, screenshots and committed configuration.
What remains in your checkout
The MCP tools return file paths, line hit states, summaries and comparisons. Claude Code reads and edits source through its own local permissions. The coverage server does not write tests or modify source on your behalf.
Tool contracts and errors · Official Claude Code MCP documentation