Codecov integration
Codecov API for code coverage reporting and analysis. Track test coverage metrics across repositories, monitor coverage changes in pull requests, manage coverage uploads, and integrate with CI/CD pipelines. Provides detailed coverage reports, file-level analysis, comparisons, test results, and team collaboration features for maintaining high code quality standards.
Say what should happen.
The workflow builds itself.
Common Codecov use cases
- pre-merge coverage checks
- coverage trend visualization
- coverage diff analysis
- CI/CD setup
- user lookup
- team management
- security auditing
- focused code review
- flag-level PR review
- PR coverage analysis
What you can do with Codecov
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Comparison, 6 operations
compare_commitsCompare commitsGETAgents: ask firstCompares coverage between two commits or for a pull request showing base/head totals and patch coverage.compare_componentsCompare componentsGETAgents: ask firstCompares coverage at the component level between two commits or for a pull request.compare_fileCompare fileGETAgents: ask firstCompares coverage for a specific file between two commits or for a pull request with line-by-line diff.compare_flagsCompare flagsGETAgents: ask firstCompares coverage at the flag level between two commits or for a pull request.compare_impacted_filesCompare impacted filesGETAgents: ask firstReturns the list of files impacted by coverage changes between two commits or for a pull request.compare_segmentsCompare segmentsGETAgents: ask firstReturns segmented file comparison showing only the impacted segments of a file for efficient review.
Repository, 3 operations
get_repositoryGet repositoryGETAgents: ask firstRetrieves coverage information for a repository including overall coverage percentage, line counts, and repository metadata.get_repository_configGet repository configGETAgents: ask firstRetrieves repository configuration including upload token and graph token.list_repositoriesList repositoriesGETAgents: ask firstReturns a paginated list of repositories for the specified owner with optional filtering.
User, 3 operations
get_userGet userGETAgents: ask firstRetrieves details for a specific user within an organization.list_usersList usersGETAgents: ask firstLists users belonging to the specified owner organization.update_userUpdate userPATCHAgents: ask firstUpdates a user's activation status to activate or deactivate their access.
Branch, 2 operations
get_branchGet branchGETAgents: ask firstRetrieves detailed coverage data for a specific branch including head commit and coverage totals.list_branchesList branchesGETAgents: ask firstLists branches with their coverage data including coverage percentage and head commit information.
Commit, 2 operations
get_commitGet commitGETAgents: ask firstRetrieves detailed coverage data for a specific commit including file-level breakdown and comparison with parent commit.list_commitsList commitsGETAgents: ask firstLists commits with coverage data for a repository. Returns commit SHA, coverage metrics, and CI information.
Evaluation, 2 operations
compare_evalsCompare evalsGETAgents: ask firstReturns a comparison of evaluations between two commits for a repository.get_eval_summaryGet eval summaryGETAgents: ask firstReturns a summary of evaluations for a specific commit in a repository with optional classname filtering.
Flag, 2 operations
get_flag_coverage_trendGet flag coverage trendGETAgents: ask firstRetrieves coverage trend data over time for a specific flag showing historical flag-level coverage metrics.list_flagsList flagsGETAgents: ask firstLists coverage flags for a repository allowing coverage segmentation by test type, environment, or component.
Owner, 2 operations
get_ownerGet ownerGETAgents: ask firstReturns details for a specific owner including service, username, and display name.list_ownersList ownersGETAgents: ask firstReturns a paginated list of owners (organizations/users) accessible to the authenticated user.
Pull, 2 operations
get_pullGet pullGETAgents: ask firstRetrieves detailed coverage data for a pull request including base/head coverage totals and CI status.list_pullsList pullsGETAgents: ask firstLists pull requests with coverage data showing coverage change and comparison metrics against the base branch.
Report, 2 operations
get_coverage_reportGet coverage reportGETAgents: ask firstRetrieves the full coverage report for a repository commit with line-by-line coverage data for all files.get_coverage_report_treeGet coverage report treeGETAgents: ask firstRetrieves the coverage report as a tree structure organized by directory hierarchy with configurable depth.
Component, 1 operation
list_componentsList componentsGETAgents: ask firstLists coverage components that group files by path patterns for organized coverage tracking across different parts of the codebase.
File, 1 operation
get_file_coverageGet file coverageGETAgents: ask firstRetrieves line-by-line coverage data for a specific file showing which lines are covered, missed, or partial.
Session, 1 operation
list_user_sessionsList user sessionsGETAgents: ask firstReturns a paginated list of users' login sessions for the specified organization. Requires admin access.
Test analytics, 1 operation
list_test_analyticsList test analyticsGETAgents: ask firstLists test analytics for a repository showing test run details including name, classname, outcome, and duration.
Totals, 1 operation
get_coverage_totalsGet coverage totalsGETAgents: ask firstRetrieves coverage totals for a commit broken down by file with optional filtering by path, flag, or component.
Trend, 1 operation
get_coverage_trendGet coverage trendGETAgents: ask firstRetrieves coverage trend data over time showing daily, weekly, or monthly coverage percentages for historical analysis.
Upload, 1 operation
list_commit_uploadsList commit uploadsGETAgents: ask firstLists coverage uploads for a specific commit showing CI provider, job info, and upload flags.
Use Codecov from Claude Code, Cursor or Codex
Connect Codecov in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Codecov operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Codecov
- Create your workspace
Sign up free. Nothing to install.
- Connect Codecov once
Add your Codecov connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Codecov integration FAQ
What can you do with the Codecov integration?
LiveContext exposes 33 operations on Codecov, covering comparison, repository, user and branch. Common uses include pre-merge coverage checks, coverage trend visualization and coverage diff analysis.
