github-code-review-mcp-server
If you are the rightful owner of github-code-review-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server for GitHub code review, providing read-only access to repositories, branches, commits, and pull requests.
The GitHub Code Review MCP Server is designed to facilitate AI-assisted code reviews by providing read-only access to various GitHub resources. This server allows users to list repositories, branches, commits, and pull requests, as well as access file contents from different branches and commits. It also enables viewing of pull request comments and reviews, searching code across repositories, and accessing code scanning alerts. The server is implemented in Python and requires a GitHub Personal Access Token with appropriate read permissions. It is particularly useful for AI models that need to analyze code without the risk of making changes, ensuring a secure and controlled environment for code review processes. The server is based on the structure of the original GitHub MCP Server but focuses exclusively on read-only functionality.
Features
- List repositories, branches, commits, and pull requests
- Access file contents from different branches and commits
- View pull request comments and reviews
- Search code across repositories
- Access code scanning alerts
Tools
list_branches
Lists all branches in a repository.
list_commits
Lists all commits in a branch.
get_commit
Retrieves details of a specific commit.
get_file_contents
Fetches the contents of a file from a specific branch or commit.
get_pull_request
Retrieves details of a specific pull request.
list_pull_requests
Lists all pull requests in a repository.
get_pull_request_comments
Fetches comments from a specific pull request.
list_code_scanning_alerts
Lists all code scanning alerts in a repository.
get_code_scanning_alert
Retrieves details of a specific code scanning alert.