pr_comments
A tool to fetch GitHub PR comments via CLI and MCP interfaces.
Installation
Usage
CLI Mode
# Auto-detect PR from current branch
# Specify PR number
# Get only unresolved review comments (default behavior)
# Include resolved review comments
# Get only issue comments (resolution doesn't apply)
# List PRs
Resolution Filtering (Breaking Change)
Important: As of v0.2.0, review-comments now defaults to showing only unresolved comments. This is a breaking change from previous versions.
- 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-resolvedto see all comments including resolved ones - This filtering only applies to the
review-commentscommand - The
allcommand always shows all comments regardless of resolution status
MCP Mode
# Start MCP server
# Or
Authentication
Set the GITHUB_TOKEN environment variable:
Note: The token needs the repo scope for private repositories.
Configuration
If not in a git repository, specify the repository:
Comment Types
- Review Comments: Code-specific inline comments on the diff. These can be resolved.
- Issue Comments: General discussion comments on the PR. These cannot be resolved.