Skip to content

Commit c830965

Browse files
authored
Merge branch 'main' into dependabot/go_modules/github.com/migueleliasweb/go-github-mock-1.5.0
2 parents 7fe0262 + 3d6ce68 commit c830965

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# https://github.com/docker/metadata-action
7171
- name: Extract Docker metadata
7272
id: meta
73-
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
73+
uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
7474
with:
7575
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7676
tags: |

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
with:
1919
go-version: stable
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v8
21+
uses: golangci/golangci-lint-action@v9
2222
with:
2323
version: v2.5

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.3-alpine AS build
1+
FROM golang:1.25.4-alpine AS build
22
ARG VERSION="dev"
33

44
# Set the working directory

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ Possible options:
12181218

12191219
## Dynamic Tool Discovery
12201220

1221-
**Note**: This feature is currently in beta and may not be available in all environments. Please test it out and let us know if you encounter any issues.
1221+
**Note**: This feature is currently in beta and is not available in the Remote GitHub MCP Server. Please test it out and let us know if you encounter any issues.
12221222

12231223
Instead of starting with all tools enabled, you can turn on dynamic toolset discovery. Dynamic toolsets allow the MCP host to list and enable toolsets in response to a user prompt. This should help to avoid situations where the model gets confused by the sheer number of tools available.
12241224

@@ -1256,6 +1256,25 @@ docker run -i --rm \
12561256
ghcr.io/github/github-mcp-server
12571257
```
12581258

1259+
## Lockdown Mode
1260+
1261+
Lockdown mode limits the content that the server will surface from public repositories. When enabled, requests that fetch issue details will return an error if the issue was created by someone who does not have push access to the repository. Private repositories are unaffected, and collaborators can still access their own issues.
1262+
1263+
```bash
1264+
./github-mcp-server --lockdown-mode
1265+
```
1266+
1267+
When running with Docker, set the corresponding environment variable:
1268+
1269+
```bash
1270+
docker run -i --rm \
1271+
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
1272+
-e GITHUB_LOCKDOWN_MODE=1 \
1273+
ghcr.io/github/github-mcp-server
1274+
```
1275+
1276+
At the moment lockdown mode applies to the issue read toolset, but it is designed to extend to additional data surfaces over time.
1277+
12591278
## i18n / Overriding Descriptions
12601279

12611280
The descriptions of the tools can be overridden by creating a

docs/installation-guides/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,5 @@ After installation, you may want to explore:
9494
- **Toolsets**: Enable/disable specific GitHub API capabilities
9595
- **Read-Only Mode**: Restrict to read-only operations
9696
- **Dynamic Tool Discovery**: Enable tools on-demand
97+
- **Lockdown Mode**: Hide public issue details created by users without push access
9798

docs/remote-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The Remote GitHub MCP server has optional headers equivalent to the Local server
5757

5858
- `X-MCP-Toolsets`: Comma-separated list of toolsets to enable. E.g. "repos,issues".
5959
- Equivalent to `GITHUB_TOOLSETS` env var for Local server.
60-
- If the list is empty, default toolsets will be used. If a bad toolset is provided, the server will fail to start and emit a 400 bad request status. Whitespace is ignored.
60+
- If the list is empty, default toolsets will be used. Invalid or unknown toolsets are silently ignored without error and will not prevent the server from starting. Whitespace is ignored.
6161
- `X-MCP-Readonly`: Enables only "read" tools.
6262
- Equivalent to `GITHUB_READ_ONLY` env var for Local server.
6363
- If this header is empty, "false", "f", "no", "n", "0", or "off" (ignoring whitespace and case), it will be interpreted as false. All other values are interpreted as true.

server.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
33
"name": "io.github.github/github-mcp-server",
44
"description": "Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.",
5+
"title": "GitHub",
56
"status": "active",
67
"repository": {
78
"url": "https://github.com/github/github-mcp-server",
@@ -61,4 +62,4 @@
6162
]
6263
}
6364
]
64-
}
65+
}

0 commit comments

Comments
 (0)