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.
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
accountstringoptionalConnected GitHub login to act as. Defaults to the repo's deploy identity when it names one, else the Primary account. On a repo with a deploy identity, any other login is refused.acknowledgedstring[]optionalBuilt-in outbound checks you are knowingly relaxing for THIS send: "humble-ask", "short-anchor-hyperlinks" or "lead-the-way". Name a family only when the user wants the text sent as written after its refusal; acknowledgedReason is…acknowledgedReasonstringoptionalWhy the acknowledged check is relaxed for this send, in one line. Logged with the rail and the phrases it let through.confirmbooleanrequiredMust be true. Closing a pull request is destructive-class and needs an explicit go-ahead for this pull request.forceobjectoptionalClose even though some commits on the head are not on the base branch. Only with supersededBy; the comment names the commits.ownerstringrequiredRepository ownerpullNumberintegerrequiredThe pull request to closereasonstringrequiredWhy it is closed, one or two plain sentences. Posted as the signed comment.repostringrequiredRepository namesupersededByintegeroptionalThe pull request that carries this one's work. Linked in the comment and turns on the supersede check.
Returns
The registry does not declare a return shape.
Declared limits
owner: minimum length 1pullNumber: greater than 0pullNumber: maximum 9007199254740991reason: minimum length 1repo: minimum length 1supersededBy: greater than 0supersededBy: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- close PR N
- this PR is superseded
- close the ones 6986 carried
- close the superseded PRs
Pair it with
The verbs that finish the job.
Questions
What does closePullRequest do?
Close an open pull request on a connected GitHub repo, the rail lever for a superseded or abandoned PR. It is one of the tools The Cloud MCP server gives every connected AI.
How do I use closePullRequest from Claude or ChatGPT?
Connect your AI to The Cloud at https://mcp.thecloud.so/mcp and sign in once. Then ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "close PR N", and it calls closePullRequest.
Is closePullRequest safe to let an AI call?
closePullRequest widens who can see or receive something, so the owner approves every call explicitly. An AI cannot approve it for itself. It reaches a system outside The Cloud on your behalf.
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.