Yellhorn MCP

by msnidal

14 342 downloads Not rated yet
GitHub

About

An MCP server that integrates Gemini 2.5 Pro and OpenAI models for software development tasks, allowing the use of your entire codebase as context.

Explore

- Create Workplans: Creates detailed implementation plans based on a prompt and taking into consideration your entire codebase, posting them as GitHub issues and exposing them as MCP resources for your coding agent
- Judge Code Diffs: Provides a tool to evaluate git diffs against the original workplan with full codebase context and provides detailed feedback, ensuring the implementation does not deviate from the original requirements and providing guidance on what to change to do so
- Seamless GitHub Integration: Automatically creates labeled issues, posts judgement sub-issues with references to original workplan issues
- Context Control: Use .yellhornignore files to exclude specific files and directories from the AI context, similar to .gitignore
- MCP Resources: Exposes workplans as standard MCP resources for easy listing and retrieval
- Google Search Grounding: Enabled by default for Gemini models, providing search capabilities with automatically formatted citations in Markdown
- Automatic Chunking: Handles large codebases that exceed model context limits by intelligently splitting prompts
- Rate Limit Handling: Robust retry logic with exponential backoff for rate limits and transient failures
- Cost Tracking: Real-time cost estimation and usage tracking for all API calls
- Multi-Model Support: Unified interface supporting OpenAI (GPT-4o, GPT-5, o3, o4-mini), xAI Grok (Grok-4, Grok-4 Fast), and Gemini (2.5-pro, 2.5-flash) models with reasoning mode support for GPT-5

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Yellhorn MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

The server requires the following environment variables:

- GEMINI_API_KEY: Your Gemini API key (required for Gemini models)
- OPENAI_API_KEY: Your OpenAI API key (required for OpenAI models)
- XAI_API_KEY: Your xAI API key (required for Grok models)
- REPO_PATH: Path to your repository (defaults to current directory)
- YELLHORN_MCP_MODEL: Model to use (defaults to "gemini-2.5-pro"). Available options:
- Gemini models: "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"
- OpenAI models: "gpt-4o", "gpt-4o-mini", "o4-mini", "o3", "gpt-4.1"
- GPT-5 models: "gpt-5", "gpt-5-mini", "gpt-5-nano" (support reasoning mode for gpt-5 and gpt-5-mini)
- xAI Grok models: "grok-4" (256K context) and "grok-4-fast" (2M context)
- Deep Research models: "o3-deep-research", "o4-mini-deep-research"
- Note: Deep Research models (including GPT-5) automatically enable web_search_preview and code_interpreter tools for enhanced research capabilities
- YELLHORN_MCP_REASONING_EFFORT: Set reasoning effort level for GPT-5 models. Options: "low", "medium", "high". This provides enhanced reasoning capabilities at higher cost for supported models (gpt-5, gpt-5-mini). The effort level determines the amount of compute used for reasoning, with higher levels providing more thorough reasoning at increased cost. The server now forwards this value to every GPT-5 request and cost metrics automatically include the appropriate reasoning premium.
- YELLHORN_MCP_SEARCH: Enable/disable Google Search Grounding (defaults to "on" for Gemini models). Options:
- "on" - Search grounding enabled for Gemini models
- "off" - Search grounding disabled for all models

> ℹ️ Grok models now use the official xai-sdk; ensure it is installed in the environment (it is included in the project dependencies, but custom deployments should add it explicitly).

The server also requires the GitHub CLI (gh) to be installed and authenticated.

git clone https://github.com/msnidal/yellhorn-mcp.git
cd yellhorn-mcp

uv sync --group dev

source .venv/bin/activate

uv pip install yellhorn-mcp

Add the server configuration below to your Codex CLI config.toml (~/.config/codex/config.toml by default). Update the GEMINI_API_KEY (or swap in OPENAI_API_KEY/XAI_API_KEY and adjust the model) and REPO_PATH values to match your environment.

[mcp_servers.yellhorn-mcp]
command = "uv"
args = ["run", "yellhorn-mcp"]
env = { "GEMINI_API_KEY" = "your-api-key", "REPO_PATH" = "/path/to/your/repo" }

Restart Codex after updating the configuration so it picks up the new MCP server.

To configure Yellhorn MCP in VSCode or Cursor, create a .vscode/mcp.json file at the root of your workspace with the following content:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gemini-api-key",
      "description": "Gemini API Key"
    }
  ],
  "servers": {
    "yellhorn-mcp": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "yellhorn-mcp"],
      "env": {
        "GEMINI_API_KEY": "${input:gemini-api-key}",
        "REPO_PATH": "${workspaceFolder}"
      }
    }
  }
}

To configure Yellhorn MCP with Claude Code directly, add a root-level .mcp.json file in your project with the following content:

{
  "mcpServers": {
    "yellhorn-mcp": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "yellhorn-mcp", "--model", "o3"],
      "env": {
        "YELLHORN_MCP_SEARCH": "on"
      }
    }
  }
}

uv sync --group dev

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "yellhorn mcp": {
            "yellhorn-mcp": {
                "command": "uv",
                "args": [
                    "sync",
                    "--group",
                    "dev"
                ]
            }
        }
    }
}

McpServers

{
    "yellhorn-mcp": {
        "command": "uv",
        "args": [
            "sync",
            "--group",
            "dev"
        ]
    }
}

Yellhorn Logo

A Model Context Protocol (MCP) server that provides functionality to create detailed workplans to implement a task or feature. These workplans are generated with a large, powerful model (such as gemini 2.5 pro or even the o3 deep research API), insert your entire codebase into the context window by default, and can also access URL context and do web search depending on the model used. This pattern of creating workplans using a powerful reasoning model is highly useful for defining work to be done by code assistants like Claude Code or other MCP compatible coding agents, as well as providing a reference to reviewing the output of such coding models and ensure they meet the exactly specified original requirements.

Features

- Create Workplans: Creates detailed implementation plans based on a prompt and taking into consideration your entire codebase, posting them as GitHub issues and exposing them as MCP resources for your coding agent
- Judge Code Diffs: Provides a tool to evaluate git diffs against the original workplan with full codebase context and provides detailed feedback, ensuring the implementation does not deviate from the original requirements and providing guidance on what to change to do so
- Seamless GitHub Integration: Automatically creates labeled issues, posts judgement sub-issues with references to original workplan issues
- Context Control: Use .yellhornignore files to exclude specific files and directories from the AI context, similar to .gitignore
- MCP Resources: Exposes workplans as standard MCP resources for easy listing and retrieval
- Google Search Grounding: Enabled by default for Gemini models, providing search capabilities with automatically formatted citations in Markdown
- Automatic Chunking: Handles large codebases that exceed model context limits by intelligently splitting prompts
- Rate Limit Handling: Robust retry logic with exponential backoff for rate limits and transient failures
- Cost Tracking: Real-time cost estimation and usage tracking for all API calls
- Multi-Model Support: Unified interface supporting OpenAI (GPT-4o, GPT-5, o3, o4-mini), xAI Grok (Grok-4, Grok-4 Fast), and Gemini (2.5-pro, 2.5-flash) models with reasoning mode support for GPT-5

Installation

Project bootstrap (uv)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.