What is gh-self-reviewer?
gh-self-reviewer is a Go-based tool designed to assist developers in self-reviewing their GitHub pull requests using the Anthropic Model Control Protocol (MCP).
How to use gh-self-reviewer?
To use gh-self-reviewer, you need to set it up with a GitHub personal access token and configure it to work with Claude AI. Once set up, you can list your open pull requests and request reviews directly through Claude.
Key features of gh-self-reviewer?
- Lists all open pull requests across owned GitHub repositories.
- Allows commenting on pull requests.
- Integrates with Claude AI for enhanced review capabilities.
Use cases of gh-self-reviewer?
- Developers can easily track and manage their open pull requests.
- Facilitates automated reviews and comments on pull requests using AI.
- Enhances collaboration and feedback processes in development teams.
FAQ from gh-self-reviewer?
- What are the prerequisites for using gh-self-reviewer?
You need Go 1.24.0 or higher and a GitHub personal access token with appropriate permissions.
- Is gh-self-reviewer free to use?
Yes! gh-self-reviewer is open-source and free to use.
- How does gh-self-reviewer integrate with Claude AI?
You need to configure it in the Claude AI settings with your GitHub token to enable the integration.
gh-self-reviewer
A Go-based Anthropic MCP server that helps developers self-review their GitHub pull requests.
Features
- List all your open pull requests across owned GitHub repositories
- Comment on your pull requests
- Designed to work with Claude AI using the Model Control Protocol (MCP)
Installation
Prerequisites
- Go 1.24.0 or higher
- GitHub personal access token with appropriate permissions
Building from source
git clone https://github.com/alesr/gh-self-reviewer.git
cd gh-self-reviewer
go build -o gh-self-reviewer main.go
Setup with Claude AI
-
Generate a GitHub personal access token with
repo
scope -
Add the following configuration to your Claude AI config:
{
"mcpServers": {
"github_tools": {
"command": "/path/to/gh-self-reviewer",
"args": [],
"env": {
"GITHUB_TOKEN_MCP_APP_REVIEW": "your_github_token_here"
}
}
}
}
Replace /path/to/gh-self-reviewer
with the actual path to the executable and your_github_token_here
with your GitHub personal access token.
Usage
Once set up, you can instruct Claude to:
-
List your open pull requests:
Could you list my open GitHub pull requests?
-
Review and comment on a specific PR:
Please review my PR at https://github.com/username/repo/pull/123 and add a comment
License
MIT