Skip to Content

GitHub

Connect to GitHub repositories to perform issue management, pull requests, file management, and more.

Key Features

  • Repository information retrieval and management
  • Issue creation, modification, and retrieval
  • Pull request management
  • File and commit history retrieval
  • Branch and tag management
  • Notification management
  • Search functionality

Basic Information

Authentication Method

Authenticates using OAuth 2.0.

Required Permissions

  • contents:read: Read repository contents
  • contents:write: Write repository contents
  • issues:read: Read issues
  • issues:write: Write issues
  • metadata:read-only: Read metadata
  • pull_requests:read: Read pull requests
  • pull_requests:write: Write pull requests
  • repo: Full repository access

Supported MCP Tools

Issue Management Tools

get_issue

Retrieves detailed information about a specific issue.

create_issue

Creates a new issue.

update_issue

Updates an existing issue.

list_issues

Retrieves the list of issues in a repository.

search_issues

Searches for issues across GitHub.

add_issue_comment

Adds a comment to an issue.

get_issue_comments

Retrieves the list of comments for an issue.

Pull Request Management Tools

get_pull_request

Retrieves detailed information about a specific pull request.

create_pull_request

Creates a new pull request.

update_pull_request

Updates an existing pull request.

list_pull_requests

Retrieves the list of pull requests in a repository.

merge_pull_request

Merges a pull request.

get_pull_request_files

Retrieves the list of files changed in a pull request.

get_pull_request_status

Retrieves the status of a pull request.

get_pull_request_comments

Retrieves pull request comments.

get_pull_request_reviews

Retrieves the list of pull request reviews.

get_pull_request_diff

Retrieves the pull request diff.

update_pull_request_branch

Updates the pull request branch.

create_pending_pull_request_review

Creates a pending pull request review.

add_pull_request_review_comment_to_pending_review

Adds a comment to a pending review.

submit_pending_pull_request_review

Submits a pending review.

delete_pending_pull_request_review

Deletes a pending review.

create_and_submit_pull_request_review

Creates and immediately submits a review.

Repository Management Tools

create_repository

Creates a new repository.

fork_repository

Forks a repository.

get_file_contents

Retrieves file or directory contents.

create_or_update_file

Creates or updates a file.

delete_file

Deletes a file.

list_branches

Retrieves the list of branches.

create_branch

Creates a new branch.

list_commits

Retrieves the list of commits.

get_commit

Retrieves detailed information about a specific commit.

list_tags

Retrieves the list of tags.

get_tag

Retrieves detailed information about a specific tag.

User Management Tools

get_me

Retrieves authenticated user information.

Search Tools

search_repositories

Searches for repositories.

search_code

Searches for code.

search_users

Searches for users.

Notification Management Tools

list_notifications

Retrieves the list of notifications.

dismiss_notification

Dismisses a notification.

mark_all_notifications_read

Marks all notifications as read.

get_notification_details

Retrieves detailed information about a specific notification.

manage_notification_subscription

Manages notification subscriptions.

manage_repository_notification_subscription

Manages repository notification subscriptions.

Usage Example

For example,

  • When you input “Retrieve the issue list for a specific repository” as a prompt,
  • The LLM calls the list_issues tool through MCP to retrieve the issue list.
  • Then, it responds in the chat based on the tool call results.

Notes

GitHub Enterprise Server environments are not yet supported.
If you need to use it, please contact aihub@querypie.com.

Last updated on