github_mcp.list_branches
Lists local and remote branches with commit SHAs for an allowlisted repository so you can identify a base branch before creating or comparing work.
Instructions
List up to 200 local and remote refs with commit SHAs for an allowlisted repository. Refreshes the local read cache from the source; does not publish changes. Use to identify a base branch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository": "<repository>"
},
"name": "github_mcp.list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | Allowlisted owner/repo identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| message | No | ||
| error_code | No |