[cc-3-8-x-mcp] 重构: 改为 Gateway 私有 Editor Bridge

改了什么:移除项目级 MCP Server 与 universal-mcp-sdk,新增带随机 token 的本机 Editor Bridge、Gateway v2 注册和分级超时转发。

为什么:MCP 协议与多项目路由统一交给全局 Gateway,项目扩展只保留 Cocos Editor.Message 和离线 CLI 职责。

影响范围:扩展启动与面板、编辑器注册、router 转发、安全边界、使用文档及自动化测试。
This commit is contained in:
furao
2026-08-14 12:10:09 +08:00
parent a3b016ea8e
commit ea364d3470
16 changed files with 1167 additions and 314 deletions
+8 -8
View File
@@ -1,12 +1,12 @@
{
"package_version": 2,
"version": "2.0.0",
"version": "3.0.0",
"name": "cc-3-8-x-mcp",
"title": "Cocos Creator 3.8.x MCP Server",
"description": "把 Cocos Creator 3.8.x 编辑器能力scene/asset-db/preview/local)以 MCP 协议暴露给外部 AI 客户端;兼容原 dev-reload 信号文件通道",
"title": "CC 3.8.x MCP Editor Bridge",
"description": "把 Cocos Creator 3.8.x 编辑器能力通过私有本机 Bridge 接入全局 cocos-mcp-gateway;兼容原 dev-reload 信号文件通道",
"license": "Apache-2.0",
"author": "付饶",
"editor": ">=3.8.0",
"editor": ">=3.8.0 <3.9.0",
"main": "./main.js",
"panels": {
"default": {
@@ -30,15 +30,15 @@
},
{
"path": "i18n:menu.extension/Cocos MCP",
"label": "重启 MCP Server",
"message": "restart-server"
"label": "重启 Editor Bridge",
"message": "restart-bridge"
}
],
"messages": {
"open-panel": { "methods": ["openPanel"] },
"restart-server": { "methods": ["restartServer"] },
"restart-bridge": { "methods": ["restartBridge"] },
"get-bridge-config": { "methods": ["getBridgeConfig"] },
"get-status": { "methods": ["getStatus"] },
"get-mcp-config": { "methods": ["getMcpConfig"] },
"refresh-assets": { "methods": ["refreshAssets"] },
"query-preview-url": { "methods": ["queryPreviewUrl"] },
"trigger-refresh": { "methods": ["triggerRefresh"] },