Title: feat(pull_requests): add merge queue tools by Mystery01092000 · Pull Request #3868 · github/github-mcp-server · GitHub
Open Graph Title: feat(pull_requests): add merge queue tools by Mystery01092000 · Pull Request #3868 · github/github-mcp-server
X Title: feat(pull_requests): add merge queue tools by Mystery01092000 · Pull Request #3868 · github/github-mcp-server
Description: Summary Adds merge queue support to the pull_requests toolset: two new tools, enqueue_pull_request and dequeue_pull_request, plus a get_merge_queue_status method on pull_request_read. Why On a base branch that requires a merge queue, GitHub rejects the REST merge that merge_pull_request uses. Until now an MCP client had to fall back to gh pr merge --auto or raw GraphQL to land the pull request. This follows the proposal in the issue, and keeps merge queues separate from auto-merge (#2411). Fixes #3669 What changed enqueue_pull_request (write) wraps enqueuePullRequest. It takes owner, repo and pullNumber, plus optional jump (front of the queue) and expectedHeadSha (sent as expectedHeadOid, mirroring merge_pull_request). It returns the merge queue entry: id, position, state, enqueued_at, estimated_time_to_merge, jump and solo. jump: false is not sent. dequeue_pull_request (write) wraps dequeuePullRequest and returns the removed entry, or null when GitHub returns none. pull_request_read get_merge_queue_status reads isMergeQueueEnabled, isInMergeQueue and mergeQueueEntry. It returns {"merge_queue_enabled": bool, "in_merge_queue": bool, "entry": {...}}, with entry omitted when the pull request isn't queued. The issue suggested returning null when there is no merge queue. I went with an explicit object instead: merge_queue_enabled: false tells a client to use merge_pull_request, while merge_queue_enabled: true, in_merge_queue: false tells it to enqueue. A bare null can't tell those two apart. Happy to change it if you prefer the other shape. The write tools look up the pull request's node ID with the existing resolvePullRequestNodeID. Typed outputs follow the existing consolidated pull request conventions: a new variant in pullRequestReadOutputSchema, a nullable entry schema for the write tools, and shape-aware field descriptions, including the state enum QUEUED | AWAITING_CHECKS | MERGEABLE | UNMERGEABLE | LOCKED. The pull-request-authoring skill maps both tools as optional. Its decision points now say when to enqueue instead of merging, and that the same confirmation applies. The tools are registered in tools.go, with toolsnaps and README regenerated. Not included: the issue's nice-to-have of a clearer merge_pull_request error pointing to enqueue_pull_request. It can be a follow-up. MCP impact No tool or API changes Tool schema or behavior changed: pull_request_read gains the get_merge_queue_status method. The other methods are unchanged. New tool added: enqueue_pull_request and dequeue_pull_request. Prompts tested (tool changes only) "Is microsoft/vscode PR #348609 in the merge queue? What position is it in?" I ran this against live GitHub through the locally built server over stdio. It returned {"merge_queue_enabled":true,"in_merge_queue":true,"entry":{"id":"MQE_…","position":1,"state":"AWAITING_CHECKS","enqueued_at":"2026-11-16T19:10:10Z","estimated_time_to_merge":832,"jump":false,"solo":false}}. "Does github/github-mcp-server use a merge queue for PR #3852?" This returned {"merge_queue_enabled":false,"in_merge_queue":false}. "Add PR #42 to the merge queue at the front", and "Remove PR #42 from the merge queue, I need to push a fix first." These are covered by mocked GraphQL tests (exact mutation inputs and response mapping). I couldn't run the mutations live: merge queues are only available on organization-owned repositories, and I didn't want to enqueue pull requests in a repository I don't own. Security / limits No security or limits impact Auth / permissions considered: both write tools require repo, like merge_pull_request. The status method uses the same PublicRead(repo) scope and IFC labelling as the other pull_request_read methods. Data exposure, filtering, or token/size limits considered Tool renaming I am renaming tools as part of this PR (e.g. a part of a consolidation effort) I have added the new tool aliases in deprecated_tool_aliases.go I am not renaming tools as part of this PR Lint & tests Linted locally with ./script/lint: golangci-lint v2.14.0 reports 0 issues, and gofmt -s -l . is clean. Tested locally with ./script/test: go test ./... passes with Go 1.27.4. New tests are in pullrequests_merge_queue_test.go (mutation inputs, including jump/expectedHeadOid, GraphQL error paths, a missing pull request, output schemas, the timestamp conversion), plus typed end-to-end cases in typed_consolidated_pull_request_outputs_test.go. Docs Not needed Updated (README / docs / examples): regenerated with script/generate-docs. Skills Updated relevant skills or confirmed no bundled skill applies: pull-request-authoring (tool mapping and a merge-queue decision point).
Open Graph Description: Summary Adds merge queue support to the pull_requests toolset: two new tools, enqueue_pull_request and dequeue_pull_request, plus a get_merge_queue_status method on pull_request_read. Why On a base...
X Description: Summary Adds merge queue support to the pull_requests toolset: two new tools, enqueue_pull_request and dequeue_pull_request, plus a get_merge_queue_status method on pull_request_read. Why On a base...
Opengraph URL: https://github.com/github/github-mcp-server/pull/3868
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ad88b1b4-bca5-ee01-6a1d-0cf91a3c3e9c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 88F0:395268:37134D:480211:6B0617CA |
| html-safe-nonce | 17cab2a08c1647686cd89458bb4eb2b361876a805e7c03973d4cec571761c28e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEYwOjM5NTI2ODozNzEzNEQ6NDgwMjExOjZCMDYxN0NBIiwidmlzaXRvcl9pZCI6IjM2MzQ3MzYzOTA5NTQ0MjQyNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 279b3eb62998a437f950c6bd385a5d62bf338c84178f3ada06d7c2802b21482d |
| hovercard-subject-tag | pull_request:5343566047 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/github/github-mcp-server/pull/3868/files |
| twitter:image | https://avatars.githubusercontent.com/u/43115768?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/43115768?s=400&v=4 |
| og:image:alt | Summary Adds merge queue support to the pull_requests toolset: two new tools, enqueue_pull_request and dequeue_pull_request, plus a get_merge_queue_status method on pull_request_read. Why On a base... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width