pr_comments

Crates.iopr_comments
lib.rspr_comments
version0.5.2
created_at2025-09-23 22:01:12.79489+00
updated_at2026-01-04 14:58:46.908859+00
descriptionFetch GitHub PR comments via CLI and MCP
homepagehttps://github.com/allisoneer/agentic_auxilary
repositoryhttps://github.com/allisoneer/agentic_auxilary
max_upload_size
id1852154
size193,156
Allison Durham (allisoneer)

documentation

README

pr_comments

A tool to fetch GitHub PR comments and reply to review comments via CLI and MCP interfaces.

Installation

cd pr_comments
cargo install --path .

Usage

CLI Mode

# 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

Thread-Level Pagination

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

Resolution Filtering

  • Review comments can be part of conversation threads that can be marked as resolved
  • By default, resolved comments are filtered out to focus on active discussions
  • Use --include-resolved to see all comments including resolved ones

Comment Source Filtering

Use --comment-source-type to filter by who created the comment:

  • robot - Only comments from bots
  • human - Only comments from humans
  • all - All comments (default)

MCP Mode

# Start MCP server
pr_comments mcp

Available MCP tools:

  • get_comments - Get review comments with thread-level pagination
  • add_comment_reply - Reply to a review comment (auto-prefixes with AI identifier)
  • list_prs - List pull requests

Authentication

Set 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.

Configuration

If not in a git repository, specify the repository:

pr_comments --repo owner/repo comments
Commit count: 493

cargo fmt