cherry_pick_commit
Cherry-pick a specific commit to a target branch in a GitLab project by providing the project ID, commit SHA, and branch name.
Instructions
Cherry-pick a commit.
Args:
project_id: GitLab project ID
commit_sha: Commit SHA to cherry-pick
branch: Target branch for cherry-pick
token: GitLab Personal Access Token (optional)
ctx: MCP context (automatically injected)
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": {
"project_id": "<project_id>",
"commit_sha": "<commit_sha>",
"branch": "<branch>"
},
"name": "cherry_pick_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| commit_sha | Yes | ||
| branch | Yes | ||
| token | No | ||
| ctx | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |