You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add get_reviewers and get_status_checks methods to pull_request_read
Extends the pull_request_read tool with two new methods:
- get_reviewers: returns pending reviewer requests (both individual users
and teams) using the PullRequests.ListReviewers API. This fills a gap
in the existing toolset — requested team reviewers were previously
not exposed anywhere in the MCP server.
- get_status_checks: returns a unified view of all status checks for a
PR's head commit by combining legacy commit statuses (e.g. Atlantis
plan/policy results) and modern GitHub Actions check runs into a single
response with a top-level combined_state.
New output types added to minimal_types.go:
- MinimalReviewerUser, MinimalReviewerTeam, MinimalPRReviewers
- MinimalCommitStatus, MinimalStatusChecks
Adds unit tests for both methods (success and API-failure paths),
regenerates the pull_request_read toolsnap, and updates the generated
README tool documentation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1189,6 +1189,8 @@ The following sets of tools are available:
1189
1189
7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.
1190
1190
8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
1191
1191
9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.
1192
+
10. get_reviewers - Get the list of requested reviewers (users and teams) for a pull request who have not yet submitted a review.
1193
+
11. get_status_checks - Get a unified view of all status checks for a pull request, combining legacy commit statuses and modern check runs.
1192
1194
(string, required)
1193
1195
-`owner`: Repository owner (string, required)
1194
1196
-`page`: Page number for pagination (min 1) (number, optional)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/pull_request_read.snap
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
"type": "string"
13
13
},
14
14
"method": {
15
-
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get combined commit status of a head commit in a pull request.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_commits - Get the list of commits on a pull request. Use with pagination parameters to control the number of results returned.\n 6. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns threads with metadata (isResolved, isOutdated, isCollapsed) and their associated comments. Use cursor-based pagination (perPage, after) to control results.\n 7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.\n 8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n 9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.\n",
15
+
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get combined commit status of a head commit in a pull request.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_commits - Get the list of commits on a pull request. Use with pagination parameters to control the number of results returned.\n 6. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns threads with metadata (isResolved, isOutdated, isCollapsed) and their associated comments. Use cursor-based pagination (perPage, after) to control results.\n 7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.\n 8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n 9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.\n 10. get_reviewers - Get the list of requested reviewers (users and teams) for a pull request who have not yet submitted a review.\n 11. get_status_checks - Get a unified view of all status checks for a pull request, combining legacy commit statuses and modern check runs.\n",
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+120-1Lines changed: 120 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,10 @@ Possible options:
41
41
7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.
42
42
8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
43
43
9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.
44
+
10. get_reviewers - Get the list of requested reviewers (users and teams) for a pull request who have not yet submitted a review.
45
+
11. get_status_checks - Get a unified view of all status checks for a pull request, combining legacy commit statuses and modern check runs.
0 commit comments