You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1256,6 +1256,25 @@ docker run -i --rm \
1256
1256
ghcr.io/github/github-mcp-server
1257
1257
```
1258
1258
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
+
1259
1278
##i18n / Overriding Descriptions
1260
1279
1261
1280
The descriptions of the tools can be overridden by creating a