Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
5a1a386
Preserve versioned STDIO API user agents across MCP protocols (#3323)
jidicula Sep 30, 2026
63f5595
Always enable MCP Apps UI; remove remote_mcp_ui_apps flag gate (#3348)
SamMorrowDrums Oct 1, 2026
a1f6500
Use source revisions for non-release Docker builds (#3357)
jidicula Oct 1, 2026
85b0399
Add granular tools to hide and unhide issue comments, PR review comme…
timrogers Oct 1, 2026
38cb0c4
fix(pull_request_reviews): Update pending pull request review lookup …
Copilot Oct 2, 2026
cd50233
build(deps): remediate npm alerts and refresh safe dependencies (#3370)
SamMorrowDrums Oct 2, 2026
fbeba3c
build: upgrade golangci-lint to v2.14.0 (#3380)
SamMorrowDrums Oct 2, 2026
5e39ec8
build(deps): upgrade go-github to v92.0.0 (#3381)
SamMorrowDrums Oct 2, 2026
f89f884
build(ui): upgrade TypeScript 7 and align Node 26 toolchain (#3379)
SamMorrowDrums Oct 2, 2026
876195b
feat(ui): migrate MCP Apps SDK to v2 (#3378)
SamMorrowDrums Oct 2, 2026
36e5c48
ci: migrate cosign to v3 and dual-publish image signatures (#3382)
SamMorrowDrums Oct 2, 2026
f10e4e1
build(ui): migrate to React 19 and Primer React 38 (#3383)
SamMorrowDrums Oct 2, 2026
71ef826
perf: cache encoded tools/list schemas (#3407)
SamMorrowDrums Oct 3, 2026
bf0f67f
Pin GitHub Actions to commit SHAs (#3259)
github-security-bot Oct 6, 2026
18fb782
feat(inventory): add typed MCP tool registration foundation (#3371)
SamMorrowDrums Oct 6, 2026
9cbd4b2
feat(context): add typed tool schemas and outputs (#3377)
SamMorrowDrums Oct 6, 2026
1feeae4
feat(comments): add typed visibility tool inputs and outputs (#3384)
SamMorrowDrums Oct 6, 2026
26bf4c4
feat(search): add typed projected result outputs (#3386)
SamMorrowDrums Oct 6, 2026
70891c0
feat(security): add typed security alert outputs (#3387)
SamMorrowDrums Oct 6, 2026
8b2656a
feat: type discussion and notification tool outputs (#3388)
SamMorrowDrums Oct 6, 2026
c4ed8cb
feat(repos): add typed commit tool outputs (#3389)
SamMorrowDrums Oct 6, 2026
5e737b4
feat(issues): add typed metadata, comment, and dependency outputs (#3…
SamMorrowDrums Oct 6, 2026
7894659
feat(repos): complete typed repository tool outputs (#3392)
SamMorrowDrums Oct 6, 2026
b628491
feat(issues): add protocol-gated typed consolidated issue tools (#3393)
SamMorrowDrums Oct 6, 2026
d6a8ac1
Type granular issue MCP inputs and protocol-gated outputs (#3394)
SamMorrowDrums Oct 6, 2026
15e4b32
refactor(search): type repository, user, org and commit search tools …
SamMorrowDrums Oct 6, 2026
867131b
refactor(pull-requests): migrate consolidated PR tools to typed input…
SamMorrowDrums Oct 6, 2026
da2cbc8
refactor(pull-requests): type granular MCP tools (#3397)
SamMorrowDrums Oct 6, 2026
2d5ad6e
refactor(actions): type consolidated MCP tools (#3398)
SamMorrowDrums Oct 6, 2026
cb29040
Address typed output compatibility gaps (#3433)
kerobbi Oct 6, 2026
6330b02
ci(mcp-diff): prebuild HTTP server and fail when a side is unreachabl…
SamMorrowDrums Oct 6, 2026
55edd58
fix(go)!: use the v2 module path for Go consumers (#3445)
SamMorrowDrums Oct 7, 2026
eb47a99
fix(inventory): retain typed tool header validation (#3454)
SamMorrowDrums Oct 8, 2026
07e2466
build(deps): bump @modelcontextprotocol/client in /ui (#3462)
dependabot[bot] Oct 12, 2026
f727c8b
build(deps-dev): bump @vitejs/plugin-react from 6.1.1 to 6.1.2 in /ui…
dependabot[bot] Oct 13, 2026
c59e8c1
fix: encode repository resource URIs as UTF-8 (#3437)
lorenzozanee Oct 13, 2026
796afb7
fix(repos): return a resource link for files over 1 MB in get_file_co…
jayhemnani9910 Oct 15, 2026
e3809fe
Add cursor pagination to list_label (#3505)
A-Georgiou Oct 15, 2026
b98d115
upgrade to Go 1.27.3 for compromised CA mitigation (#3540)
marcherschel Oct 21, 2026
f385262
build(deps-dev): bump @types/node from 26.6.4 to 26.6.5 in /ui (#3516)
dependabot[bot] Oct 22, 2026
6e3e90c
docs: fix broken MCP SDKs link in host-integration.md (#3598)
muba76ma Oct 28, 2026
0c4d1f5
build(deps): bump @primer/octicons-react from 19.38.0 to 19.40.0 in /…
dependabot[bot] Oct 28, 2026
f5dd516
build(deps-dev): bump vite-plugin-singlefile from 2.3.3 to 2.3.4 in /…
dependabot[bot] Oct 28, 2026
972ad42
build(deps): bump golang.org/x/net from 0.59.0 to 0.61.0 (#3509)
dependabot[bot] Oct 28, 2026
f692b2d
build(deps): bump github.com/go-chi/chi/v5 from 5.3.2 to 5.4.0 (#3508)
dependabot[bot] Oct 28, 2026
ea1e937
build(deps): bump github/codeql-action/start-proxy from 4.38.2 to 4.3…
dependabot[bot] Oct 28, 2026
f2a07cd
Fix merged state in pull request list output (#3468)
po-et Oct 28, 2026
3366807
Add two experimental MCP tools to create, read, update, and delete ar…
veralizeth Nov 2, 2026
4f250f5
fix: reject integer parameters at or above 2^63 (#3650)
JoannaaKL Nov 3, 2026
4bcdcdf
Replace retired GitHub Models triage with agentic workflows (#3629)
JoannaaKL Nov 3, 2026
99d6d65
fix: return non-nil empty completion results (#3665)
omgitsads Nov 4, 2026
6fbcd00
Avoid overflow in validation error capacity (#3772)
omgitsads Nov 9, 2026
f66a8d5
feat(skills): replace server instructions with filtered MCP skills (#…
SamMorrowDrums Nov 13, 2026
0663b83
add optional secret hiding to secret scanning alert tools (#3838)
AshwinMohan86 Nov 13, 2026
069b6f7
chore(sync): merge github/github-mcp-server main
ctennis Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ third-party
**/*.yml
**/*.yaml
**/*.md
!pkg/skills/catalog/skills/**/*.md
**/*_test.go
LICENSE
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/workflows/*.lock.yml linguist-generated=true
10 changes: 5 additions & 5 deletions .github/actions/build-ui/action.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Build UI
description: Restore cached UI HTML artifacts, or set up Node and run script/build-ui on cache miss.
description: Restore tested UI HTML artifacts, or set up Node and run script/build-ui on cache miss.

runs:
using: composite
steps:
- name: Cache UI artifacts
id: cache-ui
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: |
pkg/github/ui_dist/get-me.html
pkg/github/ui_dist/issue-write.html
pkg/github/ui_dist/pr-write.html
pkg/github/ui_dist/pr-edit.html
key: ui-dist-v2-${{ hashFiles('ui/package-lock.json', 'ui/package.json', 'ui/index.html', 'ui/tsconfig*.json', 'ui/vite.config.ts', 'ui/src/**', 'ui/scripts/**') }}
key: ui-dist-v3-${{ hashFiles('.github/actions/build-ui/action.yml', 'script/build-ui', 'ui/package-lock.json', 'ui/package.json', 'ui/index.html', 'ui/tsconfig*.json', 'ui/vite.config.ts', 'ui/src/**', 'ui/scripts/**') }}
enableCrossOsArchive: true

- name: Set up Node.js
if: steps.cache-ui.outputs.cache-hit != 'true'
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: "22"
node-version-file: ui/package.json
cache: npm
cache-dependency-path: ui/package-lock.json

Expand Down
9 changes: 9 additions & 0 deletions .github/aw/actions-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entries": {
"github/gh-aw-actions/setup@v1.0.1": {
"repo": "github/gh-aw-actions/setup",
"version": "v1.0.1",
"sha": "221ba4f4319de6b8e809d1a15528b3ae6a818aa5"
}
}
}
25 changes: 16 additions & 9 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This is the **GitHub MCP Server**, a Model Context Protocol (MCP) server that connects AI tools to GitHub's platform. It enables AI agents to manage repositories, issues, pull requests, workflows, and more through natural language.

**Key Details:**
- **Language:** Go 1.24+ (~38k lines of code)
- **Language:** Go 1.27.3+ (~38k lines of code)
- **Type:** MCP server application with CLI interface
- **Primary Package:** github-mcp-server (stdio MCP server - **this is the main focus**)
- **Secondary Package:** mcpcurl (testing utility - don't break it, but not the priority)
Expand Down Expand Up @@ -92,9 +92,9 @@ go test ./pkg/github -run TestGetMe

### Key Configuration Files

- **go.mod / go.sum:** Go module dependencies (Go 1.24.0+)
- **go.mod / go.sum:** Go module dependencies (Go 1.27.3+)
- **.golangci.yml:** Linter configuration (v2 format, ~15 linters enabled)
- **Dockerfile:** Multi-stage build (golang:1.25.8-alpine → distroless)
- **Dockerfile:** Multi-stage build (golang:1.27.3-alpine → distroless)
- **server.json:** MCP server metadata for registry
- **.goreleaser.yaml:** Release automation config
- **.gitignore:** Excludes bin/, dist/, vendor/, *.DS_Store, github-mcp-server binary
Expand Down Expand Up @@ -189,12 +189,19 @@ All workflows run on push/PR unless noted. Located in `.github/workflows/`:

1. Add tool implementation in `pkg/github/` (e.g., `foo_tools.go`)
2. Register tool in appropriate toolset in `pkg/github/` or `pkg/toolsets/`
3. Write unit tests following the tool test pattern
4. Run `UPDATE_TOOLSNAPS=true go test ./...` to create snapshot
5. Run `script/generate-docs` to update README
6. Run `script/lint` and `script/test` before committing
7. If e2e tests are relevant, update `e2e/e2e_test.go` using existing test style
8. Commit code + snapshots + README changes together
3. Update the relevant bundled skill, or add a reasoned exemption in `pkg/skills/catalog/availability_test.go`. Every tool must be covered or explicitly exempted.
4. Write unit tests following the tool test pattern
5. Run `UPDATE_TOOLSNAPS=true go test ./...` to create snapshot
6. Run `script/generate-docs` to update README
7. Run `script/lint` and `script/test` before committing
8. If e2e tests are relevant, update `e2e/e2e_test.go` using existing test style
9. Commit code + snapshots + README changes together

When adding or changing a toolset `InstructionsFunc`, update the associated
skills as well: skills mode suppresses those instructions. The
`TestToolsetInstructionsAreCoveredBySkills` failure names the skills to revisit;
after updating them, refresh its digest with
`UPDATE_SKILLS_INSTRUCTIONS=true go test ./pkg/github -run TestToolsetInstructionsAreCoveredBySkills -count=1`.

### Fixing a Bug

Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/ui"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
Expand All @@ -17,3 +21,5 @@ updates:
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
44 changes: 0 additions & 44 deletions .github/prompts/bug-report-review.prompt.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/prompts/default-issue-review.prompt.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ Note: if you're renaming tools, you *must* add the tool aliases. For more inform

- [ ] Not needed
- [ ] Updated (README / docs / examples)

## Skills
<!-- If this PR adds or changes MCP tools or toolset instructions, update the relevant bundled skills or explain why no skill applies. -->
- [ ] Updated relevant skills or confirmed no bundled skill applies
27 changes: 0 additions & 27 deletions .github/workflows/ai-issue-assessment.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/close-inactive-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v11
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11
with:
days-before-issue-stale: ${{ env.PR_DAYS_BEFORE_STALE }}
days-before-issue-close: ${{ env.PR_DAYS_BEFORE_CLOSE }}
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/code-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
runner: '["ubuntu-22.04"]'
steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Initialize CodeQL
uses: github/codeql-action/init@v4.37.9
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -61,28 +61,23 @@ jobs:
threat-models: [ ]
- name: Setup proxy for registries
id: proxy
uses: github/codeql-action/start-proxy@v4.37.9
uses: github/codeql-action/start-proxy@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
registries_credentials: ${{ secrets.GITHUB_REGISTRIES_PROXY }}
language: ${{ matrix.language }}

- name: Configure
uses: github/codeql-action/resolve-environment@v4.37.9
id: resolve-environment
with:
language: ${{ matrix.language }}
- name: Setup Go
uses: actions/setup-go@v7
if: matrix.language == 'go' && fromJSON(steps.resolve-environment.outputs.environment).configuration.go.version
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
if: matrix.language == 'go'
with:
go-version: ${{ fromJSON(steps.resolve-environment.outputs.environment).configuration.go.version }}
go-version-file: "go.mod"
cache: false

- name: Set up Node.js (for JavaScript CodeQL)
if: matrix.language == 'javascript'
uses: actions/setup-node@v7
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: "20"
node-version-file: ui/package.json
cache: "npm"
cache-dependency-path: ui/package-lock.json

Expand All @@ -91,10 +86,10 @@ jobs:
uses: ./.github/actions/build-ui

- name: Autobuild
uses: github/codeql-action/autobuild@v4.37.9
uses: github/codeql-action/autobuild@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4.37.9
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
env:
CODEQL_PROXY_HOST: ${{ steps.proxy.outputs.proxy_host }}
CODEQL_PROXY_PORT: ${{ steps.proxy.outputs.proxy_port }}
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 #v4.1.2
with:
cosign-release: "v2.2.4"
cosign-release: "v3.1.3"

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
type=raw,value=latest,enable=${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') }}

- name: Go Build Cache for Docker
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: go-build-cache
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
Expand All @@ -106,7 +106,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -116,23 +116,26 @@ jobs:
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: |
VERSION=${{ github.ref_name }}
VERSION=${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}
secrets: |
oauth_client_id=${{ secrets.OAUTH_CLIENT_ID }}
oauth_client_secret=${{ secrets.OAUTH_CLIENT_SECRET }}

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# Publish both v2-compatible .sig tags and native Sigstore bundles.
# --yes also consents to publishing signing metadata to the public log.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
- name: Sign the published Docker image (legacy)
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

run: cosign sign --yes --new-bundle-format=false --use-signing-config=false --registry-referrers-mode=legacy "${REGISTRY}/${IMAGE_NAME}@${DIGEST}"

- name: Sign the published Docker image (native bundle)
if: ${{ github.event_name != 'pull_request' }}
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
run: cosign sign --yes "${REGISTRY}/${IMAGE_NAME}@${DIGEST}"
Loading
Loading