Skip to content

Add a conflict-resolution /merge capability to the ProPR MCP surface. #2916

Closed

Description

@propr-dev

Add a conflict-resolution /merge capability to the ProPR MCP surface.

Problem: today the MCP surface only exposes update_pull_request_branch, which maps to a clean fast-forward update from base. GitHub refuses it with 422 GITHUB_REJECTED "merge conflict" when the branch has conflicts with base. There is no MCP equivalent of the /merge slash command that actually resolves conflicts, so an MCP caller hits a dead end whenever a PR branch has diverged with conflicts.

Desired behaviour:

  • Add an MCP tool that triggers the same conflict-resolving /merge workflow that posting a /merge comment does (merge base into the PR branch and resolve conflicts via an agent), rather than the plain fast-forward path.
  • Take repository, pullRequest, idempotencyKey and expectedHead (reject on head mismatch), consistent with the other PR-write tools like stop_ultrafix and start_ultrafix.
  • Return a durable receipt and reuse the existing comment-driven start path rather than reimplementing the merge logic.
  • Keep update_pull_request_branch as-is for the clean fast-forward case.

Add tests and update the MCP tool docs and coverage table.


Submitted by @integry through ProPR.

Activity

  1. propr-dev commented on Oct 9, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2916/claude-opus-5-5-add-a-conflict-resolution-20261009-0954-ctz
    • Base Branch: main
    • Worktree: issue-2916-20261009-0954-claude-opus-5-5-ctz

    🔍 Track Task Execution

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions