Repository navigation
Conversation
Entire-Checkpoint: 079190ad7aab
3 tasks
…phase-agents-receive-the-user-s-claude-ai-
…e-user-s-claude-ai-
admarble
deleted the
feature/1396-fix-mcp-phase-agents-receive-the-user-s-claude-ai-
branch
October 16, 2026 12:56
This was referenced Oct 17, 2026
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
Phase agents were receiving the account's claude.ai connectors (Gmail, Docs, Drive, Calendar, Figma). The SDK adds them outside the #936
mcpServersallowlist, so an untrusted issue body could steer abypassPermissionsagent into a connected Gmail or Docs tool. The driver's onequery()call now passessettings: { disableClaudeAiConnectors: true }.src/lib/workflow/drivers/claude-code.ts: the option sits in the options object. No later spread (resume,env,mcpServers,model,effort) setssettings, so nothing overrides it.strictMcpConfigisn't used, because it would also drop project.mcp.json, plugin and agent MCP (graph D-3).docs/guides/mcp-integrations.md: one paragraph says the connectors are off for phase agents, and how.AC mapping
dist/build ofmainis graph-2026-10-freeze-b's smoke node (I-6: MCP phases run the npm-pinned 2.19.0 and can't observe this fix). The lever was measured on CC 2.1.289 and 2.1.296 indocs/internal/graph-2026-10-freeze-b/evidence/probe-1396.mdnpx vitest run src/lib/workflow/drivers/claude-code.test.ts: 34/34. Mutation recorded belowgrep -n "disableClaudeAiConnectors" docs/guides/mcp-integrations.md→ line 36Because AC-1 is post-merge proof, this PR does not close the issue. #1396 stays open until #1451's report pastes the
system/initserver list.Mutation verification
Mutation-verified: AC-2 — removed the
settings: { disableClaudeAiConnectors: true }line from thequery()options;claude-code.test.ts > ClaudeCodeDriver > MCP allowlist wiring (#936) > passes settings.disableClaudeAiConnectors to query() (mcp: true) (#1396 AC-2)failed, along with themcp: falsecase and no other test; restored.Follow-ups
usesSdkMcp = falseand don't run Claude Code, which is what fetches the account's connectors. Whether their own user-level MCP configs reach a phase agent is a separate question, and the runner has raised it with the owner.Part of #1396
🤖 Generated with Claude Code