Codecov MCP by usefulapi

Read Codecov coverage reports, commits, pulls, flags and components.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
100%
Naming quality
79%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'codecov_get_flag_coverage_trend' name length outside 3-30 rangein codecov_get_flag_coverage_trend

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~7,590Tokens (tool definitions)
~2.9 KBTypical response size
Significant attention impact (5.93% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "codecov": {
      "url": "https://codecov.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://codecov.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (24)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢codecov_list_service_owners(service, page, pageSize)

List owners (organizations/users) the token can see on a git service. Codecov REST: GET /{service}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_owner(service, owner)

Get a single owner (org/user) detail. Codecov REST: GET /{service}/{owner_username}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    }
  },
  "required": [
    "owner"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_users(service, owner, activated, isAdmin, search, ...)

List users belonging to an owner (org), optionally filtered by activation/admin/search. Codecov REST: GET /{service}/{owner_username}/users/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "activated": {
      "description": "Filter by whether the user's seat is activated.",
      "type": "boolean"
    },
    "isAdmin": {
      "description": "Filter by admin status (maps to `is_admin`).",
      "type": "boolean"
    },
    "search": {
      "description": "Free-text search over user name / username.",
      "type": "string"
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_repos(service, owner, active, names, search, ...)

List repositories for an owner, optionally filtered by active state, names or search. Codecov REST: GET /{service}/{owner_username}/repos/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "active": {
      "description": "Filter to repos that are active (receiving coverage) or not.",
      "type": "boolean"
    },
    "names": {
      "description": "Filter to specific repository names (each is sent as a repeated `names` query param).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "search": {
      "description": "Free-text search over repository name.",
      "type": "string"
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_repo(service, owner, repo)

Get a single repository's detail. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_repo_config(service, owner, repo)

Get a repository's Codecov configuration. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/config/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_branches(service, owner, repo, author, ordering, ...)

List a repository's branches, optionally filtered by author and ordering. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/branches/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "author": {
      "description": "Filter branches by author username.",
      "type": "string"
    },
    "ordering": {
      "description": "Ordering field, e.g. 'updatestamp' or '-updatestamp'.",
      "type": "string"
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_branch(service, owner, repo, branch)

Get a single branch's detail, including its head commit's coverage totals. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/branches/{name}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "branch": {
      "type": "string",
      "minLength": 1,
      "description": "Branch name, e.g. 'main' (required)."
    }
  },
  "required": [
    "owner",
    "repo",
    "branch"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_commits(service, owner, repo, branch, page, ...)

List a repository's commits, optionally filtered by branch. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/commits/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "branch": {
      "description": "Filter commits to a branch, e.g. 'main'.",
      "type": "string"
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_commit(service, owner, repo, commitid)

Get a single commit's detail, including its coverage totals and report. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/commits/{commitid}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "commitid": {
      "type": "string",
      "minLength": 1,
      "description": "Commit SHA (required)."
    }
  },
  "required": [
    "owner",
    "repo",
    "commitid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_commit_uploads(service, owner, repo, commitid, page, ...)

List the coverage report uploads recorded for a commit. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/commits/{commitid}/uploads/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "commitid": {
      "type": "string",
      "minLength": 1,
      "description": "Commit SHA (required)."
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo",
    "commitid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_pulls(service, owner, repo, ordering, state, ...)

List a repository's pull requests, optionally filtered by state and start date. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/pulls/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "ordering": {
      "description": "Ordering field, e.g. 'pullid' or '-pullid'.",
      "type": "string"
    },
    "state": {
      "description": "Filter by pull state, e.g. 'open', 'closed' or 'merged'.",
      "type": "string"
    },
    "startDate": {
      "description": "Only include pulls updated on/after this date, yyyy-mm-dd (maps to `start_date`).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_pull(service, owner, repo, pullid)

Get a single pull request's detail, including its base/head coverage. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/pulls/{pullid}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "pullid": {
      "type": "string",
      "minLength": 1,
      "description": "Pull request number/id (required)."
    }
  },
  "required": [
    "owner",
    "repo",
    "pullid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_coverage_totals(service, owner, repo, sha, branch, ...)

Coverage totals for a commit (defaults to default branch head), plus per-file totals. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/totals/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "sha": {
      "description": "Commit SHA to report on (defaults to the default branch head).",
      "type": "string"
    },
    "branch": {
      "description": "Branch whose head to report on.",
      "type": "string"
    },
    "path": {
      "description": "Restrict totals to a file or directory path prefix.",
      "type": "string"
    },
    "flag": {
      "description": "Restrict totals to a coverage flag.",
      "type": "string"
    },
    "componentId": {
      "description": "Restrict totals to a component (maps to `component_id`).",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_coverage_report(service, owner, repo, sha, branch, ...)

Full coverage report for a commit (defaults to default branch head) — totals plus per-file line coverage. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/report/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "sha": {
      "description": "Commit SHA to report on (defaults to the default branch head).",
      "type": "string"
    },
    "branch": {
      "description": "Branch whose head to report on.",
      "type": "string"
    },
    "path": {
      "description": "Restrict the report to a file or directory path prefix.",
      "type": "string"
    },
    "flag": {
      "description": "Restrict the report to a coverage flag.",
      "type": "string"
    },
    "componentId": {
      "description": "Restrict the report to a component (maps to `component_id`).",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_report_tree(service, owner, repo, sha, branch, ...)

Coverage report as a file/directory tree for a commit (defaults to default branch head). Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/report/tree.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "sha": {
      "description": "Commit SHA to report on (defaults to the default branch head).",
      "type": "string"
    },
    "branch": {
      "description": "Branch whose head to report on.",
      "type": "string"
    },
    "path": {
      "description": "Restrict the tree to a directory path prefix.",
      "type": "string"
    },
    "flag": {
      "description": "Restrict the tree to a coverage flag.",
      "type": "string"
    },
    "componentId": {
      "description": "Restrict the tree to a component (maps to `component_id`).",
      "type": "string"
    },
    "depth": {
      "description": "Maximum tree depth to return.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_file_coverage(service, owner, repo, path, branch, ...)

Line-by-line coverage for a single file. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/file_report/{path}/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "description": "File path within the repo, e.g. 'src/app.ts' (required; slashes are URL-encoded)."
    },
    "branch": {
      "description": "Branch whose head to report on.",
      "type": "string"
    },
    "sha": {
      "description": "Commit SHA to report on (defaults to the default branch head).",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "repo",
    "path"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_coverage_trend(service, owner, repo, branch, startDate, ...)

Coverage measurements over time for a repository, bucketed by interval. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/coverage/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "branch": {
      "description": "Branch to measure (defaults to the default branch).",
      "type": "string"
    },
    "startDate": {
      "description": "Start of the range, yyyy-mm-dd (maps to `start_date`).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "endDate": {
      "description": "End of the range, yyyy-mm-dd (maps to `end_date`).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "interval": {
      "type": "string",
      "enum": [
        "1d",
        "7d",
        "30d"
      ],
      "description": "Aggregation interval for the trend — '1d', '7d' or '30d'."
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_flags(service, owner, repo, page, pageSize)

List a repository's coverage flags. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/flags/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_get_flag_coverage_trend(service, owner, repo, flag_name, branch, ...)

Coverage measurements over time for a single flag, bucketed by interval. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/flags/{flag_name}/coverage/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "flag_name": {
      "type": "string",
      "minLength": 1,
      "description": "Coverage flag name (required)."
    },
    "branch": {
      "description": "Branch to measure (defaults to the default branch).",
      "type": "string"
    },
    "startDate": {
      "description": "Start of the range, yyyy-mm-dd (maps to `start_date`).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "endDate": {
      "description": "End of the range, yyyy-mm-dd (maps to `end_date`).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "interval": {
      "type": "string",
      "enum": [
        "1d",
        "7d",
        "30d"
      ],
      "description": "Aggregation interval for the trend — '1d', '7d' or '30d'."
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo",
    "flag_name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_components(service, owner, repo, branch, sha)

List a repository's components with their coverage. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/components/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "branch": {
      "description": "Branch to report components on (defaults to the default branch).",
      "type": "string"
    },
    "sha": {
      "description": "Commit SHA to report components on.",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_compare(service, owner, repo, base, head, ...)

Compare coverage between two commits (base vs. head) or for a pull request. Provide EITHER both `base` and `head`, OR `pullid`. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/compare/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "base": {
      "description": "Base commit SHA (use together with `head`).",
      "type": "string"
    },
    "head": {
      "description": "Head commit SHA (use together with `base`).",
      "type": "string"
    },
    "pullid": {
      "description": "Pull request id to compare (use instead of base/head).",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_compare_impacted_files(service, owner, repo, base, head, ...)

List the files whose coverage changed between two commits (base vs. head) or for a pull request. Provide EITHER both `base` and `head`, OR `pullid`. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/compare/impacted_files.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "base": {
      "description": "Base commit SHA (use together with `head`).",
      "type": "string"
    },
    "head": {
      "description": "Head commit SHA (use together with `base`).",
      "type": "string"
    },
    "pullid": {
      "description": "Pull request id to compare (use instead of base/head).",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢codecov_list_test_results(service, owner, repo, branch, commitId, ...)

List a repository's test-analytics results, optionally filtered by branch, commit, outcome and duration. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/test-results/.

Input Schema

{
  "type": "object",
  "properties": {
    "service": {
      "default": "github",
      "description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
      "type": "string",
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ]
    },
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name, e.g. 'codecov-api' (required)."
    },
    "branch": {
      "description": "Filter to a branch, e.g. 'main'.",
      "type": "string"
    },
    "commitId": {
      "description": "Filter to a commit SHA (maps to `commit_id`).",
      "type": "string"
    },
    "outcome": {
      "description": "Filter by test outcome — 'pass', 'failure', 'error' or 'skip'.",
      "type": "string",
      "enum": [
        "pass",
        "failure",
        "error",
        "skip"
      ]
    },
    "durationMin": {
      "description": "Minimum test duration in seconds (maps to `duration_min`).",
      "type": "number"
    },
    "durationMax": {
      "description": "Maximum test duration in seconds (maps to `duration_max`).",
      "type": "number"
    },
    "page": {
      "description": "Page number for paginated results (1-based).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageSize": {
      "description": "Number of results per page (maps to `page_size`).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded24 tools
verifiedversion not recorded24 tools
verifiedversion not recorded24 tools
verifiedversion not recorded24 tools
verifiedversion not recorded24 tools
verifiedversion not recorded24 tools