Skip to content
Hidden Logic Lab

GitHub MCP Server 2.3.0 can merge pull requests and push files on the default toolsets. Lockdown mode is off, and GitHub does not call it a security boundary.

Published

GitHub MCP Server is GitHub's official Model Context Protocol server. It lets a coding agent call GitHub the way a person would use the API: read repositories and files, search code, open and comment on issues, create and merge pull requests, and — if you enable the extra toolsets — trigger Actions, update security alerts, or manage projects. Publisher: GitHub. License: MIT. MCP registry name: io.github.github/github-mcp-server. Language: Go.

This is a static review of the latest stable release at research time, 2.3.0:

  • Git tag v2.3.0. The annotated tag object is f0f676878c5fe6e06862bf6c4361fdf8f976ea48, dated 24 November 2026, 23:18:12 Asia/Hong_Kong. That tag was not signed. It points at commit c6b62954c062b3ad779f4e208716e09cb4a723e0, which GitHub's merge commit verification marks as valid. Commit date 24 November 2026, 23:17:23 Asia/Hong_Kong.
  • GitHub Release GitHub MCP Server 2.3.0, published 24 November 2026, 23:31:54 Asia/Hong_Kong, with platform archives and a github-mcp-server_2.3.0_checksums.txt asset. We did not download or hash the binaries in this review, so we cannot confirm those checksums here.
  • main had already moved past this tag by 25 November 2026. Later commits are out of scope.

We read the official repository, the v2.3.0 documentation, and first-party Go source at that commit. We did not run the server, did not start the official Docker image, did not log in, and did not send a GitHub token or OAuth credential anywhere. Nothing below is a runtime test, and it is not a clean bill of health.

Verdict in plain language

If you install the server the way the README's default examples do — no --toolsets, no --read-only — the agent is not limited to reading GitHub. The default toolsets at this commit include write tools that can open issues, comment, create a pull request, merge a pull request, create or overwrite files, push a batch of files, create or fork a repository, and delete a file. merge_pull_request takes the repository and pull request number and calls the merge API. There is no elicitation step in that tool's definition.

One default write tool does stop and ask: delete_repository requires a form elicitation in which the user types the exact owner/repository name, with a ten-minute confirmation window, and it also requires the delete_repo OAuth scope. That scope is not in the default OAuth scope list. A classic PAT that lacks delete_repo should have the tool hidden. A fine-grained PAT does not get that scope filter at all — the docs say the server shows every tool and leaves enforcement to the GitHub API.

Lockdown mode is off unless you pass --lockdown-mode, set GITHUB_LOCKDOWN_MODE, or send X-MCP-Lockdown. GitHub's own configuration guide describes it as a best-effort content filter meant to reduce prompt-injection risk from untrusted repository content, and says it is not an authorization boundary. In the implementation, content in a private repository is treated as safe, and so is content from the hardcoded bot logins copilot and github-actions[bot]. Only a short list of issue and pull-request read tools participate. Other default tools — including get_file_contents, search_code, and search_issues — are not in that list.

The practical boundary is still the credential you hand the server, plus whatever tool-approval your MCP host enforces. The server does not shrink a token's GitHub permissions.

What the server actually is

There are two distribution paths, and they do not share a trust boundary.

The remote server is hosted by GitHub at https://api.githubcopilot.com/mcp/. A typical VS Code or Cursor config is an HTTP MCP server at that URL, with either the host's OAuth flow or an Authorization: Bearer personal access token. The token is sent to GitHub's endpoint. There is a read-only URL variant (/readonly or X-MCP-Readonly) and per-toolset URLs under /mcp/x/{toolset}. An insiders URL or X-MCP-Insiders header exposes experimental tools. This review did not exercise the hosted service, so we cannot confirm how the remote deployment is built or which flags it runs with. The open-source tree is the documented implementation of the protocol, toolsets, and local binary.

