Attempt to make this work

This commit is contained in:
Mark Wylde
2025-05-31 00:09:10 +01:00
parent 12940797c7
commit 436046a0ff

View File

@@ -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(","));