Skip to content

Commit f482dcd

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 f42b0b4 commit f482dcd

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
@@ -127,6 +127,7 @@ const ALLOWED_CHANNELS = new Set([
127127
'mcp_task_created',
128128
'mcp_task_closed',
129129
'mcp_task_state_sync',
130+
'mcp_control_changed',
130131
]);
131132

132133
function isAllowedChannel(channel) {

src/components/TaskAITerminal.tsx

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

0 commit comments

Comments
 (0)