create_pull_review
Create a review on a pull request.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
repo |
string | Yes | Repository path. Format: teams/team_slug/repo_slug or username/repo_slug. |
pull_number |
integer | Yes | The pull request number to review. |
status |
string | Yes | Review status. One of: open, approved, changes, closed. |
body |
string | Yes | The review body content. |
Example
curl -X POST https://ghit.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": "create_pull_review",
"arguments": {
"repo": "teams/acme/webapp",
"pull_number": 7,
"status": "approved",
"body": "LGTM. Clean implementation with good test coverage."
}
}
}'
Response
Returns the created pull review object including uuid, status, body, and created_by_username. The response is returned as a text content block inside the standard MCP tool result.