codacy_repositories
Retrieve repository health metrics including grade, coverage, complexity, and issue count. Manage branches and set up new repositories for analysis.
Instructions
[INSTRUCTIONS] Returns the overall repository health: Grade (A-F scale), coverage %, complexity, issue count. Common mistake: assuming Grade=A means zero issues — the grade is a composite score. Use codacy_issues.list for the actual issue breakdown.
Get repository details with analysis metrics (grade, coverage, complexity, issues).. Select operation via the action parameter. Actions: get, list_branches, setup
Workflow:
'get': [INSTRUCTIONS] Returns the overall repository health: Grade (A-F scale), coverage %, complexity, issue count. Common mistake: assuming Grade=A means zero issues — the grade is a composite score. Use codacy_issues.list for the actual issue breakdown.
Get repository details with analysis metrics (grade, coverage, complexity, issues).
'list_branches': [INSTRUCTIONS] Lists all branches tracked by Codacy analysis. The default branch is the one being analyzed — other branches may have limited or no analysis data.
List branches of a repository.
'setup': [INSTRUCTIONS] Use ONLY when the user explicitly wants to add a new repository for analysis. This is a multi-step action: it will (1) find the organization, (2) join it if needed, (3) find the repository, and (4) add or follow it. Common mistake: calling setup on an already-tracked repository — it will return a success message without re-adding. This action invalidates organization and repository caches.
Add or follow a repository in Codacy. This sets up analysis tracking. [DESTRUCTIVE] [Cache-Control: no-store]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which operation to perform | |
| provider | No | Git provider. For: get, list_branches, setup | |
| repository | No | Repository name. For: get, list_branches, setup | |
| organization | No | Organization name. For: get, list_branches, setup |