update_pull

Update pull metadata, refs, or visibility from MCP.

Parameters

Name Type Required Description
repo string Yes Repository path. Format: teams/team_slug/repo_slug or username/repo_slug.
pull_number integer Yes Pull request number within the repo.
source_ref string No Updated source branch name.
target_ref string No Updated target branch name.
title string No Updated pull title.
body string No Updated pull body markdown.
visibility string No public or private.

Example

curl -X POST https://pearing.example/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "update_pull",
      "arguments": {
        "repo": "teams/acme/webapp",
        "pull_number": 42,
        "title": "Add auth flow"
      }
    }
  }'

Response

Returns the created or updated pull object inside the standard MCP tool result.