GitHub & Code

closePullRequest

Close Pull Request

Close an open pull request on a connected GitHub repo, the rail lever for a superseded or abandoned PR.

writedestructiveconsentexternal

Ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "close PR N", and it calls closePullRequest.

Example call

The MCP tools/call params, with the required arguments only.

{
  "arguments": {
    "confirm": true,
    "owner": "<owner>",
    "pullNumber": 1,
    "reason": "<reason>",
    "repo": "<repo>"
  },
  "name": "closePullRequest"
}

Arguments

Returns

The registry does not declare a return shape.

Declared limits

Ask for it

The Cloud routes these requests to this verb.

Pair it with

The verbs that finish the job.

Questions

Connect

One endpoint gives your AI this tool and every other one: connect Claude, ChatGPT, Cursor or Gemini, read what The Cloud is, or see pricing.