github-code-review-mcp-server

github-code-review-mcp-server

3.2

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

  1. list_branches

    Lists all branches in a repository.

  2. list_commits

    Lists all commits in a branch.

  3. get_commit

    Retrieves details of a specific commit.

  4. get_file_contents

    Fetches the contents of a file from a specific branch or commit.

  5. get_pull_request

    Retrieves details of a specific pull request.

  6. list_pull_requests

    Lists all pull requests in a repository.

  7. get_pull_request_comments

    Fetches comments from a specific pull request.

  8. list_code_scanning_alerts

    Lists all code scanning alerts in a repository.

  9. get_code_scanning_alert

    Retrieves details of a specific code scanning alert.