Title: Add auto-merge support to pull request tools · Issue #2411 · github/github-mcp-server · GitHub
Open Graph Title: Add auto-merge support to pull request tools · Issue #2411 · github/github-mcp-server
X Title: Add auto-merge support to pull request tools · Issue #2411 · github/github-mcp-server
Description: NoteResponses generated with Claude Describe the feature or problem you'd like to solve There is no MCP equivalent for enabling auto-merge on a pull request (gh pr merge --auto --squash). This is a common workflow step after CI passes an...
Open Graph Description: NoteResponses generated with Claude Describe the feature or problem you'd like to solve There is no MCP equivalent for enabling auto-merge on a pull request (gh pr merge --auto --squash). This is a...
X Description: NoteResponses generated with Claude Describe the feature or problem you'd like to solve There is no MCP equivalent for enabling auto-merge on a pull request (gh pr merge --auto --squash). This ...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2411
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add auto-merge support to pull request tools","articleBody":"> [!Note]\n> Responses generated with Claude\n\n### Describe the feature or problem you'd like to solve\n\nThere is no MCP equivalent for enabling auto-merge on a pull request (`gh pr merge --auto --squash`). This is a common workflow step after CI passes and approvals are in place.\n\nCurrently the only way to enable auto-merge via MCP clients is to fall back to `gh` CLI, which breaks the MCP-first workflow pattern and causes permission prompt friction in tools like Claude Code.\n\n### Proposed solution\n\nAdd an `enable_auto_merge` method (or similar) to the pull request write tools. The GitHub GraphQL API exposes the [`enablePullRequestAutoMerge`](https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge) mutation:\n\n```graphql\nmutation($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) {\n enablePullRequestAutoMerge(input: {\n pullRequestId: $pullRequestId\n mergeMethod: $mergeMethod\n }) {\n pullRequest { autoMergeRequest { enabledAt mergeMethod } }\n }\n}\n```\n\nParameters:\n- `owner` (required): Repository owner\n- `repo` (required): Repository name\n- `pullNumber` (required): PR number\n- `mergeMethod` (optional): MERGE, SQUASH, or REBASE (default to repo setting)\n\nA corresponding `disablePullRequestAutoMerge` mutation exists and could be included.\n\n### Example prompts or workflows\n\n1. \"Enable auto-merge on PR #123 with squash\"\n2. \"Once CI passes, auto-merge this PR\"\n3. \"Set up auto-merge for all my approved PRs\"\n\n### Additional context\n\nThe existing `merge_pull_request` tool handles immediate merges, but auto-merge is a distinct operation — it queues the merge to happen automatically once all required status checks and approvals are satisfied. This is particularly useful in CI-heavy repos where PRs can't be merged until checks complete.","author":{"url":"https://github.com/kaovilai","@type":"Person","name":"kaovilai"},"datePublished":"2026-04-30T21:56:08Z","url":"https://github.com/github/github-mcp-server/issues/2411"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5300f5c8-6c75-97d6-b1b5-f6b5b023575d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBBE:17B76C:2E0F9A:3C6697:6B061660 |
| html-safe-nonce | 141114011df8c1e877e6276220e31560cfffbfe1aa03d9086bc1840ed04b8e0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkJFOjE3Qjc2QzoyRTBGOUE6M0M2Njk3OjZCMDYxNjYwIiwidmlzaXRvcl9pZCI6Ijg5NDE3NTc2OTQ1NDU4OTI5NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8059c92b37cb7e3ebd201da6eb967e8a5847ba6227f12ea383e1e59424ed0f47 |
| hovercard-subject-tag | issue:4361500644 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/2411/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a89db4b0b3fa5904b2bd8c42b79ed4a6d33de69fe09673d04a4c84912dd49174/github/github-mcp-server/issues/2411 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a89db4b0b3fa5904b2bd8c42b79ed4a6d33de69fe09673d04a4c84912dd49174/github/github-mcp-server/issues/2411 |
| og:image:alt | NoteResponses generated with Claude Describe the feature or problem you'd like to solve There is no MCP equivalent for enabling auto-merge on a pull request (gh pr merge --auto --squash). This is a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kaovilai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width