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 (or GITHUB_READ_ONLY=1 in 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.
  • --toolsets and --tools pick what is on, such as --toolsets=repos,issues, and --exclude-tools takes tools away whatever else is set. A misspelt tool name stops the server at start-up.
  • --lockdown-mode hides 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-server

The 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_file

    Delete a file from a GitHub repository

    Server says: destructive · toolset repos

  • merge_pull_request

    Merge 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_write

    Create 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_comment

    Add 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_comment

    Add 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_review

    Add 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_issue

    Assign Copilot to a specific issue in a GitHub repository.

    Server gives no read-only or destructive hint · toolset copilot

  • create_branch

    Create a new branch in a GitHub repository

    Server gives no read-only or destructive hint · toolset repos

  • create_or_update_file

    Create or update a single file in a GitHub repository.

    Server gives no read-only or destructive hint · toolset repos

  • create_pull_request

    Create a new pull request in a GitHub repository.

    Server gives no read-only or destructive hint · toolset pull_requests

  • create_repository

    Create a new GitHub repository in your account or specified organization

    Server gives no read-only or destructive hint · toolset repos

  • fork_repository

    Fork a GitHub repository to your account or specified organization

    Server gives no read-only or destructive hint · toolset repos

  • issue_write

    Create a new or update an existing issue in a GitHub repository.

    Server gives no read-only or destructive hint · toolset issues

  • push_files

    Push multiple files to a GitHub repository in a single commit

    Server gives no read-only or destructive hint · toolset repos

  • request_copilot_review

    Request 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_write

    Add a sub-issue to a parent issue in a GitHub repository.

    Server gives no read-only or destructive hint · toolset issues

  • update_issue_comment

    Update the body of an existing issue or pull request conversation comment.

    Server gives no read-only or destructive hint · toolset issues

  • update_pull_request

    Update an existing pull request in a GitHub repository.

    Server gives no read-only or destructive hint · toolset pull_requests

  • update_pull_request_branch

    Update 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_commit

    Get details for a commit from a GitHub repository

    Server says: read-only · toolset repos

  • get_file_contents

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

    Server says: read-only · toolset repos

  • get_label

    Get a specific label from a repository.

    Server says: read-only · toolset issues, labels

  • get_latest_release

    Get the latest release in a GitHub repository

    Server says: read-only · toolset repos

  • get_me

    Get details of the authenticated GitHub user.

    Server says: read-only · toolset context

  • get_release_by_tag

    Get 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_tag

    Get details about a specific git tag in a GitHub repository

    Server says: read-only · toolset repos

  • get_team_members

    Get member usernames of a specific team in an organization.

    Server says: read-only · toolset context

  • get_teams

    Get details of the teams the user is a member of.

    Server says: read-only · toolset context

  • issue_read

    Get information about a specific issue in a GitHub repository.

    Server says: read-only · toolset issues

  • list_branches

    List branches in a GitHub repository

    Server says: read-only · toolset repos

  • list_commits

    Get list of commits of a branch in a GitHub repository.

    Server says: read-only · toolset repos

  • list_issue_fields

    List issue fields for a repository or organization.

    Server says: read-only · toolset issues

  • list_issue_types

    List supported issue types for a repository or its owner organization.

    Server says: read-only · toolset issues

  • list_issues

    List issues in a GitHub repository.

    Server says: read-only · toolset issues

  • list_pull_requests

    List pull requests in a GitHub repository.

    Server says: read-only · toolset pull_requests

  • list_releases

    List releases in a GitHub repository

    Server says: read-only · toolset repos

  • list_repository_collaborators

    List collaborators of a GitHub repository.

    Server says: read-only · toolset repos

  • list_tags

    List git tags in a GitHub repository

    Server says: read-only · toolset repos

  • pull_request_read

    Get information on a specific pull request in GitHub repository.

    Server says: read-only · toolset pull_requests

  • search_code

    Fast and precise code search across ALL GitHub repositories using GitHub's native search engine.

    Server says: read-only · toolset repos

  • search_commits

    Search for commits across GitHub repositories using GitHub's commit search syntax.

    Server says: read-only · toolset repos

  • search_issues

    Search issues using natural-language semantic matching.

    Server says: read-only · toolset issues

  • search_pull_requests

    Search for pull requests in GitHub repositories using issues search syntax already scoped to is:pr

    Server says: read-only · toolset pull_requests

  • search_repositories

    Find GitHub repositories by name, description, readme, topics, or other metadata.

    Server says: read-only · toolset repos

  • search_users

    Find GitHub users by username, real name, or other profile information.

    Server says: read-only · toolset users

  • ui_get

    Fetch 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_trigger

    Trigger GitHub Actions workflow operations, including running, re-running, cancelling workflow runs, and deleting workflow run logs.

    Server says: destructive · toolset actions

  • discussion_comment_write

    Write operations for discussion comments.

    Server says: destructive · toolset discussions

  • label_write

    Perform write operations on repository labels.

    Server says: destructive · toolset labels

  • projects_write

    Create 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_gist

    Create 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_intent

    Assign Copilot to a specific issue in a GitHub repository.

    Server gives no read-only or destructive hint · toolset copilot_issue_intents

  • create_repository_ruleset

    Create a new ruleset at the repository, organization, or enterprise level

    Server gives no read-only or destructive hint · toolset governance

  • custom_properties_write

    Create or update custom properties at the repository, organization, or enterprise level.

    Server gives no read-only or destructive hint · toolset governance

  • dismiss_notification

    Dismiss a notification by marking it as read or done

    Server gives no read-only or destructive hint · toolset notifications

  • manage_notification_subscription

    Manage 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_subscription

    Manage 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_read

    Mark all notifications as read

    Server gives no read-only or destructive hint · toolset notifications

  • star_repository

    Star a GitHub repository

    Server gives no read-only or destructive hint · toolset stargazers

    Our call: Stars a repository in your name, in public.

  • unstar_repository

    Unstar a GitHub repository

    Server gives no read-only or destructive hint · toolset stargazers

    Our call: Removes a star in your name.

  • update_gist

    Update an existing gist

    Server gives no read-only or destructive hint · toolset gists

Only looks30 toolsLet it run. It only looks.

  • actions_get

    Get details about specific GitHub Actions resources.

    Server says: read-only · toolset actions

  • actions_list

    Tools for listing GitHub Actions resources.

    Server says: read-only · toolset actions

  • custom_properties_read

    Read custom properties at the repository, organization, or enterprise level.

    Server says: read-only · toolset governance

  • get_code_quality_finding

    Get details of a specific code quality finding in a GitHub repository.

    Server says: read-only · toolset code_quality

  • get_code_scanning_alert

    Get details of a specific code scanning alert in a GitHub repository.

    Server says: read-only · toolset code_security

  • get_dependabot_alert

    Get details of a specific dependabot alert in a GitHub repository.

    Server says: read-only · toolset dependabot

  • get_discussion

    Get a specific discussion by ID

    Server says: read-only · toolset discussions

  • get_discussion_comments

    Get comments from a discussion

    Server says: read-only · toolset discussions

  • get_gist

    Get gist content of a particular gist, by gist ID

    Server says: read-only · toolset gists

  • get_global_security_advisory

    Get a global security advisory

    Server says: read-only · toolset security_advisories

  • get_job_logs

    Get logs for GitHub Actions workflow jobs.

    Server says: read-only · toolset actions

  • get_notification_details

    Get 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_tree

    Get 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_alert

    Get details of a specific secret scanning alert in a GitHub repository.

    Server says: read-only · toolset secret_protection

  • list_code_scanning_alerts

    List code scanning alerts in a GitHub repository.

    Server says: read-only · toolset code_security

  • list_dependabot_alerts

    List dependabot alerts in a GitHub repository.

    Server says: read-only · toolset dependabot

  • list_discussion_categories

    List discussion categories with their id and name, for a repository or organisation.

    Server says: read-only · toolset discussions

  • list_discussions

    List discussions for a repository or organisation.

    Server says: read-only · toolset discussions

  • list_gists

    List gists for a user

    Server says: read-only · toolset gists

  • list_global_security_advisories

    List global security advisories from GitHub.

    Server says: read-only · toolset security_advisories

  • list_label

    List labels from a repository, ordered by issue count (descending) so the most-used labels are returned first.

    Server says: read-only · toolset labels

  • list_notifications

    Lists 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_advisories

    List repository security advisories for a GitHub organization.

    Server says: read-only · toolset security_advisories

  • list_repository_security_advisories

    List repository security advisories for a GitHub repository.

    Server says: read-only · toolset security_advisories

  • list_secret_scanning_alerts

    List secret scanning alerts in a GitHub repository.

    Server says: read-only · toolset secret_protection

  • list_starred_repositories

    List starred repositories

    Server says: read-only · toolset stargazers

  • projects_get

    Get details about specific GitHub Projects resources.

    Server says: read-only · toolset projects

  • projects_list

    Tools for listing GitHub Projects resources.

    Server says: read-only · toolset projects

  • repository_ruleset_read

    Read rulesets at the repository, organization, or enterprise level, and rule suites at the repository or organization level.

    Server says: read-only · toolset governance

  • search_orgs

    Find 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-server

Send 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-desktop

The 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-server

Reads 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.