GitHub merge pr

github__merge_pr

Access

Requires a project integration connection for github.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
ownerstringYesRepository owner
repostringYesRepository name
pull_numbernumberYesPull request number to merge
commit_titlestringNoMerge commit title
commit_messagestringNoMerge commit message
merge_methodstringNoMerge method: merge, squash, or rebase

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "github__merge_pr",
    "arguments": {
      "owner": "example",
      "repo": "example",
      "pull_number": 0
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the github integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "description": "Repository owner"
    },
    "repo": {
      "type": "string",
      "description": "Repository name"
    },
    "pull_number": {
      "type": "number",
      "description": "Pull request number to merge"
    },
    "commit_title": {
      "type": "string",
      "description": "Merge commit title"
    },
    "commit_message": {
      "type": "string",
      "description": "Merge commit message"
    },
    "merge_method": {
      "type": "string",
      "description": "Merge method: merge, squash, or rebase"
    }
  },
  "required": [
    "owner",
    "repo",
    "pull_number"
  ],
  "description": "Arguments for the github__merge_pr tool."
}