The local server is a Go binary you run over stdio (the default) or as an HTTP server. Official install docs push the container ghcr.io/github/github-mcp-server. Many of those examples do not pin a tag or digest; the MCP registry manifest uses ghcr.io/github/github-mcp-server:${VERSION}. The Dockerfile at this commit pins base images by digest, injects OAuth client credentials at link time via build secrets, and runs the binary on gcr.io/distroless/base-debian12. Official docs say those client values are "public in practice" and are baked into official builds so github.com users can log in with a browser on first use, with the resulting token kept in memory only. A source build without those linker flags has no baked-in app and expects --oauth-client-id or a PAT. The baked-in app is registered on github.com only; GitHub Enterprise Server and ghe.com users must bring their own app.

A PAT in GITHUB_PERSONAL_ACCESS_TOKEN takes precedence over OAuth. Some hosts, the README notes, still require a token written into a config file.

The default toolsets include writes

When no toolsets are specified, the server expands the special default toolset to every toolset whose metadata has Default: true. At c6b62954, those flags are set on context, repos, issues, pull_requests, users, and copilot.

The README section titled "default" toolset at the same tag lists only the first five. The copilot toolset is missing from that list, but the code that actually expands default uses the metadata flags, not the README table. The default Copilot tools documented in the README are assign_copilot_to_issue and request_copilot_review.

Write tools that therefore ship unless you opt out include:

  • Issues: issue_write, add_issue_comment, sub_issue_write, update_issue_comment
  • Pull requests: create_pull_request, merge_pull_request, update_pull_request, update_pull_request_branch, pull_request_review_write, add_comment_to_pending_review, add_reply_to_pull_request_comment
  • Repositories: create_or_update_file, push_files, delete_file, create_branch, create_repository, fork_repository, delete_repository

merge_pull_request is annotated ReadOnlyHint: false, requires the repo scope, and in the source we read has no elicitation or confirmation hook. push_files and create_or_update_file likewise overwrite repository content on a branch you can write. The bundled skill repository-content-changes warns operators that a partial read followed by a write can truncate a file; that warning is guidance for the model, not a server-side gate.

delete_repository is the exception. It lives in the default repos toolset, is marked destructive, and will not call the delete API until a form elicitation is accepted and the typed name matches owner/repo. Confirmation state expires after ten minutes, and a changed target or a missing state aborts. It requires both delete_repo and repo.

--read-only (or X-MCP-Readonly / a /readonly URL on the remote server) is the strict filter: write tools are dropped even if their toolset was requested. It is off by default. --exclude-tools can remove individual tools, including from an otherwise default set.

v2.3.0 also adds write tools that are not in the default set: update_dependabot_alert, update_code_scanning_alert, and update_secret_scanning_alert, plus experimental pull-request artifact tools behind a feature flag. They matter once someone passes --toolsets all or enables those toolsets. actions_run_trigger and get_job_logs likewise sit in the non-default actions toolset; job logs are a known place for leaked secrets in CI, but we did not enable or run that toolset.

The credential is the real permission boundary

Default OAuth scopes, from scopes.DefaultOAuthScopes() and pkg/http/oauth.DefaultScopes, are the set requested by stdio OAuth unless you pass --oauth-scopes. At this commit they are:

  • repo — the comments in pkg/scopes/scopes.go describe this as full control of private repositories
  • read:org, read:user, user:email
  • read:packages and write:packages
  • read:project and project
  • gist
  • notifications

delete_repo, workflow, codespace, and the admin org/enterprise scopes are omitted from that default list and, in the stdio code, need an explicit --oauth-scopes opt-in. The --oauth-scopes flag help string at this commit still says the default is "the full supported set." The implementation and the nearby source comment say otherwise. We are reporting the code.

The README's "minimum scopes" example for a PAT still lists repo, together with read:packages and read:org. repo on a classic PAT is not a read-only GitHub credential. If you only want the agent to read, a fine-grained PAT with contents read on specific repositories — plus --read-only — is the tighter shape.

