{"openapi":"3.1.0","info":{"title":"Codecov (BYOK) API","version":"0.1.0","description":"Codecov (BYOK) lets an AI assistant read your own Codecov data through the Codecov API with a key you supply (API access token). Read-only: 10 tools (list_owners, list_repositories, get_repository, list_branches, list_commits, get_coverage_totals, list_pull_requests, get_coverage_trend, list_flags, list_components). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-codecov.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-codecov/docs"},"termsOfService":"https://connectorbay.com/byok-codecov/terms"},"servers":[{"url":"https://byok-codecov.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-codecov/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_owners":{"post":{"operationId":"list_owners","summary":"List the owners (users and organizations) on a git provider that the Codecov token can access, with username and name. U","description":"List the owners (users and organizations) on a git provider that the Codecov token can access, with username and name. Use for \"Which GitHub owners does my Codecov account have access to\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service"],"title":"list_ownersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_repositories":{"post":{"operationId":"list_repositories","summary":"List an owner's repositories on Codecov with language, default branch, active flag, last update and coverage totals. Use","description":"List an owner's repositories on Codecov with language, default branch, active flag, last update and coverage totals. Use for \"What is the coverage of each repository in my Codecov organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to list only repositories that have uploaded coverage.","title":"Active"},"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only repositories whose name contains this text.","title":"Search"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service","owner_username"],"title":"list_repositoriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_repository":{"post":{"operationId":"get_repository","summary":"Get one Codecov repository: language, default branch, active flag, last update and overall coverage totals. Use for \"Wha","description":"Get one Codecov repository: language, default branch, active flag, last update and overall coverage totals. Use for \"What is the overall coverage of codecov/codecov-cli\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"}},"required":["service","owner_username","repo_name"],"title":"get_repositoryArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_branches":{"post":{"operationId":"list_branches","summary":"List a repository's branches known to Codecov with last update time. Use for \"Which branches of my repository does Codec","description":"List a repository's branches known to Codecov with last update time. Use for \"Which branches of my repository does Codecov know about\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service","owner_username","repo_name"],"title":"list_branchesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_commits":{"post":{"operationId":"list_commits","summary":"List a repository's commits seen by Codecov (optionally one branch) with message, author, CI result and coverage totals.","description":"List a repository's commits seen by Codecov (optionally one branch) with message, author, CI result and coverage totals. Use for \"What was the coverage on the latest commits of my default branch\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"branch":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only commits of this branch.","title":"Branch"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service","owner_username","repo_name"],"title":"list_commitsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_coverage_totals":{"post":{"operationId":"get_coverage_totals","summary":"Get the coverage totals of a repository for its latest commit, or for a commit sha, branch, flag or path: lines, hits, m","description":"Get the coverage totals of a repository for its latest commit, or for a commit sha, branch, flag or path: lines, hits, misses, partials and coverage percentage. Use for \"What is the current line coverage of my repository\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"branch":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Use the head commit of this branch.","title":"Branch"},"sha":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Use this commit sha.","title":"Sha"},"flag":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Restrict to this coverage flag.","title":"Flag"},"path":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Restrict to files under this path.","title":"Path"}},"required":["service","owner_username","repo_name"],"title":"get_coverage_totalsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_pull_requests":{"post":{"operationId":"list_pull_requests","summary":"List a repository's pull requests seen by Codecov with title, state, CI result and base and head coverage. Use for \"Did ","description":"List a repository's pull requests seen by Codecov with title, state, CI result and base and head coverage. Use for \"Did coverage go down in recent pull requests of my repository\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"state":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Pull request state to filter by, for example open, merged or closed.","title":"State"},"start_date":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only pull requests updated after this date (YYYY-MM-DD).","title":"Start Date"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service","owner_username","repo_name"],"title":"list_pull_requestsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_coverage_trend":{"post":{"operationId":"get_coverage_trend","summary":"Get the coverage trend of a repository over time: minimum, maximum and average coverage per day, week or month interval.","description":"Get the coverage trend of a repository over time: minimum, maximum and average coverage per day, week or month interval. Use for \"How has the coverage of my repository trended over the last month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"interval":{"description":"Bucket size: 1d, 7d or 30d.","enum":["1d","7d","30d"],"title":"Interval","type":"string"},"branch":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only this branch (default branch if omitted).","title":"Branch"},"start_date":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the range (ISO 8601 date or time).","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"End of the range (ISO 8601 date or time).","title":"End Date"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service","owner_username","repo_name","interval"],"title":"get_coverage_trendArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_flags":{"post":{"operationId":"list_flags","summary":"List a repository's coverage flags with the coverage percentage of each. Use for \"What coverage flags does my repository","description":"List a repository's coverage flags with the coverage percentage of each. Use for \"What coverage flags does my repository have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; the answer's next field is non-empty while more pages exist.","title":"Page"}},"required":["service","owner_username","repo_name"],"title":"list_flagsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_components":{"post":{"operationId":"list_components","summary":"List a repository's Codecov components with the coverage percentage of each, for the latest commit or a given branch or ","description":"List a repository's Codecov components with the coverage percentage of each, for the latest commit or a given branch or sha. Use for \"What is the coverage of each component in my repository\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Git provider where the repository lives: github, gitlab, bitbucket, or their enterprise/server variants.","enum":["github","github_enterprise","gitlab","gitlab_enterprise","bitbucket","bitbucket_server"],"title":"Service","type":"string"},"owner_username":{"description":"Username of the owner (user or organization) on the git provider, for example 'codecov'.","maxLength":100,"title":"Owner Username","type":"string"},"repo_name":{"description":"Repository name without the owner, for example 'codecov-cli'.","maxLength":100,"title":"Repo Name","type":"string"},"branch":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Use the head commit of this branch.","title":"Branch"},"sha":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Use this commit sha.","title":"Sha"}},"required":["service","owner_username","repo_name"],"title":"list_componentsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}