Skip to content

Commit 7467c1b

Browse files
wesmclaude
andcommitted
fix: use --disable-builtin-mcps for copilot sandboxing
Replace --available-tools (which doesn't effectively restrict tools) with --disable-builtin-mcps to prevent MCP server access. Built-in tools remain available but are mitigated by running from a temp directory with a filtered environment and --no-ask-user. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 129c591 commit 7467c1b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/insight/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func generateCopilot(
468468
"--silent",
469469
"--no-custom-instructions",
470470
"--no-ask-user",
471-
"--available-tools",
471+
"--disable-builtin-mcps",
472472
)
473473
cmd.Dir = os.TempDir()
474474
cmd.Env = cleanEnv()

internal/insight/generate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func TestGenerateCopilot_CLIFlags(t *testing.T) {
477477
"--silent",
478478
"--no-custom-instructions",
479479
"--no-ask-user",
480-
"--available-tools",
480+
"--disable-builtin-mcps",
481481
}
482482
if len(args) != len(wantArgs) {
483483
t.Fatalf("args = %v, want %v", args, wantArgs)

0 commit comments

Comments
 (0)