list_repos
The CodePanel MCP tool that lists connected repositories with their review settings, so an agent can check a repository is active before it reviews.
On this page›
list_repos returns the repositories connected to your CodePanel account with their review settings, so your agent can check that a repository is connected and read how it is configured before changing anything. It needs only the read scope and takes no inputs.
When to call it
- Before
trigger_reviewor a push, to confirm the repository is there andisActiveistrue. - Before
update_repo_settings, to read the currentsettings. Updates only change the fields you send, so the list is where you see what is already set. - After
connect_repoordisconnect_repo, to see the result. - When a review never starts.
settings.autoReview: false, or a repository missing from the list, are the usual causes.
Inputs
| Input | Type | Required | Description |
|---|
It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.
There are no inputs. The call returns every repository of the account, not one.
What it returns
An array with one object per repository:
| Field | Meaning |
|---|---|
_id |
CodePanel's id for the repository |
githubFullName, githubOwner, githubName, githubRepoId |
The GitHub identity. Pass githubFullName as repo to every other tool |
defaultBranch |
The repository's default branch |
isActive |
false for a repository you disconnected. It stays in the list |
settings |
Only the settings that have been set. A missing key means its default applies |
webhookId |
GitHub's id of the hook, when one is installed. No secrets are included |
learningDraft |
How the last learning draft run ended, once there has been one |
createdAt, updatedAt |
Milliseconds since the epoch |
settings can hold autoReview, maxAutoRounds, botMaxRounds, trustedBotAuthors, stepBackAfterRounds, idleNudgeHours, inlineSuggestions, modelOverrides, triggers, panelId, gate, agentFiles, reviewSwitches, escalation, crossFamilyReview, autoFix and autoApproveOnPass. update_repo_settings explains what each one does and what happens when it is absent.
The list includes disconnected repositories. Filter on isActive if you only want the ones being reviewed.
Examples
These responses come from a test account on a local backend, trimmed to the first repository. The seed data is not a recommendation: another repository in the same list has a different gate and no inlineSuggestions at all.
{}
[
{
"_id": "vn7ay3prrfjcfxgr51abx9fr518j7bsr",
"createdAt": 1794614457488,
"defaultBranch": "main",
"githubFullName": "codepanel-dev/web-app",
"githubName": "web-app",
"githubOwner": "codepanel-dev",
"githubRepoId": 900100000,
"isActive": true,
"settings": {
"autoReview": true,
"gate": "warning",
"inlineSuggestions": true
},
"updatedAt": 1794614457488
}
]
The full response had three repositories. settings here has no maxAutoRounds, which means that repository has no automatic round limit.
The same step without MCP
| Surface | Form |
|---|---|
| CLI | codepanel repos marks a disconnected repository and one with no webhook (CLI) |
| HTTP API | GET /repos |
What the server tells your agent
The description your agent reads when it lists the tools:
Repositories connected to CodePanel, with their review settings.
Related
list_connectable_repos: GitHub repositories you could connect.connect_repoanddisconnect_repo: change what is on this list.update_repo_settings: change a repository'ssettings.get_review_switches: the switches behindsettings.reviewSwitches, resolved.- MCP server: install, sign-in and every other tool.