From 436046a0ffcd20c049ec1fdee8613c15a3375580 Mon Sep 17 00:00:00 2001 From: Mark Wylde Date: Sat, 31 May 2025 00:09:10 +0100 Subject: [PATCH] Attempt to make this work --- src/claude/executor.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/claude/executor.ts b/src/claude/executor.ts index 4aee107..384a245 100644 --- a/src/claude/executor.ts +++ b/src/claude/executor.ts @@ -172,11 +172,19 @@ export class ClaudeExecutor { // Build Claude Code command arguments const args = [ - "--file", promptFile, - "--mcp-config", mcpConfigFile, - "--model", this.config.model || "claude-3-7-sonnet-20250219" + "-p", `@${promptFile}` ]; + // Add MCP config if available + if (mcpConfigFile) { + args.push("--mcp-config", mcpConfigFile); + } + + // Add model if specified + if (this.config.model) { + args.push("--model", this.config.model); + } + // Add allowed tools if specified if (tools.allowed.length > 0) { args.push("--allowed-tools", tools.allowed.join(","));