Skip to content

Commit 0cb8d99

Browse files
brookscclaude
andcommitted
fix(mcp): pass --mcp-config to coordinator agent on spawn
The mcpConfigPath was stored on the task but never forwarded as a CLI argument, so the coordinator agent had no MCP tools available and fell back to bash-based orchestration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9b24262 commit 0cb8d99

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

electron/preload.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ const ALLOWED_CHANNELS = new Set([
126126
'mcp_task_created',
127127
'mcp_task_closed',
128128
'mcp_task_state_sync',
129+
'mcp_control_changed',
129130
]);
130131

131132
function isAllowedChannel(channel) {

src/components/TaskAITerminal.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ export function TaskAITerminal(props: TaskAITerminalProps) {
221221
...(props.task.skipPermissions && a().def.skip_permissions_args?.length
222222
? (a().def.skip_permissions_args ?? [])
223223
: []),
224+
...(props.task.mcpConfigPath
225+
? ['--mcp-config', props.task.mcpConfigPath]
226+
: []),
224227
]}
225228
cwd={props.task.worktreePath}
226229
stepsEnabled={props.task.stepsEnabled}

0 commit comments

Comments
 (0)