publish_merge_request
Publish a GitHub Pull Request or GitLab Merge Request with a title and body. Auto-detects the platform from the remote URL and uses environment tokens for authentication.
Instructions
Publish a Pull Request (GitHub) or Merge Request (GitLab) with the given title and body. The platform is auto-detected from the git remote URL. Auth tokens are read from environment variables: GITHUB_TOKEN or GITLAB_TOKEN.
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": {
"cwd": "<cwd>",
"title": "<title>",
"body": "<body>"
},
"name": "publish_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory — must be inside a git repository | |
| base | No | Target branch. Defaults to the repository's default branch. | |
| body | Yes | Body / description of the PR/MR | |
| draft | No | Whether to create the PR/MR as a draft | |
| title | Yes | Title of the PR/MR |