Home / Servers / GitHub API / pulls_merge
Merge a pull request
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Merge a pull request > [!NOTE] > We recommend using the asynchronous merge API instead. This endpoint does not support stacked pull requests or merging with a merge queue. Merges a pull request into the base branch.… [PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge]
Name on the gateway: github_api__pulls_merge · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository without the .git extension. The… |
pull_number required | integer | The number that identifies the pull request. |
commit_title | string | Title for the automatic commit message. |
commit_message | string | Extra detail to append to automatic commit message. |
sha | string | SHA that pull request head must match to allow merge. |
merge_method | merge | squash | rebase | The merge method to use. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__pulls_merge",
"arguments": {
"owner": "…",
"repo": "…",
"pull_number": 0
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the merge a pull request tool with owner set to ….