Scope filtering itself is narrower than it sounds. docs/scope-filtering.md at this tag says the server hides tools whose required classic-PAT scopes are missing, after a HEAD request that reads X-OAuth-Scopes. That filter applies to classic PATs (ghp_). Fine-grained PATs, GitHub App installation tokens, and server-to-server tokens "don't support scope detection and show all tools." The GitHub API still enforces the credential. The model, however, can see and attempt delete_repository, merge_pull_request, and the rest.

A PAT in the environment is visible to the local process and to any host config that interpolates it. On the remote server, the same PAT is sent as a bearer token to api.githubcopilot.com. Official local OAuth keeps the token in memory after a browser login; the docs warn that a Docker callback port must be published to loopback only (-p 127.0.0.1:8085:8085), because inside the container the callback listens on all interfaces. A fixed port that is already bound is treated as fatal, so the server will not silently fall back and drop an authorization code on another process. If the MCP client cannot do URL elicitation, the authorization URL is placed in a tool response, with an advisory that this is less safe because the model may see it.

HTTP mode has a separate footgun: --listen-host empty "binds to all interfaces." --trust-proxy-headers is off by default; the source comments that an untrusted client could otherwise influence OAuth resource metadata via X-Forwarded-Host / X-Forwarded-Proto.

Lockdown mode is not a wall, and it is off

GitHub documents lockdown mode as a way to limit, on public repositories, content from users who lack push access. Private repositories are explicitly unaffected. Collaborators keep access to their own content. In HTTP mode, a server-side lockdown flag is an upper bound: a request header can turn lockdown on, but cannot turn off a lockdown the operator already enabled.

The implementation in pkg/lockdown/lockdown.go matches that policy. IsSafeContent returns true when any of the following hold: the author is a trusted bot, the author currently has push access (admin or write), the repository is private, or the author is the current viewer. The trusted bot set is hardcoded to copilot and github-actions[bot], which the README describes as an intentional exception so CI and Copilot output is not filtered.

The README then lists the only tools that participate. Some return an error when the author lacks push access (issue_read:get, pull_request_read:get, and the diff/files/commits variants). Others filter comments and sub-issues. That is the entire list in the v2.3.0 README. Default tools that can still return issue text, file contents, or search hits from a public repository are outside it.

The docs are also explicit that content withheld from a filtered tool may still be reachable through other tools or through the same credential used directly against the GitHub API. Lockdown does not reduce what the token can read or write.

Information-flow labels in pkg/ifc do not close that gap on their own. The package comment says the actual IFC enforcement engine lives in a separate service; this tree only defines annotation labels. LabelListIssues and LabelRepoUserContent treat content from a private repository as trusted, on the assumption that readers are trusted collaborators. Anyone who can open an issue on that private repository can still author the text the model will see. A host that ignores the labels sees ordinary tool output.

pkg/sanitize strips some invisible Unicode, bidirectional controls, and HTML that is not on a strict allow-list, and it trims suspicious fenced-code info strings. That is useful defense in depth. It is not a prompt-injection detector, and it does not decide which GitHub objects the model is allowed to read.

What we looked at for malware, and what we did not

In the first-party Go we opened at c6b62954, the local server is an MCP front end over the GitHub REST and GraphQL APIs. The default stdio path talks to the configured GitHub host (HTTPS is required off-loopback so credentials are not sent cleartext). We did not find a tool that executes a shell command on the user's machine, and os/exec use in this repository at research time showed up in OAuth helpers, the mcpcurl utility, and end-to-end tests — not as a general "run this command" MCP tool. pkg/observability is an interface for a logger and a metrics implementation, including a noop; we did not find a built-in third-party telemetry exporter in that package.

