Files
ccg-workflow/package.json
T
li bca0d444be feat: 添加跨平台 MCP 配置自动修复功能 (v1.4.2)
从 ZCF 项目移植完整的跨平台 MCP 配置逻辑,彻底解决 Windows 用户 MCP 安装问题。

新增功能:
- 自动 Windows 命令包装 (cmd /c npx ...)
- MCP 配置自动备份 (~/.claude/backup/)
- 新增 `npx ccg diagnose-mcp` 诊断工具
- 新增 `npx ccg fix-mcp` 修复工具 (Windows)

新增文件:
- src/utils/platform.ts - 跨平台检测和命令包装
- src/utils/mcp.ts - MCP 配置管理和自动修复
- src/commands/diagnose-mcp.ts - MCP 诊断命令

优化内容:
- installAceTool() - 使用 buildMcpServerConfig() 和 fixWindowsMcpConfig()
- uninstallAceTool() - 添加自动备份功能
- 所有 MCP 配置操作支持自动备份和 Windows 兼容性

技术细节:
Windows 命令自动包装: npx → cmd /c npx
用户无需手动设置环境变量或修改配置
安装时自动应用,无需额外操作

升级说明:
- 新用户: npx ccg-workflow@latest init
- Windows 现有用户: npx ccg fix-mcp
- 验证配置: npx ccg diagnose-mcp
2026-01-06 15:57:16 +08:00

63 lines
1.3 KiB
JSON

{
"name": "ccg-workflow",
"version": "1.4.2",
"description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
"type": "module",
"packageManager": "pnpm@10.17.1",
"author": {
"name": "CCG Contributors"
},
"license": "MIT",
"keywords": [
"claude",
"codex",
"gemini",
"multi-model",
"ai",
"collaboration",
"cli",
"workflow"
],
"bin": {
"ccg": "bin/ccg.mjs"
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"bin",
"dist",
"templates"
],
"scripts": {
"dev": "tsx src/cli.ts",
"build": "unbuild",
"start": "node bin/ccg.mjs",
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm build",
"lint": "eslint",
"lint:fix": "eslint --fix"
},
"dependencies": {
"ansis": "^4.1.0",
"cac": "^6.7.14",
"fs-extra": "^11.3.2",
"i18next": "^25.5.2",
"i18next-fs-backend": "^2.6.0",
"inquirer": "^12.9.6",
"ora": "^9.0.0",
"pathe": "^2.0.3",
"smol-toml": "^1.4.2"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.9",
"@types/node": "^22.0.0",
"eslint": "^9.36.0",
"tsx": "^4.20.5",
"typescript": "^5.9.2",
"unbuild": "^3.6.1"
}
}