| Crates.io | pr_comments |
| lib.rs | pr_comments |
| version | 0.5.2 |
| created_at | 2025-09-23 22:01:12.79489+00 |
| updated_at | 2026-01-04 14:58:46.908859+00 |
| description | Fetch GitHub PR comments via CLI and MCP |
| homepage | https://github.com/allisoneer/agentic_auxilary |
| repository | https://github.com/allisoneer/agentic_auxilary |
| max_upload_size | |
| id | 1852154 |
| size | 193,156 |
A tool to fetch GitHub PR comments and reply to review comments via CLI and MCP interfaces.
cd pr_comments
cargo install --path .
# Get review comments (thread-paginated, unresolved by default)
pr_comments comments --pr 123
# Include resolved review comments
pr_comments comments --pr 123 --include-resolved
# Filter by comment source (robot, human, or all)
pr_comments comments --pr 123 --comment-source-type robot
# Reply to a review comment (auto-prefixes with AI identifier)
pr_comments reply --comment-id 12345 --body "Thanks for the feedback!"
# List PRs
pr_comments list-prs --state open
Comments are paginated at the thread level (parent + all replies stay together). By default, 10 threads are returned per call. Repeated MCP calls with the same parameters return the next page.
Configure page size via environment variable:
export PR_COMMENTS_PAGE_SIZE=20
--include-resolved to see all comments including resolved onesUse --comment-source-type to filter by who created the comment:
robot - Only comments from botshuman - Only comments from humansall - All comments (default)# Start MCP server
pr_comments mcp
Available MCP tools:
get_comments - Get review comments with thread-level paginationadd_comment_reply - Reply to a review comment (auto-prefixes with AI identifier)list_prs - List pull requestsSet the GITHUB_TOKEN or GH_TOKEN environment variable:
export GITHUB_TOKEN=your_github_token
Alternatively, the tool will use credentials from gh auth login if available.
Note: The token needs the repo scope for private repositories.
If not in a git repository, specify the repository:
pr_comments --repo owner/repo comments