GitHub's official MCP Server
This report summarizes scanner evidence for github/github-mcp-server, a Go project with 34,113 GitHub stars. SynthScan examined 159,004 lines of code across 399 source files, recording 111 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 108 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 111 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 111 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ui/src/apps/pr-write/App.tsx | 221 | }); | COMMENT |
| LOW | internal/oauth/prompter.go | 21 | type Prompt struct { | COMMENT |
| LOW | internal/oauth/prompter.go | 41 | CanPromptURL() bool | COMMENT |
| LOW | internal/oauth/flow.go | 21 | // flowPlan is a prepared authorization flow ready to run in the background. | COMMENT |
| LOW | internal/oauth/oauth.go | 1 | // Package oauth implements the user-facing OAuth 2.1 login flows the stdio | COMMENT |
| LOW | internal/oauth/manager.go | 41 | // UserAction, when non-nil, must be surfaced to the user. The authorization | COMMENT |
| LOW | internal/githubv4mock/query.go | 1 | // Ths contents of this file are taken from https://github.com/shurcooL/graphql/blob/ed46e5a4646634fc16cb07c3b8db389542c | COMMENT |
| LOW | internal/githubv4mock/local_round_tripper.go | 1 | // Ths contents of this file are taken from https://github.com/shurcooL/graphql/blob/ed46e5a4646634fc16cb07c3b8db389542c | COMMENT |
| LOW | internal/githubv4mock/objects_are_equal_values.go | 1 | // The contents of this file are taken from https://github.com/stretchr/testify/blob/016e2e9c269209287f33ec203f340a9a723 | COMMENT |
| LOW | internal/githubv4mock/githubv4mock.go | 101 | COMMENT | |
| LOW | internal/githubv4mock/githubv4mock.go | 121 | // } `graphql:"pullRequest(number: $prNum)"` | COMMENT |
| LOW | internal/githubv4mock/objects_are_equal_values_test.go | 1 | // The contents of this file are taken from https://github.com/stretchr/testify/blob/016e2e9c269209287f33ec203f340a9a723 | COMMENT |
| LOW | internal/ghmcp/server.go | 81 | // conditional-request cache per token. It adds ETag/If-None-Match handling | COMMENT |
| LOW | internal/ghmcp/server.go | 281 | // InsidersMode expands to the curated set of feature flags enabled for insiders. | COMMENT |
| LOW | internal/buildinfo/buildinfo.go | 1 | // Package buildinfo contains variables that are set at build time via ldflags. | COMMENT |
| LOW | script/print-mcp-diff-configs/main.go | 1 | // Command print-mcp-diff-configs emits the configuration matrix consumed by | COMMENT |
| LOW | pkg/octicons/required_icons.txt | 1 | # Required Octicons for the GitHub MCP Server | COMMENT |
| LOW | pkg/context/mcp_info.go | 21 | Method string | COMMENT |
| LOW | pkg/sanitize/sanitize.go | 21 | COMMENT | |
| LOW | pkg/sanitize/sanitize.go | 141 | neutralized.WriteString("&") | COMMENT |
| LOW | pkg/sanitize/sanitize.go | 161 | // ideographic variation sequences survive unchanged. Selectors that cannot | COMMENT |
| LOW | pkg/sanitize/sanitize.go | 241 | } | COMMENT |
| LOW | pkg/github/server.go | 61 | // ExcludeTools is a list of tool names that should be disabled regardless of | COMMENT |
| LOW | pkg/github/server.go | 121 | // adapter. Preflight and legacy typed calls then receive the same request | COMMENT |
| LOW | pkg/github/feature_flags.go | 21 | // is not advertised by default, keeping the tool surface small unless opted in. | COMMENT |
| LOW | pkg/github/feature_flags.go | 101 | // 1. Taking the user-supplied flags (from --features or HTTP request | COMMENT |
| LOW | pkg/github/fields_telemetry.go | 1 | package github | COMMENT |
| LOW | pkg/github/copilot.go | 521 | // copilotAssigneeUnavailableMessage is returned when the copilot-swe-agent bot | COMMENT |
| LOW | pkg/github/deprecated_tool_aliases.go | 1 | // deprecated_tool_aliases.go | COMMENT |
| LOW | pkg/github/typed_governance_outputs.go | 401 | COMMENT | |
| LOW | pkg/github/minimal_types.go | 21 | // shrinking large result sets. | COMMENT |
| LOW | pkg/github/ui_capability.go | 61 | COMMENT | |
| LOW | pkg/github/dependencies.go | 201 | } | COMMENT |
| LOW | pkg/github/scope_filter.go | 1 | package github | COMMENT |
| LOW | pkg/github/scope_filter.go | 21 | // - The tool's visibility check accepts the token scopes | COMMENT |
| LOW | pkg/github/repositories_helper.go | 441 | return false | COMMENT |
| LOW | pkg/github/repositories_helper.go | 461 | // a). **Empty Ref:** If `ref` is empty, the repository's default branch is used. | COMMENT |
| LOW | pkg/http/handler.go | 381 | } | COMMENT |
| LOW | pkg/http/server.go | 41 | // Port to listen on (default: 8082). | COMMENT |
| LOW | pkg/http/middleware/body_limit.go | 1 | package middleware | COMMENT |
| LOW | pkg/http/oauth/oauth.go | 41 | // ResourcePath is the externally visible base path for the MCP server (e.g., "/mcp"). | COMMENT |
| LOW | pkg/http/transport/etag.go | 81 | } | COMMENT |
| LOW | pkg/http/transport/bearer.go | 21 | // and port exactly match one of these entries (case-insensitive). This | COMMENT |
| LOW | pkg/http/transport/graphql_features.go | 21 | // import "github.com/github/github-mcp-server/v2/pkg/http/transport" | COMMENT |
| LOW | pkg/http/servercard/card.go | 1 | // Package servercard provides the GitHub MCP Server's MCP Server Card | COMMENT |
| LOW | pkg/http/servercard/card.go | 81 | COMMENT | |
| LOW | pkg/http/mark/mark.go | 1 | // Package mark provides a mechanism for tagging errors with a well-known error value. | COMMENT |
| LOW | pkg/inventory/registry.go | 21 | // Build() | COMMENT |
| LOW | pkg/inventory/registry.go | 41 | toolsetDescriptions map[ToolsetID]string // toolset ID -> description | COMMENT |
| LOW | pkg/inventory/registry.go | 81 | MCPMethodPromptsGet = "prompts/get" | COMMENT |
| LOW | pkg/inventory/server_tool.go | 21 | // The deps parameter is typed as `any` to avoid circular dependencies - callers | COMMENT |
| LOW | pkg/inventory/server_tool.go | 121 | // Icons are provided in both 16x16 and 24x24 sizes. | COMMENT |
| LOW | pkg/inventory/server_tool.go | 141 | HandlerFunc HandlerFunc | COMMENT |
| LOW | pkg/inventory/server_tool.go | 341 | schemaCopy.Properties[prop] = &propCopy | COMMENT |
| LOW | pkg/inventory/builder.go | 21 | // Builder builds a Registry with the specified configuration. | COMMENT |
| LOW | pkg/inventory/builder.go | 101 | // - "default": expands to toolsets marked with Default: true in their metadata | COMMENT |
| LOW | pkg/inventory/builder.go | 121 | } | COMMENT |
| LOW | pkg/inventory/filters.go | 221 | // FilteredTools returns tools filtered by the Enabled function and builder filters. | COMMENT |
| LOW | pkg/toolvalidation/readonlyhint.go | 21 | // candidates for tool-literal validation. | COMMENT |
| LOW | pkg/toolvalidation/readonlyhint.go | 41 | func (v ReadOnlyHintViolation) String() string { | COMMENT |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | cmd/mcpcurl/main.go | 423 | // Step 1: Send MCP initialize request | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 432 | // Step 2: Read initialize response (skip any server notifications) | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 437 | // Step 3: Send initialized notification | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 442 | // Step 4: Send the actual request | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 447 | // Step 5: Read the actual response (skip any server notifications) | COMMENT |
| LOW | docs/toolsets-and-icons.md | 31 | ### Step 1: Choose an Octicon | COMMENT |
| LOW | docs/toolsets-and-icons.md | 35 | ### Step 2: Add Icon to Required Icons List | COMMENT |
| LOW | docs/toolsets-and-icons.md | 48 | ### Step 3: Fetch the Icon Files | COMMENT |
| LOW | docs/toolsets-and-icons.md | 70 | ### Step 4: Update the Toolset Metadata | COMMENT |
| LOW | docs/toolsets-and-icons.md | 84 | ### Step 5: Regenerate Documentation | COMMENT |
| LOW | docs/installation-guides/install-antigravity.md | 19 | #### Step 1: Access MCP Configuration | COMMENT |
| LOW | docs/installation-guides/install-antigravity.md | 31 | #### Step 2: Add Configuration | COMMENT |
| LOW | docs/installation-guides/install-antigravity.md | 50 | #### Step 3: Configure Your Token | COMMENT |
| LOW | docs/installation-guides/install-antigravity.md | 61 | #### Step 4: Restart Antigravity | COMMENT |
| LOW | docs/installation-guides/install-antigravity.md | 65 | #### Step 5: Verify Installation | COMMENT |
| LOW | pkg/github/projects.go | 2688 | // Step 1: Create the iteration field. | COMMENT |
| LOW | pkg/github/projects.go | 2713 | // Step 2: Configure the iteration field with start date and duration. | COMMENT |
| LOW | pkg/github/repositories_helper.go | 365 | // Step 1: Get Git Tree recursively | COMMENT |
| LOW | pkg/github/repositories_helper.go | 376 | // Step 2: Filter tree for matching paths | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/mcpcurl/main.go | 329 | // For boolean, we need to check if it was explicitly set | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 423 | // Step 1: Send MCP initialize request | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 432 | // Step 2: Read initialize response (skip any server notifications) | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 437 | // Step 3: Send initialized notification | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 442 | // Step 4: Send the actual request | COMMENT |
| LOW⚡ | cmd/mcpcurl/main.go | 447 | // Step 5: Read the actual response (skip any server notifications) | COMMENT |
| LOW | pkg/github/projects.go | 2688 | // Step 1: Create the iteration field. | COMMENT |
| LOW | pkg/github/projects.go | 2713 | // Step 2: Configure the iteration field with start date and duration. | COMMENT |
| LOW | pkg/github/repositories_helper.go | 365 | // Step 1: Get Git Tree recursively | COMMENT |
| LOW | pkg/github/repositories_helper.go | 376 | // Step 2: Filter tree for matching paths | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 434 | "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ui/src/apps/pr-edit/App.tsx | 130 | function extractRequestedReviewers(prData: Record<string, unknown>, owner: string): ReviewerItem[] { | CODE |
| LOW | ui/src/apps/issue-write/App.tsx | 146 | function normalizeRawIssueFieldValue( | CODE |
| LOW | ui/src/apps/issue-write/App.tsx | 182 | function parseStringIssueFieldValue( | CODE |
| LOW | ui/src/apps/issue-write/App.tsx | 238 | function normalizeIssueFieldValues( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pkg/toolvalidation/readonlyhint.go | 4 | // such as github-mcp-server-remote) so the same guardrails apply everywhere | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/github/repositories_test.go | 6104 | "name": "John Doe", "email": "john@example.com", | CODE |
| LOW | pkg/github/repositories_test.go | 6117 | "name": "John Doe", "email": "john@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/github/scope_filter.go | 23 | // Example usage: | COMMENT |