yellhorn mcp
An MCP server that connects Gemini 2.5 Pro to Claude Code, enabling users to generate detailed implementation plans based on their codebase and receive feedback on code changes.
An MCP server that connects Gemini 2.5 Pro to Claude Code, enabling users to generate detailed implementation plans based on their codebase and receive feedback on code changes.
A Model Context Protocol (MCP) server that exposes Gemini 2.5 Pro capabilities to Claude Code for software development tasks.
.yellhornignore
files to exclude specific files and directories from the AI context, similar to .gitignore
# 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 .
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.
# 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
When working with Claude Code, you can use the Yellhorn MCP tools by:
Please generate a workplan with title "[Your Title]" and detailed description "[Your detailed requirements]"
Please create a worktree for issue #123
cd [worktree_path] # The path is returned in the response
# Option 1: From the worktree directory (auto-detects issue number)
# While in the worktree directory
Please get the current workplan for this worktree
# Option 2: From the main repository (requires explicit issue number)
# You do not need to be in the worktree directory
Please get the workplan for issue #123
# First create a PR using your preferred method (Git CLI, GitHub CLI, or web UI)
git add .
git commit -m "Implement feature"
git push origin HEAD
gh pr create --title "[PR Title]" --body "[PR Description]"
# Option 1: From the worktree directory (auto-detects issue number)
# While in the worktree directory, ask Claude to review it
Please trigger a review for PR "[PR URL]" against the original workplan
# Option 2: From the main repository (requires explicit issue number)
# You do not need to be in the worktree directory
Please trigger a review for PR "[PR URL]" against the workplan in issue #123
Creates a GitHub issue with a detailed workplan based on the title and detailed description.
Input:
title
: Title for the GitHub issue (will be used as issue title and header)detailed_description
: Detailed description for the workplanOutput:
issue_url
: URL to the created GitHub issueissue_number
: The GitHub issue numberCreates a git worktree with a linked branch for isolated development from an existing workplan issue.
Input:
issue_number
: The GitHub issue number for the workplanOutput:
worktree_path
: Path to the created Git worktree directorybranch_name
: Name of the branch created for the worktreeissue_url
: URL to the associated GitHub issueRetrieves the workplan content (GitHub issue body) associated with a workplan. Can be run from a worktree (auto-detects issue) or the main repo (requires explicit issue_number).
Input:
issue_number
: Optional issue number for the workplan. Required if run outside a Yellhorn worktree.Output:
Triggers an asynchronous code review for a Pull Request against its original workplan issue. Can be run from a worktree (auto-detects issue) or the main repo (requires explicit issue_number).
Input:
pr_url
: The URL of the GitHub Pull Request to reviewissue_number
: Optional issue number for the workplan. Required if run outside a Yellhorn worktree.Output:
Yellhorn MCP also implements the standard MCP resource API to provide access to workplans:
list-resources
: Lists all workplans (GitHub issues with the yellhorn-mcp label)get-resource
: Retrieves the content of a specific workplan by issue numberThese can be accessed via the standard MCP CLI commands:
# List all workplans
mcp list-resources yellhorn-mcp
# Get a specific workplan by issue number
mcp get-resource yellhorn-mcp 123
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
The project uses GitHub Actions for continuous integration and deployment:
Testing with pytest
Publishing: Automatically publishes to PyPI when a version tag is pushed
To release a new version:
git commit -am "Bump version to X.Y.Z"
git tag vX.Y.Z
git push && git push --tags
For more detailed instructions, see the Usage Guide.
MIT