chore(mcp): 换用 cocos-mcp-server 扩展, .mcp.json 改 HTTP 直连
旧扩展 @iflow-mcp/harady-cocos-creator-mcp(164 个细粒度工具 + stdio-bridge
转发)整个删除, 换成 cocos-mcp-server v1.7.9(16 个聚合工具, 靠 action 分派)。
新扩展自身起 streamable-http 服务, 不再需要 stdio 桥, 故 .mcp.json 从
node + stdio-bridge.js 改为 { type: "http", url: "http://127.0.0.1:3000/mcp" }。
原配置指向的 client/stdio-bridge.js 已随旧扩展删除, MCP 因此加载失败。
服务器名保留 cocos-creator-mcp(而非 INSTALL.md 建议的 cocos-creator), 以免
打断 CLAUDE.md、cocos-mcp 技能与 settings.local.json 里的
mcp__cocos-creator-mcp__* 允许规则。
gitignore: 新扩展是商业付费产品(vberai), 非 npm 可重装, dist/sidecar/static
共约 16M 发行产物+加密载荷+平台二进制不入库; 顺带忽略 Claude Code 个人本地
配置与编辑器运行时端口文件。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,259 @@
|
||||
{
|
||||
"$schema": "./@types/schema/package/index.json",
|
||||
"package_version": 2,
|
||||
"name": "cocos-mcp-server",
|
||||
"version": "1.7.9",
|
||||
"author": "LiDaxian",
|
||||
"editor": ">=3.7.0",
|
||||
"description": "i18n:cocos-mcp-server.description",
|
||||
"main": "./dist/main.js",
|
||||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"fs-extra": "^11.3.0",
|
||||
"puppeteer-core": "^25.1.0",
|
||||
"uuid": "^9.0.1",
|
||||
"vue": "^3.1.4"
|
||||
},
|
||||
"panels": {
|
||||
"default": {
|
||||
"title": "i18n:cocos-mcp-server.panel_title",
|
||||
"type": "dockable",
|
||||
"main": "dist/panels/default",
|
||||
"icon": "./static/icon.png",
|
||||
"size": {
|
||||
"min-width": 560,
|
||||
"min-height": 680,
|
||||
"width": 760,
|
||||
"height": 820
|
||||
}
|
||||
}
|
||||
},
|
||||
"contributions": {
|
||||
"menu": [
|
||||
{
|
||||
"path": "i18n:menu.extension/Cocos MCP Server",
|
||||
"label": "i18n:cocos-mcp-server.open_panel",
|
||||
"message": "open-panel"
|
||||
}
|
||||
],
|
||||
"messages": {
|
||||
"open-panel": {
|
||||
"methods": [
|
||||
"openPanel"
|
||||
]
|
||||
},
|
||||
"open-tool-manager": {
|
||||
"methods": [
|
||||
"openToolManager"
|
||||
]
|
||||
},
|
||||
"start-server": {
|
||||
"methods": [
|
||||
"startServer"
|
||||
]
|
||||
},
|
||||
"stop-server": {
|
||||
"methods": [
|
||||
"stopServer"
|
||||
]
|
||||
},
|
||||
"get-server-status": {
|
||||
"methods": [
|
||||
"getServerStatus"
|
||||
]
|
||||
},
|
||||
"update-settings": {
|
||||
"methods": [
|
||||
"updateSettings"
|
||||
]
|
||||
},
|
||||
"getToolsList": {
|
||||
"methods": [
|
||||
"getToolsList"
|
||||
]
|
||||
},
|
||||
"get-server-settings": {
|
||||
"methods": [
|
||||
"getServerSettings"
|
||||
]
|
||||
},
|
||||
"getToolManagerState": {
|
||||
"methods": [
|
||||
"getToolManagerState"
|
||||
]
|
||||
},
|
||||
"createToolConfiguration": {
|
||||
"methods": [
|
||||
"createToolConfiguration"
|
||||
]
|
||||
},
|
||||
"updateToolConfiguration": {
|
||||
"methods": [
|
||||
"updateToolConfiguration"
|
||||
]
|
||||
},
|
||||
"deleteToolConfiguration": {
|
||||
"methods": [
|
||||
"deleteToolConfiguration"
|
||||
]
|
||||
},
|
||||
"setCurrentToolConfiguration": {
|
||||
"methods": [
|
||||
"setCurrentToolConfiguration"
|
||||
]
|
||||
},
|
||||
"updateToolStatus": {
|
||||
"methods": [
|
||||
"updateToolStatus"
|
||||
]
|
||||
},
|
||||
"updateToolStatusBatch": {
|
||||
"methods": [
|
||||
"updateToolStatusBatch"
|
||||
]
|
||||
},
|
||||
"exportToolConfiguration": {
|
||||
"methods": [
|
||||
"exportToolConfiguration"
|
||||
]
|
||||
},
|
||||
"importToolConfiguration": {
|
||||
"methods": [
|
||||
"importToolConfiguration"
|
||||
]
|
||||
},
|
||||
"getEnabledTools": {
|
||||
"methods": [
|
||||
"getEnabledTools"
|
||||
]
|
||||
},
|
||||
"get-config-status": {
|
||||
"methods": [
|
||||
"getConfigStatus"
|
||||
]
|
||||
},
|
||||
"generate-cli-commands": {
|
||||
"methods": [
|
||||
"generateCLICommands"
|
||||
]
|
||||
},
|
||||
"generate-client-config": {
|
||||
"methods": [
|
||||
"generateClientConfig"
|
||||
]
|
||||
},
|
||||
"add-to-client": {
|
||||
"methods": [
|
||||
"addToClient"
|
||||
]
|
||||
},
|
||||
"remove-from-client": {
|
||||
"methods": [
|
||||
"removeFromClient"
|
||||
]
|
||||
},
|
||||
"add-to-all-clients": {
|
||||
"methods": [
|
||||
"addToAllClients"
|
||||
]
|
||||
},
|
||||
"remove-from-all-clients": {
|
||||
"methods": [
|
||||
"removeFromAllClients"
|
||||
]
|
||||
},
|
||||
"open-config-file": {
|
||||
"methods": [
|
||||
"openConfigFile"
|
||||
]
|
||||
},
|
||||
"check-license": {
|
||||
"methods": [
|
||||
"checkLicense"
|
||||
]
|
||||
},
|
||||
"subscription-status": {
|
||||
"methods": [
|
||||
"subscriptionStatus"
|
||||
]
|
||||
},
|
||||
"login-subscription": {
|
||||
"methods": [
|
||||
"loginSubscription"
|
||||
]
|
||||
},
|
||||
"login-subscription-google": {
|
||||
"methods": [
|
||||
"loginSubscriptionGoogle"
|
||||
]
|
||||
},
|
||||
"logout-subscription": {
|
||||
"methods": [
|
||||
"logoutSubscription"
|
||||
]
|
||||
},
|
||||
"activate-license": {
|
||||
"methods": [
|
||||
"activateLicense"
|
||||
]
|
||||
},
|
||||
"deactivate-license": {
|
||||
"methods": [
|
||||
"deactivateLicense"
|
||||
]
|
||||
},
|
||||
"get-license-info": {
|
||||
"methods": [
|
||||
"getLicenseInfo"
|
||||
]
|
||||
},
|
||||
"check-update": {
|
||||
"methods": [
|
||||
"checkUpdate"
|
||||
]
|
||||
},
|
||||
"skip-update": {
|
||||
"methods": [
|
||||
"skipUpdate"
|
||||
]
|
||||
},
|
||||
"get-machine-id": {
|
||||
"methods": [
|
||||
"getMachineId"
|
||||
]
|
||||
},
|
||||
"preview-play": {
|
||||
"methods": [
|
||||
"default.onPreviewPlay"
|
||||
]
|
||||
},
|
||||
"preview-stop": {
|
||||
"methods": [
|
||||
"default.onPreviewStop"
|
||||
]
|
||||
},
|
||||
"device-removed": {
|
||||
"methods": [
|
||||
"default.device-removed"
|
||||
]
|
||||
}
|
||||
},
|
||||
"scene": {
|
||||
"script": "./dist/scene.js",
|
||||
"methods": [
|
||||
"createNewScene",
|
||||
"addComponentToNode",
|
||||
"removeComponentFromNode",
|
||||
"getNodeInfo",
|
||||
"getAllNodes",
|
||||
"findNodeByName",
|
||||
"setNodeProperty",
|
||||
"setComponentProperty",
|
||||
"getCurrentSceneInfo",
|
||||
"getSceneHierarchy",
|
||||
"createPrefabFromNode",
|
||||
"captureContent"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user