Title: Add merge queue support to pull request tools (enqueue, dequeue, queue status) · Issue #3669 · github/github-mcp-server · GitHub
Open Graph Title: Add merge queue support to pull request tools (enqueue, dequeue, queue status) · Issue #3669 · github/github-mcp-server
X Title: Add merge queue support to pull request tools (enqueue, dequeue, queue status) · Issue #3669 · github/github-mcp-server
Description: Describe the feature or problem you'd like to solve There is no way to interact with a branch's merge queue through the MCP server. merge_pull_request calls the REST merge endpoint. On a base branch protected by a merge queue ruleset, Gi...
Open Graph Description: Describe the feature or problem you'd like to solve There is no way to interact with a branch's merge queue through the MCP server. merge_pull_request calls the REST merge endpoint. On a base branc...
X Description: Describe the feature or problem you'd like to solve There is no way to interact with a branch's merge queue through the MCP server. merge_pull_request calls the REST merge endpoint. On a ba...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3669
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add merge queue support to pull request tools (enqueue, dequeue, queue status)","articleBody":"### Describe the feature or problem you'd like to solve\n\nThere is no way to interact with a branch's **merge queue** through the MCP server.\n\n`merge_pull_request` calls the REST merge endpoint. On a base branch protected by a merge queue ruleset, GitHub rejects that call: the only supported path is to enqueue the pull request and let the queue merge it. Today an MCP client has to fall back to `gh pr merge --auto` or raw GraphQL for that step, which breaks the MCP-first workflow.\n\nThis request is intentionally **separate from auto-merge** (#2411). Auto-merge is a per-PR flag that merges once requirements pass. A merge queue is a branch-level mechanism with its own queue entries, ordering, and state. They use different GraphQL mutations and should be modelled as different tools, even though a client may use both.\n\n### Proposed solution\n\nAdd merge queue support to the `pull_requests` toolset:\n\n1. **`enqueue_pull_request`** (write), wrapping [`enqueuePullRequest`](https://docs.github.com/en/graphql/reference/mutations#enqueuepullrequest)\n - `owner`, `repo`, `pullNumber` (required)\n - `jump` (optional, boolean): place the entry at the front of the queue\n - `expectedHeadSha` (optional): maps to `expectedHeadOid`, mirrors the existing `merge_pull_request` safety parameter\n - Returns the created merge queue entry: position, state, enqueued time, and the `solo`/`jump` flags\n\n2. **`dequeue_pull_request`** (write), wrapping [`dequeuePullRequest`](https://docs.github.com/en/graphql/reference/mutations#dequeuepullrequest)\n - `owner`, `repo`, `pullNumber` (required)\n - Returns the removed entry\n\n3. **`get_merge_queue_status`** method on `pull_request_read` (read), exposing the PR's [`mergeQueueEntry`](https://docs.github.com/en/graphql/reference/objects#mergequeueentry)\n - Returns whether the PR is queued, its position, state (`QUEUED`, `AWAITING_CHECKS`, `LOCKED`, `MERGEABLE`, `UNMERGEABLE`), and the estimated time to merge if available\n - Returns `null` cleanly when the base branch has no merge queue, so clients can decide between `merge_pull_request` and `enqueue_pull_request`\n\nBenefits: agents can complete the full PR lifecycle on repositories that require a merge queue without leaving MCP, and can report queue progress back to the user.\n\n### Example prompts or workflows (for tools/toolsets only)\n\n1. \"Add PR #XXX to the merge queue once it is approved.\"\n2. \"Is PR #XXX in the merge queue? What position is it in and is anything blocking it?\"\n3. \"Remove PR #XXX from the merge queue, I need to push a fix first.\"\n4. \"For every approved PR of mine in this repo, enqueue it if the base branch uses a merge queue, otherwise merge it directly.\"\n5. \"This hotfix is urgent, enqueue it at the front of the queue.\"\n\n### Additional context\n\n- The two mutations are the same ones used by the `gh` CLI and the web UI, so the semantics are already familiar to users.\n- `merge_pull_request` could additionally return a clearer error when the base branch requires a merge queue, pointing the client to `enqueue_pull_request`. That is a nice-to-have on top of the three items above.\n- Merge queue state is currently readable only indirectly, via the `merge_queue` rule in governance ruleset output. That tells a client the queue exists, but not whether a given PR is in it.\n","author":{"url":"https://github.com/ben181231","@type":"Person","name":"ben181231"},"datePublished":"2026-11-04T08:30:52Z","url":"https://github.com/github/github-mcp-server/issues/3669"}
| 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:d2934910-6609-f3f1-07b3-6d9baec21757 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97F6:17A21E:30885A:3F8C18:6B061656 |
| html-safe-nonce | 9bd5ebcdf747885a0e5dbaa046098e18bad288aab0b8033bf84836e23c30251f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0Y2OjE3QTIxRTozMDg4NUE6M0Y4QzE4OjZCMDYxNjU2IiwidmlzaXRvcl9pZCI6IjYxOTMyMDkzNzEyMDQwNTA3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bbf14e20240a4b42c77dd4b114ac494faa23c2529ebeed67f85b617d5f59efa5 |
| hovercard-subject-tag | issue:6199287730 |
| 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/3669/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51c107dce3b1bbf89265e3881f337e48fcc4033ce951378ebe744d9220621db1/github/github-mcp-server/issues/3669 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51c107dce3b1bbf89265e3881f337e48fcc4033ce951378ebe744d9220621db1/github/github-mcp-server/issues/3669 |
| og:image:alt | Describe the feature or problem you'd like to solve There is no way to interact with a branch's merge queue through the MCP server. merge_pull_request calls the REST merge endpoint. On a base branc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ben181231 |
| 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