mcp-github

v0.11.0
@missionsquad/mcp-github Checked 1 hour ago Published 6 months ago

MCP server for using the GitHub API

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_or_update_file

Create or update a single file in a GitHub repository

ParameterTypeDescription
branch *stringBranch to create/update the file in
content *stringContent of the file
message *stringCommit message
owner *stringRepository owner (username or organization)
path *stringPath where to create/update the file
repo *stringRepository name
shastringSHA of the file being replaced (required when updating existing files)

search_repositories

Search for GitHub repositories

ParameterTypeDescription
query *stringSearch query (see GitHub search syntax)
pagenumberPage number for pagination (default: 1)
perPagenumberNumber of results per page (default: 30, max: 100)

create_repository

Create a new GitHub repository in your account

ParameterTypeDescription
name *stringRepository name
autoInitbooleanInitialize with README.md
descriptionstringRepository description
privatebooleanWhether the repository should be private

get_file_contents

Get the contents of a file or directory from a GitHub repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
path *stringPath to the file or directory
repo *stringRepository name
branchstringBranch to get contents from
encodedbooleanWhether to return the content encoded in base64 (default = true)

push_files

Push multiple files to a GitHub repository in a single commit

ParameterTypeDescription
branch *stringBranch to push to (e.g., 'main' or 'master')
files *arrayArray of files to push
message *stringCommit message
owner *stringRepository owner (username or organization)
repo *stringRepository name

create_issue

Create a new issue in a GitHub repository

ParameterTypeDescription
owner *string
repo *string
title *string
assigneesarray
bodystring
labelsarray
milestonenumber

create_pull_request

Create a new pull request in a GitHub repository

ParameterTypeDescription
base *stringThe name of the branch you want the changes pulled into
head *stringThe name of the branch where your changes are implemented
owner *stringRepository owner (username or organization)
repo *stringRepository name
title *stringPull request title
bodystringPull request body/description
draftbooleanWhether to create the pull request as a draft
maintainer_can_modifybooleanWhether maintainers can modify the pull request

fork_repository

Fork a GitHub repository to your account or specified organization

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
organizationstringOptional: organization to fork to (defaults to your personal account)

create_branch

Create a new branch in a GitHub repository

