Skip to content

Add tools to enable/disable pull request auto-merge #1

Closed

Description

@plthomasva

Problem

The MCP server exposes merge_pull_request (an immediate merge) but provides no way to enable or disable GitHub's pull request auto-merge (the GraphQL enablePullRequestAutoMerge / disablePullRequestAutoMerge mutations).

For agent workflows this is a real gap: an agent that prepares a PR and wants it to merge once required checks pass has only two options today — merge immediately (bypassing checks that are still running) or leave the PR open for a human to merge by hand. Auto-merge is exactly the mechanism designed for "merge when green", and it is unreachable through the server.

Request

Add tools (or a method on an existing PR write tool) to:

  • Enable auto-merge for a PR, with merge method (merge/squash/rebase) and optional commit headline/body, mirroring the GraphQL mutation inputs.
  • Disable auto-merge for a PR.
  • Ideally, surface whether auto-merge is enabled (and its configured method) in pull_request_read output.

Context

Encountered while running a series of test-only PRs through the Muse GitHub connector: the intent was "set auto-merge and let them land as checks pass"; the only available path was an immediate squash merge via merge_pull_request.

Filed in this fork (upstream filing was not possible through the connector — the Muse GitHub App is not installed on the upstream repo) as the working issue for a planned contribution.

Activity

  1. plthomasva commented on Nov 22, 2026

    @plthomasva
    OwnerAuthor

    Implemented and submitted upstream: github#3926 (Fixes upstream github#2411). Branch: feat/pull-request-auto-merge-tools. Closing this fork tracker in favor of the upstream PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions