LockdownLens scored 16 GitHub MCP server entries, and the binary contradicts its README
LockdownLens checks agent configs for GitHub's MCP server against its Lockdown, read-only and toolset switches. Our fixtures scored 4 critical, and the pinned binary reversed a documented rule.
By David Discua
Measured in the lab
- 16
- server entries scored
- 4
- graded critical
- 37
- SARIF results
- 356 ms
- scan of all fixtures
- fixtures/safe exits 0 and fixtures/risky exits 1 at --fail-on high
- GITHUB_READ_ONLY=yes flagged as a switch that is silently off
- --dynamic-toolsets flagged because the pinned server will not start with it
- 24 of 24 recorded scenarios re-ran clean against the pinned binary
- Token values never printed in any report
From reports/lockdownlens.json · run on October 21, 2026. Pinned github/github-mcp-server v2.0.2 (eb47a99ddb86), facts extracted from a binary built at that tag; 13 fixture config files; scan time is one run
How it is wired
01/03LockdownLens reads your agent's MCP config files.
LockdownLens reads the MCP config files your agents use (Claude Code, Cursor, VS Code, Claude Desktop, Codex and Gemini CLI) and checks every entry for GitHub's MCP server against that server's own safety switches: Lockdown Mode, read-only, toolsets and the token. Each entry gets a 0 to 100 risk score, SARIF output and an exit code for CI. Our fixtures produced 4 critical, 3 high, 3 medium and 6 low entries, and building the pin turned up a rule the server's README states backwards. The catch is that LockdownLens reads configuration only, and Lockdown Mode itself is a content filter with limits.
The catch
LockdownLens never connects to your server. It does not watch Lockdown Mode filter anything at runtime, and it does not check what a token can do on a given repository. The upstream project calls Lockdown "a best-effort content filter" and says it is not an authorization boundary, so a score of 0 does not make an over-scoped token safe. Fine-grained PATs and GitHub App tokens do not report their permissions through X-OAuth-Scopes, so their scopes stay unknown. The hosted api.githubcopilot.com server does not expose its version, so remote entries are counted against the v2.0.2 open-source inventory. The scoring weights and grade thresholds are our judgment.
What we ran (keyless)
bun install --frozen-lockfile
bun run lockdownlens scan fixtures/risky
bun run lockdownlens scan fixtures/safe
bun run report
From reports/lockdownlens.json and reports/measured.json, run on October 21, 2026 against github/github-mcp-server v2.0.2. A selection of the risky fixtures:
| Fixture | What is wrong | Score | Grade |
|---|---|---|---|
risky/vscode/.vscode/mcp.json | GITHUB_READ_ONLY=yes and GITHUB_LOCKDOWN_MODE=on, both read as false; --read-only passed to Docker; :latest image | 89 | critical |
risky/cursor/.cursor/mcp.json | OAuth login with write scopes, write tools on, Lockdown off | 81 | critical |
risky/claude-code/.mcp.json | --toolsets=all (34 write tools), token literal in the file | 75 | critical |
risky/claude-desktop/claude_desktop_config.json | deprecated npm server with no safety switches | 60 | high |
risky/claude-code-user/.claude.json | --dynamic-toolsets, removed in v1.1.0, so the server will not start | 38 | medium |
All six safe fixtures scored 0. The run covered 13 config files and 16 GitHub server entries, wrote 37 SARIF results and took 356 ms. With --fail-on high, fixtures/safe exits 0 and fixtures/risky exits 1.
Building the pin also showed where the docs and the binary differ. The pinned README says GITHUB_TOOLSETS takes precedence over the command line flag, and the binary does the opposite: with --toolsets=repos and GITHUB_TOOLSETS=issues, only repos tools are served. Env booleans go through Go's strconv.ParseBool, so yes and on both mean off. With no flags the server exposes 46 tools, 19 of them write tools. With --toolsets=all it exposes 91, 34 of them write tools.
The optional live tests also passed. All 24 recorded non-error scenarios re-ran clean against the built binary, and a token check against api.github.com read scopes from X-OAuth-Scopes (2 tests pass).
How it is wired
bun run pin:extract builds the server at the pinned tag, reads its flags from --help, lists tools per toolset over MCP and records 25 argv and env scenarios with the tools the real server returned. The engine replays those scenarios in CI with no keys. For each config entry it works out the settings the server would run with, including Docker -e pass-through and flag-versus-env precedence, then scores rules LL001 to LL019.
Minilab (open source)
Upstream is github/github-mcp-server (33,905 stars, MIT, Go, as of October 24, 2026). Run bun run lockdownlens scan . on your own repo, add --home to include user-level configs, and read the per-entry findings in the Markdown report.
Run it yourself
SkilledDragonCorp/lockdownlens
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run lockdownlens scan fixtures/riskySkilledDragon is not affiliated with GitHub, Microsoft, Anthropic, Cursor, OpenAI or Google. Scores are from fixture configs in our own keyless lab run, and the weights are our judgment; re-run the scan before relying on them. Marks belong to their owners.
All labs