ParameterTypeDescription
branch *stringName for the new branch
owner *stringRepository owner (username or organization)
repo *stringRepository name
from_branchstringOptional: source branch to create from (defaults to the repository's default branch)

list_commits

Get list of commits of a branch in a GitHub repository

ParameterTypeDescription
owner *string
repo *string
pagenumber
perPagenumber
shastring

list_issues

List issues in a GitHub repository with filtering options

ParameterTypeDescription
owner *string
repo *string
directionstring
labelsarray
pagenumber
per_pagenumber
sincestring
sortstring
statestring

update_issue

Update an existing issue in a GitHub repository

ParameterTypeDescription
issue_number *number
owner *string
repo *string
assigneesarray
bodystring
labelsarray
milestonenumber
statestring
titlestring

add_issue_comment

Add a comment to an existing issue

ParameterTypeDescription
body *string
issue_number *number
owner *string
repo *string

search_code

Search for code across GitHub repositories

ParameterTypeDescription
q *string
orderstring
pagenumber
per_pagenumber

search_issues

Search for issues and pull requests across GitHub repositories

ParameterTypeDescription
q *string
orderstring
pagenumber
per_pagenumber
sortstring

search_users

Search for users on GitHub

ParameterTypeDescription
q *string
orderstring
pagenumber
per_pagenumber
sortstring

get_issue

Get details of a specific issue in a GitHub repository.

ParameterTypeDescription
issue_number *number
owner *string
repo *string

create_release

Create a new release in a GitHub repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
tag_name *stringThe name of the tag
bodystringText describing the release
draftbooleantrue to create a draft (unpublished) release, false to create a published one
generate_release_notesbooleanWhether to automatically generate the name and body for this release
namestringThe name of the release
prereleasebooleantrue to identify the release as a prerelease, false to identify it as a full release
target_commitishstringSpecifies the commitish value that determines where the Git tag is created from

list_releases

List releases for a GitHub repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
pagenumberPage number of the results
per_pagenumberResults per page (max 100)

delete_release

Delete a release from a GitHub repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
release_id *numberThe ID of the release
repo *stringRepository name

get_release_asset

Get a release asset from a GitHub repository

ParameterTypeDescription
asset_id *numberThe ID of the asset
owner *stringRepository owner (username or organization)
repo *stringRepository name

upload_release_asset

Upload an asset to a GitHub release

ParameterTypeDescription
content *stringThe content of the asset (base64 encoded)
content_type *stringThe content type of the asset
name *stringThe name of the asset
owner *stringRepository owner (username or organization)
release_id *numberThe ID of the release
repo *stringRepository name
labelstringAn alternate short description of the asset

create_tag

Create a new tag in a GitHub repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
ref *stringThe name of the fully qualified reference (e.g., refs/tags/v1.0.0)
repo *stringRepository name
sha *stringThe SHA1 value to set this reference to

create_pull_request_review

Create a review for a pull request

ParameterTypeDescription
body *stringThe body text of the review
event *stringThe review action to perform
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
commentsarrayComments to post as part of the review
commit_idstringThe SHA of the commit that needs a review

submit_pull_request_review

Submit a pull request review (approve, request changes, or comment)

ParameterTypeDescription
event *stringThe review action to perform
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
review_id *numberThe ID of the review
bodystringThe body text of the review submission

dismiss_pull_request_review

Dismiss a pull request review

ParameterTypeDescription
message *stringThe message explaining why the review was dismissed
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
review_id *numberThe ID of the review

create_commit_status

Create a status for a commit (build passed/failed, etc.)

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
sha *stringThe SHA of the commit to create a status for
state *stringThe state of the status
contextstringA string label to differentiate this status from others
descriptionstringA short description of the status
target_urlstringThe target URL to associate with this status

get_commit_statuses

Get statuses for a commit

ParameterTypeDescription
owner *stringRepository owner (username or organization)
ref *stringThe ref (SHA, branch name, or tag name) to get statuses for
repo *stringRepository name

get_combined_status

Get the combined status for a commit

ParameterTypeDescription
owner *stringRepository owner (username or organization)
ref *stringThe ref (SHA, branch name, or tag name) to get the combined status for
repo *stringRepository name

get_rate_limit

Check the current rate limit status

create_gist

Create a new gist

ParameterTypeDescription
files *objectFiles that make up this gist. The key is the filename.
public *booleanWhether the gist is public
descriptionstringDescription of the gist

list_gists

List gists for the authenticated user

ParameterTypeDescription
pagenumberPage number of the results
per_pagenumberResults per page (max 100)
sincestringOnly gists updated at or after this time are returned

get_gist

Get a specific gist

ParameterTypeDescription
gist_id *stringThe ID of the gist

list_projects

List projects for a repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
pagenumberPage number of the results
per_pagenumberResults per page (max 100)
statestringFilter projects by state

create_project

Create a new project for a repository

ParameterTypeDescription
name *stringThe name of the project
owner *stringRepository owner (username or organization)
repo *stringRepository name
bodystringThe description of the project

list_project_columns

List columns for a project

ParameterTypeDescription
project_id *numberThe ID of the project
pagenumberPage number of the results
per_pagenumberResults per page (max 100)

create_project_column

Create a new column for a project

ParameterTypeDescription
name *stringThe name of the column
project_id *numberThe ID of the project

create_project_card

Create a new card in a project column

ParameterTypeDescription
column_id *numberThe ID of the column
note *stringThe note content for the card

list_org_packages

List packages for an organization

ParameterTypeDescription
org *stringOrganization name
package_type *stringThe type of package to filter for
pagenumberPage number of the results
per_pagenumberResults per page (max 100, default 30)
visibilitystringThe visibility to filter for

list_user_packages

List packages for a user

ParameterTypeDescription
username *stringUsername
package_typestringThe type of package to filter for
pagenumberPage number of the results
per_pagenumberResults per page (max 100)
visibilitystringThe visibility to filter for

list_repo_packages

List packages for a repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
package_typestringThe type of package to filter for
pagenumberPage number of the results
per_pagenumberResults per page (max 100)

get_org_package

Get a package for an organization

ParameterTypeDescription
org *stringOrganization name
package_name *stringThe name of the package
package_type *stringThe type of package

get_user_package

Get a package for a user

ParameterTypeDescription
package_name *stringThe name of the package
package_type *stringThe type of package
username *stringUsername

get_repo_package

Get a package for a repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
package_name *stringThe name of the package
package_type *stringThe type of package
repo *stringRepository name

list_repository_webhooks

List webhooks for a repository

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
pagenumberPage number for pagination
per_pagenumberNumber of results per page (max 100)

get_repository_webhook

Get a specific webhook for a repository

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name

create_repository_webhook

Create a webhook for a repository

ParameterTypeDescription
config *object
events *arrayEvents that should trigger this webhook; use ["*"] for all events
owner *stringRepository owner (username or organization)
repo *stringRepository name
activebooleanWhether the webhook is active

update_repository_webhook

Update a webhook for a repository

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name
activebooleanWhether the webhook is active
add_eventsarrayAppend event subscriptions without replacing existing ones
configobject
eventsarrayReplace the webhook event subscriptions
remove_eventsarrayRemove specific event subscriptions

delete_repository_webhook

Delete a webhook from a repository

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name

get_repository_webhook_config

Get webhook config for a repository webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name

update_repository_webhook_config

Update webhook config for a repository webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name
content_typestringThe media type used to serialize the payloads
insecure_sslstring | numberSet to 1 to disable SSL verification; 0 keeps verification enabled
secretstringThe secret used to sign webhook deliveries
urlstringThe URL to which the payloads will be delivered

ping_repository_webhook

Ping a repository webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name

list_repository_webhook_deliveries

List deliveries for a repository webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name
cursorstringCursor for delivery pagination
per_pagenumberNumber of results per page (max 100)
statusstringFilter deliveries by outcome classification

get_repository_webhook_delivery

Get a delivery for a repository webhook

ParameterTypeDescription
delivery_id *numberWebhook delivery identifier
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name

redeliver_repository_webhook_delivery

Redeliver a repository webhook delivery

ParameterTypeDescription
delivery_id *numberWebhook delivery identifier
hook_id *numberWebhook identifier
owner *stringRepository owner (username or organization)
repo *stringRepository name

list_organization_webhooks

List webhooks for an organization

ParameterTypeDescription
org *stringOrganization name
pagenumberPage number for pagination
per_pagenumberNumber of results per page (max 100)

get_organization_webhook

Get a specific webhook for an organization

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name

create_organization_webhook

Create a webhook for an organization

ParameterTypeDescription
config *object
events *arrayEvents that should trigger this webhook; use ["*"] for all events
org *stringOrganization name
activebooleanWhether the webhook is active

update_organization_webhook

Update a webhook for an organization

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name
activebooleanWhether the webhook is active
configobject
eventsarrayReplace the webhook event subscriptions

delete_organization_webhook

Delete a webhook from an organization

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name

get_organization_webhook_config

Get webhook config for an organization webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name

update_organization_webhook_config

Update webhook config for an organization webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name
content_typestringThe media type used to serialize the payloads
insecure_sslstring | numberSet to 1 to disable SSL verification; 0 keeps verification enabled
passwordstringOptional password for basic authentication
secretstringThe secret used to sign webhook deliveries
urlstringThe URL to which the payloads will be delivered
usernamestringOptional username for basic authentication

ping_organization_webhook

Ping an organization webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name

list_organization_webhook_deliveries

List deliveries for an organization webhook

ParameterTypeDescription
hook_id *numberWebhook identifier
org *stringOrganization name
cursorstringCursor for delivery pagination
per_pagenumberNumber of results per page (max 100)
statusstringFilter deliveries by outcome classification

get_organization_webhook_delivery

Get a delivery for an organization webhook

ParameterTypeDescription
delivery_id *numberWebhook delivery identifier
hook_id *numberWebhook identifier
org *stringOrganization name

redeliver_organization_webhook_delivery

Redeliver an organization webhook delivery

ParameterTypeDescription
delivery_id *numberWebhook delivery identifier
hook_id *numberWebhook identifier
org *stringOrganization name

get_pull_request_diff

Get the diff for a pull request

ParameterTypeDescription
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name

get_pull_request

Get a single pull request by number

ParameterTypeDescription
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name

list_pull_requests

List pull requests in a repository with filtering options

ParameterTypeDescription
owner *stringRepository owner (username or organization)
repo *stringRepository name
basestringFilter by base branch name
directionstringThe direction of the sort
headstringFilter by head user or head organization and branch name
pageintegerPage number of the results
per_pageintegerResults per page (max 100)
sortstringWhat to sort results by
statestringState of the pull requests to return

get_pull_request_files

List files changed in a pull request

ParameterTypeDescription
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
pageintegerPage number of the results
per_pageintegerResults per page (max 100)

get_pull_request_comments

List pull request review comments (inline comments on the diff). For general PR conversation comments, use list_issue_comments with the PR number.

ParameterTypeDescription
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
directionstringSort direction. Defaults to asc when sort=created, desc otherwise
pageintegerPage number of the results
per_pageintegerResults per page (max 100)
sincestringOnly show comments updated at or after this time (ISO 8601, e.g., 2024-01-01T00:00:00Z)
sortstringSort comments by created or updated time

get_pull_request_reviews

List reviews on a pull request (each review may contain multiple inline comments — use get_pull_request_review_comments to fetch them).

ParameterTypeDescription
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
pageintegerPage number of the results
per_pageintegerResults per page (max 100)

get_pull_request_review_comments

List comments attached to a specific pull request review

ParameterTypeDescription
owner *stringRepository owner (username or organization)
pull_number *numberPull request number
repo *stringRepository name
review_id *numberThe unique identifier of the pull request review
pageintegerPage number of the results
per_pageintegerResults per page (max 100)

list_issue_comments

List comments on an issue or pull request conversation (general comments, not inline diff review comments). Pass a PR number as issue_number to fetch conversation-tab comments on a PR.

ParameterTypeDescription
issue_number *numberIssue or pull request number (PRs are also issues in the GitHub API)
owner *stringRepository owner (username or organization)
repo *stringRepository name
pageintegerPage number of the results
per_pageintegerResults per page (max 100)
sincestringOnly show comments updated at or after this time (ISO 8601, e.g., 2024-01-01T00:00:00Z)