get_pull_context
Get context for a pull request with reviews.
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 retrieve context for. |
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": "get_pull_context",
"arguments": {
"repo": "teams/acme/webapp",
"pull_number": 7
}
}
}'
Response
Returns the pull request object along with its reviews, including reviewer details, statuses, and review bodies. The response is returned as a text content block inside the standard MCP tool result.