github-mcp

v0.1.1
io.github.jaimenbell/github-mcp Checked 1 day ago Published 4 months ago

MCP server for the GitHub REST API: issues, PRs, repos; read always on, write env-gated.

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

get_repo

Get metadata for a repository: description, language, stars, forks, open issues, default branch, archived flag, license, last-push time.

ParameterTypeDescription
owner *string
repo *string

list_issues

List issues for a repository (pull requests filtered out), most-recently-updated first.

ParameterTypeDescription
owner *string
repo *string
limitinteger
statestring

get_issue

Fetch a single issue's full detail: title, body, state, labels, comment count.

ParameterTypeDescription
issue_number *integer
owner *string
repo *string

list_pull_requests

List pull requests for a repository, most-recently-updated first.

ParameterTypeDescription
owner *string
repo *string
limitinteger
statestring

get_pull_request

Fetch a single pull request's full detail, including merge state.

ParameterTypeDescription
owner *string
pr_number *integer
repo *string

get_file_content

Read a UTF-8 text file from a repo at a given path (base64-decoded). Reports binary files rather than decoding them.

ParameterTypeDescription
owner *string
path *string
repo *string
ref

search_repos

Search public repositories by keyword/qualifiers, sorted by best match.

ParameterTypeDescription
query *string
limitinteger

get_user

Get a public profile for a GitHub user or organization.

ParameterTypeDescription
username *string

list_commits

List commits on a repo's default branch (or a given ref), newest first.

ParameterTypeDescription
owner *string
repo *string
limitinteger
sha

create_issue

Open a new issue on a repository. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.

ParameterTypeDescription
owner *string
repo *string
title *string
body
labels

comment_on_issue

Post a comment on an issue or pull request. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.

ParameterTypeDescription
body *string
issue_number *integer
owner *string
repo *string

update_issue_state

Set an issue's state to 'open' or 'closed'. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.

ParameterTypeDescription
issue_number *integer
owner *string
repo *string
state *string

add_labels

Add one or more labels to an issue or pull request. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.

ParameterTypeDescription
issue_number *integer
labels *array
owner *string
repo *string

create_pr_review_comment

Create a review comment on a specific line of a pull request's diff. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.

ParameterTypeDescription
body *string
commit_id *string
line *integer
owner *string
path *string
pr_number *integer
repo *string