codecov-mcp-server
Provides tools to retrieve commit coverage totals and file-level coverage breakdowns from Codecov, and prompts to suggest tests based on Codecov reports.
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., "@codecov-mcp-servershow coverage totals for the last commit"
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.
Codecov MCP Server
A Codecov Model Context Protocol server in TypeScript.
Tools for finding where your codebase is lacking tests.
Prompts for suggesting which tests to write.
Features
Resources
None yet
Tools
get_commit_coverage_totals- Returns the coverage totals for a given commit and the coverage totals broken down by file. Uses this api.
Prompts
suggest_tests- Suggests tests to write based on Codecov report.
Related MCP server: test-coverage-mcp
Installation
Usage: Ask your AI agent to "run the get_commit_coverage_totals tool" in your chat.
Configure: No need to install anything, just run with npx and put in your Codecov API key from here - Go to Settings -> Access.
And git url: git remote get-url origin
Cursor command: npx -y codecov-mcp-server --api-key XXX --git-url XXX
(On Windows) Cursor command: cmd.exe /c npx -y codecov-mcp-server --api-key XXX --git-url XXX
To use with Claude (or any AI), add the server config:
{
"mcpServers": {
"codecov-mcp-server": {
"command": "npx",
"args": [
"-y",
"codecov-mcp-server",
],
"env": {
"CODECOV_API_KEY": "XXX",
"GIT_URL": "XXX"
}
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchAvailable Tools
1 toolget_commit_coverage_totalsA
Returns the Codecov coverage totals for a given commit and the coverage totals broken down by file
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It states the tool 'returns' data, which indicates a read-only operation, but it does not mention error handling, authentication requirements, or what happens if the commit is not found. This is minimal but sufficient for a simple read operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence that directly conveys the tool's purpose. It is concise and front-loaded, with no wasted words or redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has no parameters, no output schema, and no annotations, so the description must stand alone. It explains what is returned (coverage totals and breakdown by file) but does not clarify how the commit is identified or what the response structure looks like. This leaves the tool's usage context incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema is empty, so the baseline is 4. However, the description references 'a given commit' without providing any parameter or context for how the commit is specified. This introduces ambiguity and suggests a parameter that does not exist, which detracts from the value of the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: returning Codecov coverage totals for a commit, broken down by file. The verb 'returns' and the specific resource 'coverage totals' make the purpose unambiguous. It is distinct from potential siblings by focusing on commit-level coverage totals.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use cases for retrieving commit coverage totals but provides no explicit guidance on when to use this tool versus alternatives. Since no sibling tools are listed, the lack of exclusion or alternative references is not critical, but the description could be clearer about the intended context (e.g., for a specific commit in a CI pipeline).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.5- First observed
get_commit_coverage_totals
TDQS
Only one tool exists, so there is no possibility of confusion between tools. The tool's purpose is clear and unambiguous.
The single tool name 'get_commit_coverage_totals' follows a clear verb_noun pattern and is descriptive. With only one tool, consistency is trivially satisfied, but the name itself is well-formed.
One tool is far too thin for a Codecov MCP server, which typically would need multiple operations (commits, branches, reports, etc.). The server appears to be scoped too narrowly.
The tool only provides commit coverage totals with file breakdown. Many obvious Codecov features are missing (e.g., coverage by branch, pull request, or trend analysis), creating significant gaps for most use cases.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Related MCP Servers
- FlicenseAqualityBmaintenanceMCP 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.5241MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that performs mutation testing and diff scoping to score how trustworthy tests are for detecting regressions in changed code.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for testing assistance that scans codebases, identifies untested areas, generates and runs tests, and reports results.Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stedwick/z-codecov-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server