GitHub MCP server tools: which ones change things, and how to make your agent ask
All 91 tools of GitHub's official MCP server, checked by running version 2.2.0: which only read, which change a repository, which reach other people, and the Claude Code settings that let the reads run and make the rest ask.
Checked on by running github-mcp-server 2.2.0 (release binary, 16 November 2026) from github/github-mcp-server and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
57 of its 91 tools only read, 27 of the 46 that are on by default. Use --read-only when the agent only looks; otherwise let reads run and make merges, pushes and comments ask.
- Can run on their own
- 57
- Should ask a person
- 34
Cut it down before you write rules
The server has 91 tools in groups it calls toolsets, and turns on 46 of them unless told otherwise: the context, copilot, issues, pull_requests, repos and users toolsets. Its own flags shrink what an agent can reach; the first two are enforced by the server, whatever the client allows.
--read-only(orGITHUB_READ_ONLY=1in Docker) serves only the tools marked read-only. With the default toolsets that leaves 27 tools; it also wins over--tools, so a write tool named there is still left out.--toolsetsand--toolspick what is on, such as--toolsets=repos,issues, and--exclude-toolstakes tools away whatever else is set. A misspelt tool name stops the server at start-up.--lockdown-modehides issues, pull requests and comments that people without push access wrote in a public repository. GitHub calls it a best-effort filter against prompt injection, not an authorization boundary: the token can still read and write everything it could.
docker run -i --rm \
-e GITHUB_PERSONAL_ACCESS_TOKEN \
-e GITHUB_READ_ONLY=1 \
ghcr.io/github/github-mcp-serverThe token decides the rest. A fine-grained personal access token limited to the repositories the agent works on, with read-only permissions where it only needs to look, holds even if a rule is wrong. The flags are documented in the server’s README.
The 46 tools that are on by default
Some tools do several things through a method argument: issue_write creates or updates, pull_request_review_write creates, submits or deletes a review. A rule sees only the tool, so such a tool is as risky as the worst thing it can do.
Hard to undo3 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
delete_fileDelete a file from a GitHub repository
Server says: destructive · toolset repos
merge_pull_requestMerge a pull request in a GitHub repository.
Server gives no read-only or destructive hint · toolset pull_requests
Our call: A merge into the default branch can deploy; undoing it is a new revert, after the fact.
pull_request_review_writeCreate and/or submit, delete review of a pull request.
Server gives no read-only or destructive hint · toolset pull_requests
Reaches people2 toolsAsk a person: once it reaches someone, it cannot be unsent.
add_issue_commentAdd a comment and/or reaction to a specific issue or issue comment in a GitHub repository.
Server gives no read-only or destructive hint · toolset issues
Our call: A comment notifies everyone watching the issue or pull request, and it cannot be unsent.
add_reply_to_pull_request_commentAdd a reply and/or reaction to an existing pull request comment.
Server gives no read-only or destructive hint · toolset pull_requests
Our call: A comment notifies everyone watching the issue or pull request, and it cannot be unsent.
Changes data14 toolsAsk a person. Once it is routine, a standing rule can answer.
add_comment_to_pending_reviewAdd review comment to the requester's latest pending pull request review.
Server gives no read-only or destructive hint · toolset pull_requests
assign_copilot_to_issueAssign Copilot to a specific issue in a GitHub repository.
Server gives no read-only or destructive hint · toolset copilot
create_branchCreate a new branch in a GitHub repository
Server gives no read-only or destructive hint · toolset repos
create_or_update_fileCreate or update a single file in a GitHub repository.
Server gives no read-only or destructive hint · toolset repos
create_pull_requestCreate a new pull request in a GitHub repository.
Server gives no read-only or destructive hint · toolset pull_requests
create_repositoryCreate a new GitHub repository in your account or specified organization
Server gives no read-only or destructive hint · toolset repos
fork_repositoryFork a GitHub repository to your account or specified organization
Server gives no read-only or destructive hint · toolset repos
issue_writeCreate a new or update an existing issue in a GitHub repository.
Server gives no read-only or destructive hint · toolset issues
push_filesPush multiple files to a GitHub repository in a single commit
Server gives no read-only or destructive hint · toolset repos
request_copilot_reviewRequest a GitHub Copilot code review for a pull request.
Server gives no read-only or destructive hint · toolset copilot
Our call: Adds Copilot as a reviewer, which the pull request's people see.
sub_issue_writeAdd a sub-issue to a parent issue in a GitHub repository.
Server gives no read-only or destructive hint · toolset issues
update_issue_commentUpdate the body of an existing issue or pull request conversation comment.
Server gives no read-only or destructive hint · toolset issues
update_pull_requestUpdate an existing pull request in a GitHub repository.
Server gives no read-only or destructive hint · toolset pull_requests
update_pull_request_branchUpdate the branch of a pull request with the latest changes from the base branch.
Server gives no read-only or destructive hint · toolset pull_requests
Only looks27 toolsLet it run. It only looks.
get_commitGet details for a commit from a GitHub repository
Server says: read-only · toolset repos
get_file_contentsGet the contents of a file or directory from a GitHub repository
Server says: read-only · toolset repos
get_labelGet a specific label from a repository.
Server says: read-only · toolset issues, labels
get_latest_releaseGet the latest release in a GitHub repository
Server says: read-only · toolset repos
get_meGet details of the authenticated GitHub user.
Server says: read-only · toolset context
get_release_by_tagGet a specific release by its tag name in a GitHub repository
Server says: read-only · toolset repos
Our call: Reads one release by its tag; the server marks it read-only and it changes nothing.
get_tagGet details about a specific git tag in a GitHub repository
Server says: read-only · toolset repos
get_team_membersGet member usernames of a specific team in an organization.
Server says: read-only · toolset context
get_teamsGet details of the teams the user is a member of.
Server says: read-only · toolset context
issue_readGet information about a specific issue in a GitHub repository.
Server says: read-only · toolset issues
list_branchesList branches in a GitHub repository
Server says: read-only · toolset repos
list_commitsGet list of commits of a branch in a GitHub repository.
Server says: read-only · toolset repos
list_issue_fieldsList issue fields for a repository or organization.
Server says: read-only · toolset issues
list_issue_typesList supported issue types for a repository or its owner organization.
Server says: read-only · toolset issues
list_issuesList issues in a GitHub repository.
Server says: read-only · toolset issues
list_pull_requestsList pull requests in a GitHub repository.
Server says: read-only · toolset pull_requests
list_releasesList releases in a GitHub repository
Server says: read-only · toolset repos
list_repository_collaboratorsList collaborators of a GitHub repository.
Server says: read-only · toolset repos
list_tagsList git tags in a GitHub repository
Server says: read-only · toolset repos
pull_request_readGet information on a specific pull request in GitHub repository.
Server says: read-only · toolset pull_requests
search_codeFast and precise code search across ALL GitHub repositories using GitHub's native search engine.
Server says: read-only · toolset repos
search_commitsSearch for commits across GitHub repositories using GitHub's commit search syntax.
Server says: read-only · toolset repos
search_issuesSearch issues using natural-language semantic matching.
Server says: read-only · toolset issues
search_pull_requestsSearch for pull requests in GitHub repositories using issues search syntax already scoped to is:pr
Server says: read-only · toolset pull_requests
search_repositoriesFind GitHub repositories by name, description, readme, topics, or other metadata.
Server says: read-only · toolset repos
search_usersFind GitHub users by username, real name, or other profile information.
Server says: read-only · toolset users
ui_getFetch UI data for MCP Apps (labels, assignees, milestones, issue types, branches, issue fields, reviewers).
Server says: read-only · toolset context
Our call: Fetches labels, assignees and branches for a picker; the server marks it read-only.
The 45 tools in other toolsets
These appear only with --toolsets, such as --toolsets=default,actions or --toolsets=all. Watch actions_run_trigger: one tool runs, re-runs and cancels workflows and deletes their logs, and a workflow can deploy.
Hard to undo4 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
actions_run_triggerTrigger GitHub Actions workflow operations, including running, re-running, cancelling workflow runs, and deleting workflow run logs.
Server says: destructive · toolset actions
discussion_comment_writeWrite operations for discussion comments.
Server says: destructive · toolset discussions
label_writePerform write operations on repository labels.
Server says: destructive · toolset labels
projects_writeCreate and manage GitHub Projects: create projects, add/update/delete items, bulk-update many items at once, manage views, create status updates, and add iteration fields.
Server says: destructive · toolset projects
Reaches people1 toolAsk a person: once it reaches someone, it cannot be unsent.
create_gistCreate a new gist
Server gives no read-only or destructive hint · toolset gists
Our call: A gist can be public, and a public gist can be read by anyone the moment it exists.
Changes data10 toolsAsk a person. Once it is routine, a standing rule can answer.
assign_copilot_to_issue_with_intentAssign Copilot to a specific issue in a GitHub repository.
Server gives no read-only or destructive hint · toolset copilot_issue_intents
create_repository_rulesetCreate a new ruleset at the repository, organization, or enterprise level
Server gives no read-only or destructive hint · toolset governance
custom_properties_writeCreate or update custom properties at the repository, organization, or enterprise level.
Server gives no read-only or destructive hint · toolset governance
dismiss_notificationDismiss a notification by marking it as read or done
Server gives no read-only or destructive hint · toolset notifications
manage_notification_subscriptionManage a notification subscription: ignore, watch, or delete a notification thread subscription.
Server says: destructive · toolset notifications
Our call: Watching or ignoring a thread is easy to undo, whatever the server's hint says.
manage_repository_notification_subscriptionManage a repository notification subscription: ignore, watch, or delete repository notifications subscription for the provided repository.
Server says: destructive · toolset notifications
Our call: Watching or ignoring a thread is easy to undo, whatever the server's hint says.
mark_all_notifications_readMark all notifications as read
Server gives no read-only or destructive hint · toolset notifications
star_repositoryStar a GitHub repository
Server gives no read-only or destructive hint · toolset stargazers
Our call: Stars a repository in your name, in public.
unstar_repositoryUnstar a GitHub repository
Server gives no read-only or destructive hint · toolset stargazers
Our call: Removes a star in your name.
update_gistUpdate an existing gist
Server gives no read-only or destructive hint · toolset gists
Only looks30 toolsLet it run. It only looks.
actions_getGet details about specific GitHub Actions resources.
Server says: read-only · toolset actions
actions_listTools for listing GitHub Actions resources.
Server says: read-only · toolset actions
custom_properties_readRead custom properties at the repository, organization, or enterprise level.
Server says: read-only · toolset governance
get_code_quality_findingGet details of a specific code quality finding in a GitHub repository.
Server says: read-only · toolset code_quality
get_code_scanning_alertGet details of a specific code scanning alert in a GitHub repository.
Server says: read-only · toolset code_security
get_dependabot_alertGet details of a specific dependabot alert in a GitHub repository.
Server says: read-only · toolset dependabot
get_discussionGet a specific discussion by ID
Server says: read-only · toolset discussions
get_discussion_commentsGet comments from a discussion
Server says: read-only · toolset discussions
get_gistGet gist content of a particular gist, by gist ID
Server says: read-only · toolset gists
get_global_security_advisoryGet a global security advisory
Server says: read-only · toolset security_advisories
get_job_logsGet logs for GitHub Actions workflow jobs.
Server says: read-only · toolset actions
get_notification_detailsGet detailed information for a specific GitHub notification, always call this tool when the user asks for details about a specific notification, if you don't know the ID list notifications first.
Server says: read-only · toolset notifications
get_repository_treeGet the tree structure (files and directories) of a GitHub repository at a specific ref or SHA
Server says: read-only · toolset git
get_secret_scanning_alertGet details of a specific secret scanning alert in a GitHub repository.
Server says: read-only · toolset secret_protection
list_code_scanning_alertsList code scanning alerts in a GitHub repository.
Server says: read-only · toolset code_security
list_dependabot_alertsList dependabot alerts in a GitHub repository.
Server says: read-only · toolset dependabot
list_discussion_categoriesList discussion categories with their id and name, for a repository or organisation.
Server says: read-only · toolset discussions
list_discussionsList discussions for a repository or organisation.
Server says: read-only · toolset discussions
list_gistsList gists for a user
Server says: read-only · toolset gists
list_global_security_advisoriesList global security advisories from GitHub.
Server says: read-only · toolset security_advisories
list_labelList labels from a repository, ordered by issue count (descending) so the most-used labels are returned first.
Server says: read-only · toolset labels
list_notificationsLists all GitHub notifications for the authenticated user, including unread notifications, mentions, review requests, assignments, and updates on issues or pull requests.
Server says: read-only · toolset notifications
Our call: Lists notifications without marking them as read.
list_org_repository_security_advisoriesList repository security advisories for a GitHub organization.
Server says: read-only · toolset security_advisories
list_repository_security_advisoriesList repository security advisories for a GitHub repository.
Server says: read-only · toolset security_advisories
list_secret_scanning_alertsList secret scanning alerts in a GitHub repository.
Server says: read-only · toolset secret_protection
list_starred_repositoriesList starred repositories
Server says: read-only · toolset stargazers
projects_getGet details about specific GitHub Projects resources.
Server says: read-only · toolset projects
projects_listTools for listing GitHub Projects resources.
Server says: read-only · toolset projects
repository_ruleset_readRead rulesets at the repository, organization, or enterprise level, and rule suites at the repository or organization level.
Server says: read-only · toolset governance
search_orgsFind GitHub organizations by name, location, or other organization metadata.
Server says: read-only · toolset orgs
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as github, this server’s tools are named mcp__github__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__github__actions_get",
"mcp__github__actions_list",
"mcp__github__custom_properties_read",
"mcp__github__get_code_quality_finding",
"mcp__github__get_code_scanning_alert",
"mcp__github__get_commit",
"mcp__github__get_dependabot_alert",
"mcp__github__get_discussion",
"mcp__github__get_discussion_comments",
"mcp__github__get_file_contents",
"mcp__github__get_gist",
"mcp__github__get_global_security_advisory",
"mcp__github__get_job_logs",
"mcp__github__get_label",
"mcp__github__get_latest_release",
"mcp__github__get_me",
"mcp__github__get_notification_details",
"mcp__github__get_release_by_tag",
"mcp__github__get_repository_tree",
"mcp__github__get_secret_scanning_alert",
"mcp__github__get_tag",
"mcp__github__get_team_members",
"mcp__github__get_teams",
"mcp__github__issue_read",
"mcp__github__list_branches",
"mcp__github__list_code_scanning_alerts",
"mcp__github__list_commits",
"mcp__github__list_dependabot_alerts",
"mcp__github__list_discussion_categories",
"mcp__github__list_discussions",
"mcp__github__list_gists",
"mcp__github__list_global_security_advisories",
"mcp__github__list_issue_fields",
"mcp__github__list_issue_types",
"mcp__github__list_issues",
"mcp__github__list_label",
"mcp__github__list_notifications",
"mcp__github__list_org_repository_security_advisories",
"mcp__github__list_pull_requests",
"mcp__github__list_releases",
"mcp__github__list_repository_collaborators",
"mcp__github__list_repository_security_advisories",
"mcp__github__list_secret_scanning_alerts",
"mcp__github__list_starred_repositories",
"mcp__github__list_tags",
"mcp__github__projects_get",
"mcp__github__projects_list",
"mcp__github__pull_request_read",
"mcp__github__repository_ruleset_read",
"mcp__github__search_code",
"mcp__github__search_commits",
"mcp__github__search_issues",
"mcp__github__search_orgs",
"mcp__github__search_pull_requests",
"mcp__github__search_repositories",
"mcp__github__search_users",
"mcp__github__ui_get"
]
}
}The command that adds the server:
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-serverSend the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__github__(?!(actions_get|actions_list|custom_properties_read|get_code_quality_finding|get_code_scanning_alert|get_commit|get_dependabot_alert|get_discussion|get_discussion_comments|get_file_contents|get_gist|get_global_security_advisory|get_job_logs|get_label|get_latest_release|get_me|get_notification_details|get_release_by_tag|get_repository_tree|get_secret_scanning_alert|get_tag|get_team_members|get_teams|issue_read|list_branches|list_code_scanning_alerts|list_commits|list_dependabot_alerts|list_discussion_categories|list_discussions|list_gists|list_global_security_advisories|list_issue_fields|list_issue_types|list_issues|list_label|list_notifications|list_org_repository_security_advisories|list_pull_requests|list_releases|list_repository_collaborators|list_repository_security_advisories|list_secret_scanning_alerts|list_starred_repositories|list_tags|projects_get|projects_list|pull_request_read|repository_ruleset_read|search_code|search_commits|search_issues|search_orgs|search_pull_requests|search_repositories|search_users|ui_get)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz login once to save a key, then use this in claude_desktop_config.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"github": {
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
"mcp-proxy",
"--name",
"github",
"--look-only",
"actions_get,actions_list,custom_properties_read,get_code_quality_finding,get_code_scanning_alert,get_commit,get_dependabot_alert,get_discussion,get_discussion_comments,get_file_contents,get_gist,get_global_security_advisory,get_job_logs,get_label,get_latest_release,get_me,get_notification_details,get_release_by_tag,get_repository_tree,get_secret_scanning_alert,get_tag,get_team_members,get_teams,issue_read,list_branches,list_code_scanning_alerts,list_commits,list_dependabot_alerts,list_discussion_categories,list_discussions,list_gists,list_global_security_advisories,list_issue_fields,list_issue_types,list_issues,list_label,list_notifications,list_org_repository_security_advisories,list_pull_requests,list_releases,list_repository_collaborators,list_repository_security_advisories,list_secret_scanning_alerts,list_starred_repositories,list_tags,projects_get,projects_list,pull_request_read,repository_ruleset_read,search_code,search_commits,search_issues,search_orgs,search_pull_requests,search_repositories,search_users,ui_get",
"--",
"docker",
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"command": "npx",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PAT>"
}
}
}
}Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__github, keeps Claude Code from asking a second time in the terminal:
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz mcp-proxy --name github --look-only actions_get,actions_list,custom_properties_read,get_code_quality_finding,get_code_scanning_alert,get_commit,get_dependabot_alert,get_discussion,get_discussion_comments,get_file_contents,get_gist,get_global_security_advisory,get_job_logs,get_label,get_latest_release,get_me,get_notification_details,get_release_by_tag,get_repository_tree,get_secret_scanning_alert,get_tag,get_team_members,get_teams,issue_read,list_branches,list_code_scanning_alerts,list_commits,list_dependabot_alerts,list_discussion_categories,list_discussions,list_gists,list_global_security_advisories,list_issue_fields,list_issue_types,list_issues,list_label,list_notifications,list_org_repository_security_advisories,list_pull_requests,list_releases,list_repository_collaborators,list_repository_security_advisories,list_secret_scanning_alerts,list_starred_repositories,list_tags,projects_get,projects_list,pull_request_read,repository_ruleset_read,search_code,search_commits,search_issues,search_orgs,search_pull_requests,search_repositories,search_users,ui_get -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-serverReads are not free of risk
A tool that only reads changes nothing, but what it reads goes into the agent’s context. An issue written by a stranger can carry instructions, and search_code or get_file_contents can pull a private repository into the same conversation. An agent that reads untrusted text and private code and can then push or comment has everything an attacker needs, which is why the writes should ask even when the reads run freely. The prompt injection article shows how to split the two.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.