Gemini PR Reviews MCP server - Fetch Gemini Code Assist reviews from GitHub PRs
Project description
Gemini PR Reviews MCP Server
Fetch Gemini Code Assist PR reviews from GitHub. Auto-detects last PR, filters reviews after your last /gemini review comment, and returns raw JSON.
Features
- Auto-Auth — Uses
ghCLI token automatically, falls back toGITHUB_TOKENenv var - Smart Defaults — Auto-detects repository owner and last PR number
- Filtered Reviews — Get only reviews after your last
/gemini reviewcomment - All Comment Types — PR reviews, line comments, and issue comments
- Full Pagination — Handles large PRs with many comments
Quick Start
Claude Code
# If you have gh CLI authenticated, no token needed:
claude mcp add gemini-reviews -- uvx gemini-reviews-mcp
# Or with explicit token:
claude mcp add gemini-reviews \
-e GITHUB_TOKEN="ghp_your_token" \
-- uvx gemini-reviews-mcp
Claude Desktop
Add to your config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"gemini-reviews": {
"command": "uvx",
"args": ["gemini-reviews-mcp"]
}
}
}
If
ghCLI is installed and authenticated, noGITHUB_TOKENenv var is needed.
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"gemini-reviews": {
"command": "uvx",
"args": ["gemini-reviews-mcp"]
}
}
}
Windsurf
Add to Windsurf MCP config:
{
"mcpServers": {
"gemini-reviews": {
"command": "uvx",
"args": ["gemini-reviews-mcp"]
}
}
}
VS Code
Add to your VS Code settings (JSON):
"mcp": {
"servers": {
"gemini-reviews": {
"type": "stdio",
"command": "uvx",
"args": ["gemini-reviews-mcp"]
}
}
}
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"gemini-reviews": {
"command": "uvx",
"args": ["gemini-reviews-mcp"]
}
}
}
GitHub Copilot
Add to ~/.copilot/mcp-config.json:
{
"mcpServers": {
"gemini-reviews": {
"command": "uvx",
"args": ["gemini-reviews-mcp"]
}
}
}
OpenAI Codex
Add to ~/.codex/config.toml:
[mcp_servers.gemini-reviews]
command = "uvx"
args = ["gemini-reviews-mcp"]
Install from Source
cd gemini-reviews-mcp
pip install -e .
Authentication
The server resolves GitHub authentication in this order:
-
ghCLI (preferred) — If GitHub CLI is installed and authenticated (gh auth login), the token is obtained automatically viagh auth token. No configuration needed. -
GITHUB_TOKENenv var (fallback) — Set manually ifghCLI is not available:# Create a token at https://github.com/settings/tokens with `repo` scope export GITHUB_TOKEN="ghp_your_token_here"
-
No token — Works for public repos only, with 60 requests/hour rate limit.
Tool
get_gemini_reviews — Fetch Gemini Code Assist PR reviews
Get Gemini Code Assist reviews from a GitHub PR. By default, fetches only reviews after your last /gemini review comment.
| Parameter | Type | Required | Description |
|---|---|---|---|
repo |
string | Yes | Repository name (repo) or full path (owner/repo) |
pr |
integer | No | PR number (uses last PR if omitted) |
after_last_review |
boolean | No | Only fetch reviews after your last /gemini review comment (default: true) |
username |
string | No | GitHub username for filtering (defaults to authenticated user) |
Usage Examples
# Simplest — auto-detect owner, last PR, filtered reviews
Use get_gemini_reviews for repo MyProject
# Specific PR
Use get_gemini_reviews for repo MyProject pr 42
# Get ALL reviews (not just after last comment)
Use get_gemini_reviews for repo MyProject with after_last_review false
# Full repo path
Use get_gemini_reviews for repo someone/TheirRepo
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gemini_reviews_mcp-1.0.0.tar.gz.
File metadata
- Download URL: gemini_reviews_mcp-1.0.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9031ab7f52abe2d25e7f53345c61b67a1bf44713fc9b29eadc1153715eb61c14
|
|
| MD5 |
24b06f2685baf8fd50d2565479b2346e
|
|
| BLAKE2b-256 |
91752734974c3bb37796b4b2a6d17a0b5d4b6316df079f3e7666a66db1150f8e
|
File details
Details for the file gemini_reviews_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gemini_reviews_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80ba8f547349ff88a2844b755a6006b169da653fc4c11b59c0222a3e67b96c5b
|
|
| MD5 |
d21b48ccc5e58aa86bb463d4356594a1
|
|
| BLAKE2b-256 |
a06a2516911d5341b8bfe449f047014ff09e8d2ff483461cf80fa239cd00aa5a
|