codecov

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

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
100%
命名の品質
79%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(1)

  • LOWTool 'codecov_get_flag_coverage_trend' name length outside 3-30 rangecodecov_get_flag_coverage_trend 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~7,590トークン数(ツール定義)
~2.9 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 5.93%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

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

リモートエンドポイント

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

できること

ツール一覧

ツール(24)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢codecov_list_service_owners(service, page, pageSize)

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

入力スキーマ

{
  "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}/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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}/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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}/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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}/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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}/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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.

入力スキーマ

{
  "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}/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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.

入力スキーマ

{
  "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/.

入力スキーマ

{
  "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"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 24 件