From 30276e8a1ba847719934beff7c8ede6b5f8ad5ee Mon Sep 17 00:00:00 2001 From: li Date: Tue, 13 Jan 2026 21:14:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Windows=20MCP=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20npx=20=E5=91=BD=E4=BB=A4=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(v1.7.23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 applyPlatformCommand 中重复追加的 originalCommand - getMcpCommand 已返回完整命令,无需再追加 --- package.json | 2 +- src/utils/mcp.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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] } } }