GitHub (read-only)

v1.2.0
io.github.AbdulMuhaiminKhan/github-mcp Checked 16 hours ago Published 1 month ago

Read-only GitHub repos, issues, PRs and commits, with tool descriptions tuned on a benchmark.

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

list_repositories

List the authenticated user's own GitHub repositories (name, description, language, stars, visibility, last push), plus the total number that match. Use for questions about WHICH repos exist, counting repos, or finding a repo by topic or language. Do NOT use for details of one named repo (use get_repository) or for issues, pull requests or commits.

ParameterTypeDescription
limitintegerMaximum number of items to return (1-50). Totals are reported separately, so a small limit is fine when only a count is needed.
sortstringOrder repos by 'updated' (most recently changed first), 'pushed', 'created' or 'full_name'.
visibilitystringWhich repos to include: 'all', 'public' or 'private'.

get_repository

Get metadata for ONE repository: description, primary language, stars, forks, watchers, default branch, license, topics, created/last-pushed dates. Do NOT use to count or list issues (its open_issues_and_prs mixes issues with pull requests; use list_open_issues), for pull requests (use list_pull_requests), or to see who changed what (use get_recent_commits).

ParameterTypeDescription
repo *stringRepository as 'owner/name' (e.g. 'octocat/hello-world'). A bare name like 'hello-world' is resolved against the authenticated user's account.

list_open_issues

List the currently OPEN issues of ONE repository, newest first, optionally filtered by a single label, with the exact total of open issues. Pull requests are excluded. Use for 'what is open', 'how many open issues', or 'open bugs in X'. Do NOT use for closed issues, keyword search, or issues across all repos (use search_issues), or for pull requests (use list_pull_requests).

ParameterTypeDescription
repo *stringRepository as 'owner/name' (e.g. 'octocat/hello-world'). A bare name like 'hello-world' is resolved against the authenticated user's account.
labelOnly return issues that have this exact label name, e.g. 'bug'. Omit for all open issues.
limitintegerMaximum number of items to return (1-50). Totals are reported separately, so a small limit is fine when only a count is needed.

search_issues

Full-text search over issues (not code, not repos, not pull requests) across ALL of the user's repositories, or one repo if given. Supports open or closed state. Use when the question has a keyword ('issues mentioning auth'), asks about CLOSED issues, or spans every repo. Do NOT use to list a repo's open issues with no keyword (use list_open_issues) or to find repositories (use list_repositories).

ParameterTypeDescription
limitintegerMaximum number of items to return (1-50). Totals are reported separately, so a small limit is fine when only a count is needed.
querystringOptional keywords to match in issue titles and bodies, e.g. 'login timeout'. Omit to match every issue in scope (e.g. all closed issues).
repoRepository as 'owner/name' (e.g. 'octocat/hello-world'). A bare name like 'hello-world' is resolved against the authenticated user's account.
statestring'open', 'closed' or 'all'. Default 'all'.

list_pull_requests

List the pull requests (PRs) of ONE repository: number, title, author, draft flag, branches, and whether it was merged, plus the total that match. Filter by open, closed or all. Use for 'open PRs', 'what is waiting for review', or 'which PRs were merged'. Do NOT use for issues (use list_open_issues or search_issues) or for the commit history of a branch (use get_recent_commits).

ParameterTypeDescription
repo *stringRepository as 'owner/name' (e.g. 'octocat/hello-world'). A bare name like 'hello-world' is resolved against the authenticated user's account.
limitintegerMaximum number of items to return (1-50). Totals are reported separately, so a small limit is fine when only a count is needed.
statestring'open' (default), 'closed' (merged or rejected) or 'all'.

get_recent_commits

List the most recent commits of ONE repository: SHA, author, date and message, optionally filtered by days back, author login, or branch. Use for 'what changed', 'who committed', 'last commit', or activity in the last N days. Do NOT use for repository metadata such as stars or language (use get_repository) or for pull requests (use list_pull_requests).

ParameterTypeDescription
repo *stringRepository as 'owner/name' (e.g. 'octocat/hello-world'). A bare name like 'hello-world' is resolved against the authenticated user's account.
authorOnly commits by this GitHub login or email.
branchBranch or tag name. Omit for the default branch.
limitintegerMaximum number of items to return (1-50). Totals are reported separately, so a small limit is fine when only a count is needed.
since_daysOnly commits from the last N days (1-365). Omit for the latest commits regardless of age.