Draft
Conversation
Defense-in-depth repo scope enforcement for the GitHub MCP proxy: - Default-deny for unknown tools (allowlist of known tools) - Search query scoping: auto-inject repo:OWNER/REPO, block org:/user: qualifiers - Block non-repo-scoped tools (search_users, search_orgs, get_teams, etc.) - Inject owner/repo when tools omit them - Server-side tool filtering via X-MCP-Toolsets/Tools/Readonly/Lockdown headers - Sensible default toolsets: repos,issues,pull_requests,git,labels - Lockdown mode enabled by default - VM cannot override X-MCP-* headers - Skip body re-serialization when unmodified Also adds GitHub App token generation scripts and comprehensive tests (unit + end-to-end with mock upstream server). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove unused github_app_token.sh (only github_app_token_demo.py is used by claude-vm.sh) - Document token generation flow: GitHub App device flow with repository_id scoping - Rename "Security layers" to "Defense-in-depth" to clarify these are additional layers on top of GitHub's token scoping Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The VM is already sandboxed, so the interactive confirmation for --dangerously-skip-permissions is unnecessary. Pass IS_SANDBOX=1 env var when launching claude CLI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This is a test commit to validate the CI/PR workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Another test commit for workflow validation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code