GitHub Integration
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 namerepo: Repository namepr_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
GitHub Integration
Project Details
- highlight-ing/highlight-github-mcp
- Last Updated: 2/5/2025
Recomended MCP Servers
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech and video generation...
🔍 A Model Context Protocol (MCP) server providing unified access to multiple search engines (Tavily, Brave, Kagi), AI...
Model Context Protocol (MCP) server for Excalidraw - Work in Progress
MCP Server for the GitHub Enterprise APIs, enabling file operations, repository management, search functionality, and more.
MCP server for interacting with a GraphQL server
Claude Server is an MCP implementation that enhances Claude's capabilities by providing sophisticated context management across sessions, enabling...
AegnticMCP automates the creation and management of MCP servers, ensuring they are stable, adaptable, and intelligent.





