list_connectable_repos
The CodePanel MCP tool that lists GitHub repositories you can push to and whether you have the admin right that connecting one needs.
On this page›
list_connectable_repos lists the GitHub repositories your signed-in account can push to, and says for each whether you may connect it. Call it before connect_repo to find the exact owner/name and to check canInstallWebhook, which is the admin right that connecting needs. It takes no inputs and needs the read scope.
When to call it
- When setting up a repository, to find the right name instead of guessing it.
- When
connect_repowas refused for permissions. The entry shows whethercanInstallWebhookisfalsefor that repository. - Not to see what is already connected. It lists what GitHub offers, whether or not CodePanel has it. Use
list_reposfor connected ones.
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 list comes from GitHub with the sign-in the CodePanel account holds, so it shows what that GitHub account can reach, not what your agent's local checkout points at.
What it returns
An array of repositories, each with:
| Field | Meaning |
|---|---|
fullName |
owner/name, the value to pass to connect_repo |
private |
Whether the repository is private |
defaultBranch |
Its default branch on GitHub |
canInstallWebhook |
true when your account has admin on it. Installing the webhook needs admin, so connect_repo fails for a repository where this is false |
Only repositories you can push to are listed.
Examples
A local test backend has no GitHub access, so there is no normal result to show here. This is what a caller sees when CodePanel holds no GitHub sign-in for the account:
{}
CodePanel: GitHub token not found. Please re-authenticate.
The same message appears when the stored GitHub sign-in has stopped working. Sign out of CodePanel and sign in again with GitHub, which a person does in the browser. If GitHub itself fails, you get a different message from the same call.
On success, each entry has the four fields in the table above, for example { "fullName": "acme/api", "private": true, "defaultBranch": "main", "canInstallWebhook": true }.
The same step without MCP
| Surface | Form |
|---|---|
| CLI | codepanel repos --connectable (CLI) |
| HTTP API | GET /github/repos |
What the server tells your agent
The description your agent reads when it lists the tools:
GitHub repositories the user can push to. Connecting one needs canInstallWebhook (admin).
Related
connect_repo: connect one of these.list_repos: the repositories CodePanel already reviews.- MCP server: the setup sequence these tools belong to.