gh-pr-mcp
v0.1.3MCP server exposing a focused set of GitHub PR and review helpers the gh CLI can't do in one shot
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gh_pr_delete_comment
delete an existing pull request review comment (inline or reply). comment_id: the id of the comment to delete (from pr_review_threads). repo: optional 'owner/repo' override.
| Parameter | Type | Description |
|---|---|---|
comment_id * | integer | |
repo | string | |
repo_path | string |
gh_pr_edit_comment
edit an existing pull request review comment (inline or reply). comment_id: the id of the comment to edit (from pr_review_threads). body: the new comment body. repo: optional 'owner/repo' override.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
comment_id * | integer | |
repo | string | |
repo_path | string |
gh_pr_list
list pull requests (gh pr list). state: 'open', 'closed', 'merged', or 'all'. repo_path: optional local checkout to resolve the repo from. Defaults to the current project directory (where Claude Code is running), so you rarely need to set it. Set it only to target a different checkout.
| Parameter | Type | Description |
|---|---|---|
author | string | |
base | string | |
label | string | |
limit | integer | |
repo | string | |
repo_path | string | |
state | string |
gh_pr_resolve_thread
mark a PR review thread as resolved. thread_id: GraphQL node id from pr_review_threads (the 'resolve_id' field). repo_path: optional local checkout to resolve the GitHub host from. Defaults to the current project directory (where Claude Code is running), so you rarely need to set it. Set it only to target a different checkout.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | |
repo_path | string |
gh_pr_unresolve_thread
mark a PR review thread as unresolved. thread_id: GraphQL node id from pr_review_threads (the 'resolve_id' field). repo_path: optional local checkout to resolve the GitHub host from. Defaults to the current project directory (where Claude Code is running), so you rarely need to set it. Set it only to target a different checkout.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | |
repo_path | string |
gh_pr_add_review
submit a PR review with optional inline comments via the GitHub API. event: 'APPROVE', 'REQUEST_CHANGES', or 'COMMENT'. body: top-level review body. inline_comments: list of dicts, each with: path (str) — relative file path line (int) — line number in the new file body (str) — comment text side (str) — 'RIGHT' (default) or 'LEFT' use this instead of pr_review when you need to attach comments to specific lines of the diff.
| Parameter | Type | Description |
|---|---|---|
event * | string | |
pr * | ||
body | string | |
inline_comments | ||
repo | string | |
repo_path | string |
gh_pr_reply_comment
reply to an existing inline review comment thread. comment_id: the id of the root comment to reply to (from pr_review_threads). body: your reply text.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
comment_id * | integer | |
pr * | ||
repo | string | |
repo_path | string |
gh_pr_view
view pull request details including description and comments (gh pr view). pr: PR number or branch name. repo_path: optional local checkout to resolve the repo from. Defaults to the current project directory (where Claude Code is running), so you rarely need to set it. Set it only to target a different checkout.
| Parameter | Type | Description |
|---|---|---|
pr * | ||
repo | string | |
repo_path | string |
gh_pr_checks
show CI check status for a pull request (gh pr checks).
| Parameter | Type | Description |
|---|---|---|
pr * | ||
repo | string | |
repo_path | string |
gh_pr_files
list files changed by a pull request as a compact diffstat (no patch blobs). Per file: status letter (A/D/M/R/C), path (with rename origin), +adds/-dels, plus a totals header. Use this to triage a PR you have NOT checked out — in a local worktree, `git diff --name-status origin/<base>...HEAD` is free and faster. repo_path: optional local checkout to resolve the repo from. Defaults to the current project directory (where Claude Code is running), so you rarely need to set it. Set it only to target a different checkout.
| Parameter | Type | Description |
|---|---|---|
pr * | ||
repo | string | |
repo_path | string |
gh_pr_review_threads
fetch inline review comment threads on a PR, structured for agent use. Returns JSON with a 'threads' list and a 'summary'. Each thread: thread_id — numeric comment id; pass to gh_pr_reply_comment to reply resolve_id — GraphQL node id; pass to gh_pr_resolve_thread / gh_pr_unresolve_thread resolved — true if the thread has been marked resolved on GitHub file, line — where the comment was placed in the diff outdated — true when the commented line no longer exists in the current diff author — {login, type} where type is 'human' or 'bot' body — root comme…
| Parameter | Type | Description |
|---|---|---|
pr * | ||
kind | string | |
repo | string | |
repo_path | string |
gh_run_view
view a workflow run's details or logs (gh run view).
| Parameter | Type | Description |
|---|---|---|
run_id * | ||
log | boolean | |
repo | string | |
repo_path | string |
gh_run_job_view
view details or logs for a specific job within a run (gh run view --job). job_name: numeric job id, or a case-insensitive partial match on the job names shown in run_view output. log: fetch the job's step logs (timestamps stripped, long output tailed).
| Parameter | Type | Description |
|---|---|---|
run_id * | ||
job_name | string | |
log | boolean | |
repo | string | |
repo_path | string |