aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/claude/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/claude/index.ts b/src/main/claude/index.ts
index 7867a9f..d576c15 100644
--- a/src/main/claude/index.ts
+++ b/src/main/claude/index.ts
@@ -51,6 +51,10 @@ export async function sendMessage({
51 // Load global model override (empty string or null → let SDK use its default) 51 // Load global model override (empty string or null → let SDK use its default)
52 const configuredModel = getSetting("model") || undefined; 52 const configuredModel = getSetting("model") || undefined;
53 53
54 // Load MCP servers config (JSON string → object, or undefined if not set)
55 const mcpServersJson = getSetting("mcpServers");
56 const mcpServers = mcpServersJson ? JSON.parse(mcpServersJson) : undefined;
57
54 const phaseConfig = getPhaseConfig( 58 const phaseConfig = getPhaseConfig(
55 session.phase as Phase, 59 session.phase as Phase,
56 sessionDir, 60 sessionDir,
@@ -63,6 +67,7 @@ export async function sendMessage({
63 options: { 67 options: {
64 cwd: project.path, 68 cwd: project.path,
65 model: configuredModel, 69 model: configuredModel,
70 mcpServers,
66 resume: session.claude_session_id ?? undefined, 71 resume: session.claude_session_id ?? undefined,
67 tools: phaseConfig.tools, 72 tools: phaseConfig.tools,
68 permissionMode: phaseConfig.permissionMode, 73 permissionMode: phaseConfig.permissionMode,