Yellhorn MCP server uses Gemini 2.5 pro to generate detailed work plans and review pull requests.
Project description
Yellhorn MCP
A Model Context Protocol (MCP) server that exposes Gemini 2.5 Pro capabilities to Claude Code for software development tasks.
Features
- Generate Work Plans: Creates GitHub issues with detailed implementation plans based on your codebase, with customizable title and detailed description
- Review Code Diffs: Evaluates pull requests against the original work plan with full codebase context and provides detailed feedback
- Seamless GitHub Integration: Automatically creates labeled issues, posts reviews as PR comments with references to original issues, and handles asynchronous processing
Installation
# Install from PyPI
pip install yellhorn-mcp
# Install from source
git clone https://github.com/msnidal/yellhorn-mcp.git
cd yellhorn-mcp
pip install -e .
Configuration
The server requires the following environment variables:
GEMINI_API_KEY: Your Gemini API key (required)REPO_PATH: Path to your repository (defaults to current directory)YELLHORN_MCP_MODEL: Gemini model to use (defaults to "gemini-2.5-pro-exp-03-25")
The server also requires the GitHub CLI (gh) to be installed and authenticated.
Usage
Running the server
# As a standalone server
yellhorn-mcp --repo-path /path/to/repo --host 127.0.0.1 --port 8000
# Using the MCP CLI
mcp dev yellhorn_mcp.server
# Install as a permanent MCP server for Claude Desktop
mcp install yellhorn_mcp.server
# Set environment variables during installation
mcp install yellhorn_mcp.server -v GEMINI_API_KEY=your_key_here -v REPO_PATH=/path/to/repo
Integration with Claude Code
When working with Claude Code, you can use the Yellhorn MCP tools by:
-
Starting a project task:
Please generate a work plan with title "[Your Title]" and detailed description "[Your detailed requirements]" -
Reviewing your implementation:
Please review my changes in PR [PR URL] against the work plan from [GitHub issue URL]
Tools
generate_work_plan
Creates a GitHub issue with a detailed work plan based on the title and detailed description, labeled with 'yellhorn-mcp'.
Input:
title: Title for the GitHub issue (will be used as issue title and header)detailed_description: Detailed description for the workplan
Output:
- URL to the created GitHub issue
review_work_plan
Reviews a pull request against the original work plan and provides feedback. Includes the full codebase as context for better analysis and adds a reference to the original work plan in the review comment.
Input:
work_plan_issue_url: GitHub issue URL containing the work planpull_request_url: GitHub PR URL containing the changes to reviewctx: Server context
Output:
- Asynchronously posts a review directly to the PR with a reference to the original work plan issue
Development
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
CI/CD
The project uses GitHub Actions for continuous integration and deployment:
-
Testing: Runs automatically on pull requests and pushes to the main branch
- Linting with flake8
- Format checking with black
- Testing with pytest
-
Publishing: Automatically publishes to PyPI when a version tag is pushed
- Tag must match the version in pyproject.toml (e.g., v0.1.3)
- Requires a PyPI API token stored as a GitHub repository secret (PYPI_API_TOKEN)
To release a new version:
- Update version in pyproject.toml
- Commit changes:
git commit -am "Bump version to X.Y.Z" - Tag the commit:
git tag vX.Y.Z - Push changes and tag:
git push && git push --tags
For more detailed instructions, see the Usage Guide.
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 yellhorn_mcp-0.1.3.tar.gz.
File metadata
- Download URL: yellhorn_mcp-0.1.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce35911fd576e3300ba9d81ca6f8f1bca7c0bf03e68fe6017d86a818cab80bc
|
|
| MD5 |
2bfaf8f296f6fa7f1852812374f6a0a3
|
|
| BLAKE2b-256 |
bac803498c8fbd9abe4bcbcf995358d152cecab7d535399d4424c623a5763642
|
File details
Details for the file yellhorn_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: yellhorn_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
965408d1c3b17b18f450b1f9aa8d5819b3112bd2085606cb2faba43e0e9172d5
|
|
| MD5 |
adbb4114065e1c85878cab6e387d353c
|
|
| BLAKE2b-256 |
7a531b5b3658a1ae7d16f24d5cfc5a67d7c545046ebaf86a3f13486312a0088a
|