This is not an exhaustive audit. We did not read every file in the tree, did not review the compiled release binaries or the published GHCR image contents, did not run a malware scanner, and did not execute tests or the server. A static reading of selected source is not a demonstration that a given binary is safe to run. We are not claiming the project is malicious, and we are not claiming it is clean.

Dependencies at this tag include the official go-github client, githubv4, the MCP Go SDK, chi, and bluemonday, on Go 1.27.4. We did not audit those modules.

Who this is for, and when it is a poor fit

This server is a good fit for a developer who wants an agent to work on GitHub in a bounded way: a fine-grained credential on specific repositories, --read-only unless writes are really required, a narrowed toolset, and a host that asks before any write tool runs.

It is a poor fit as a default-on, always-allowed plugin attached to a classic repo PAT, or as an unattended agent that can read public issues and also see every private repository that token can access. It is also a poor fit if you were hoping lockdown mode, IFC labels, or the bundled skills would enforce a security policy by themselves. They do not. Organization admins should also read docs/policies-and-governance.md: there is no single enterprise toggle that blocks all GitHub MCP traffic, and MCP calls currently show up as ordinary API audit events.

How to install and review it without widening the hole

These steps are for a careful operator. They are not a complete hardening guide, and they were not runtime-tested in this review.

  1. Pin a version. Prefer the v2.3.0 release archive for your platform, and verify it against the checksum file on the release page. If you use the container, pin a tag or digest; do not copy README examples that pull ghcr.io/github/github-mcp-server untagged. Building from source should start from c6b62954c062b3ad779f4e208716e09cb4a723e0 if you want this exact review scope.
  2. Start in read-only mode until you have a reason not to: --read-only, or the remote URL https://api.githubcopilot.com/mcp/readonly.
  3. If you need some writes, enable only the toolsets you need and exclude the rest (--exclude-tools=merge_pull_request,push_files,create_or_update_file,delete_file,delete_repository, or a tighter list that matches your actual workflow).
  4. Use a fine-grained PAT or a GitHub App installation limited to specific repositories and permissions, not a classic repo token over every private repository you can see. Do not put a real token in a chat, a ticket, or a committed config file. Rotate anything that has already been pasted into an MCP config on a shared machine.
  5. Treat --lockdown-mode as an extra filter for untrusted public issue and pull-request text, not as a substitute for a narrow token or for --read-only.
  6. In Docker, publish the OAuth callback to loopback only. Do not run the HTTP subcommand with an empty listen host on a network you do not trust.
  7. In the MCP host, require human approval for write tools. Do not auto-approve merge_pull_request, push_files, or delete_repository.
  8. If you use the remote server, understand that the credential leaves your machine and goes to GitHub's hosted MCP endpoint. That may be acceptable; it is not the same as a local stdio process that only talks to api.github.com with a token that never leaves the box.

To inspect the same tree we inspected, without running it:

git clone https://github.com/github/github-mcp-server.git
cd github-mcp-server
git checkout c6b62954c062b3ad779f4e208716e09cb4a723e0

Then read pkg/github/tools.go for default toolset flags, cmd/github-mcp-server/main.go for flags, pkg/scopes/scopes.go for default OAuth scopes, pkg/lockdown/lockdown.go for the private-repo and trusted-bot exceptions, and pkg/github/repositories.go for the delete_repository elicitation. That is a review procedure, not an install.

Bottom line

v2.3.0 is a capable official GitHub integration for agents, and the project is actively documenting the sharp edges: read-only mode, toolset allow-lists, delete elicitation, lockdown caveats, and PAT-scope filtering. The default path still hands the model write tools — including merge and file push — under a credential that, in the default OAuth set, includes repo. Lockdown mode is off, applies to a short list of public-repo read tools, and is documented as not being a security boundary.

If you run it, turn the defaults down before you turn the agent loose. This review did not run the server and cannot certify a binary, a hosted endpoint, or your particular host's approval settings.

More skill reviews

← All skill reviews