Pull main branch
github_pull_mainFetches and fast-forwards the base branch of a local repository from its configured remote.
Instructions
Fetch, switch to the base branch, and fast-forward pull from the configured remote.
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": {
"repoPath": "<repoPath>"
},
"name": "github_pull_main"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote | No | Git remote name. Defaults to GITHUB_MCP_DEFAULT_REMOTE or origin. | |
| repoPath | Yes | Path to a local repository inside the configured allowed roots. | |
| baseBranch | No | Base branch to update. Defaults to GITHUB_MCP_DEFAULT_BASE_BRANCH or main. |