Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

GitHub PR Diff

БесплатноНе проверен

Integrates with GitHub's Pull Request API to extract diff content, enabling automated code review and analysis workflows.

GitHubEmbed

Описание

Integrates with GitHub's Pull Request API to extract diff content, enabling automated code review and analysis workflows.

README

The GitHub MCP server provides functionality to extract diffs from Pull Requests.

Available Tools

get_diff_pr

Retrieves the diff content from a GitHub Pull Request.

Parameters:

  • owner: Repository owner/organization name
  • repo: Repository name
  • pr_number: Pull Request number

Returns: Object containing:

  • content: String containing the PR diff

Authentication

Required: Set the GitHub Personal Access Token as an environment variable:

export GITHUB_TOKEN=<your-github-token>

The token needs at least repo scope permissions to access private repositories. For public repositories, a token with public_repo scope is sufficient.

Error Handling

The server implements standard error handling:

  • Missing/invalid token returns ErrorCode.AuthenticationError
  • Invalid repository details return ErrorCode.InvalidParams
  • Non-existent PR returns ErrorCode.NotFound
  • Failed diff fetches return formatted error messages
  • Graceful shutdown on SIGINT

Technical Details

  • Built using the Highlight AI MCP SDK
  • Uses GitHub REST API v3
  • Input validation via Zod
  • Runs as a stdio-based MCP server
  • Supports Node.js >=18.0.0

Limitations

  • Rate limits apply based on GitHub API restrictions
  • Large diffs may be truncated according to GitHub API limits
  • Token requires appropriate repository access permissions

from github.com/highlight-ing/highlight-github-mcp

Установка GitHub PR Diff

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/highlight-ing/highlight-github-mcp

FAQ

GitHub PR Diff MCP бесплатный?

Да, GitHub PR Diff MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для GitHub PR Diff?

Нет, GitHub PR Diff работает без API-ключей и переменных окружения.

GitHub PR Diff — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить GitHub PR Diff в Claude Desktop, Claude Code или Cursor?

Открой GitHub PR Diff на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare GitHub PR Diff with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development