diff --git a/package.json b/package.json index 12a4016..1e44c75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccg-workflow", - "version": "1.7.22", + "version": "1.7.23", "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流", "type": "module", "packageManager": "pnpm@10.17.1", diff --git a/src/utils/mcp.ts b/src/utils/mcp.ts index 30ec128..3dca02b 100644 --- a/src/utils/mcp.ts +++ b/src/utils/mcp.ts @@ -91,11 +91,10 @@ export function applyPlatformCommand(config: McpServerConfig): void { // Only modify if command needs Windows wrapper (cmd /c) if (mcpCmd[0] === 'cmd') { - const originalCommand = config.command const originalArgs = config.args || [] - config.command = mcpCmd[0] // 'cmd' - config.args = [...mcpCmd.slice(1), originalCommand, ...originalArgs] // ['/c', 'npx', ...originalArgs] + // getMcpCommand 已返回 ['cmd', '/c', 'npx'],slice(1) = ['/c', 'npx'] + config.args = [...mcpCmd.slice(1), ...originalArgs] } } }