close_pull

Close a pull request 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.

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": "close_pull",
      "arguments": {
        "repo": "teams/acme/webapp",
        "pull_number": 42
      }
    }
  }'

Response

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