Bug fixes (verified against Cocos Creator 3.8.8): - diagnostics: shell:true for .cmd/.bat on Windows (T125/T126) - prefabs: duplicatePrefab target resolves under assets/ (T420) - cocos-project: add preview.open candidate for 3.8.8 (T444) - assets-advanced: detect directory assets in inspectAssetDependencies (T110) - scene: improve component-not-found errors with compilation hint (T429) Documentation improvements: - tool-registry: add enum and injected vars to execute_javascript, path format examples, asset ref limitation note - resources: add cocos://mcp/execute-context resource with variables, patterns, pitfalls New tools (core 37->38, full 101->110): - scene-management: create_scene, query_scene_state (core), copy_paste_node, rename_node, reparent_node - scripts: create_script with component/plain templates - prefabs: create_prefab - assets-advanced: batch_asset_ops, find_unused_assets
156 lines
4.4 KiB
JSON
156 lines
4.4 KiB
JSON
{
|
|
"name": "funplay-cocos-mcp",
|
|
"package_version": 2,
|
|
"version": "0.4.0",
|
|
"description": "Embedded MCP server for Cocos Creator with scene script execution, project resources, prompts, and file/scene tools.",
|
|
"author": "Funplay",
|
|
"license": "MIT",
|
|
"main": "browser.js",
|
|
"bin": {
|
|
"funplay-cocos-mcp": "bin/funplay-cocos-mcp.js"
|
|
},
|
|
"mcpName": "io.github.FunplayAI/funplay-cocos-mcp",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/FunplayAI/funplay-cocos-mcp.git"
|
|
},
|
|
"homepage": "https://github.com/FunplayAI/funplay-cocos-mcp#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/FunplayAI/funplay-cocos-mcp/issues"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"cocos",
|
|
"cocos-creator",
|
|
"funplay",
|
|
"model-context-protocol",
|
|
"ai"
|
|
],
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"docs/",
|
|
"lib/",
|
|
"panel/",
|
|
"resources/",
|
|
"browser.js",
|
|
"scene.js",
|
|
"server.json",
|
|
"README.md",
|
|
"README_CN.md",
|
|
"CHANGELOG.md",
|
|
"CONTRIBUTING.md",
|
|
"LICENSE",
|
|
"RELEASE_WORKFLOW.md",
|
|
"RELEASE_CHECKLIST.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"check": "node --check browser.js && node --check scene.js && node --check panel/index.js && node --check bin/funplay-cocos-mcp.js && node --check lib/assets.js && node --check lib/client-config.js && node --check lib/config.js && node --check lib/diagnostics.js && node --check lib/electron-tools.js && node --check lib/input.js && node --check lib/interaction-log.js && node --check lib/javascript-safety.js && node --check lib/logs.js && node --check lib/path-safety.js && node --check lib/prefabs.js && node --check lib/project-instructions.js && node --check lib/prompts.js && node --check lib/resources.js && node --check lib/runtime-log.js && node --check lib/screenshots.js && node --check lib/server.js && node --check lib/tool-profiles.js && node --check lib/tool-registry.js && node --check lib/tools/assets-advanced.js && node --check lib/tools/cocos-project.js && node --check lib/tools/files.js && node --check lib/tools/scene-events.js && node --check lib/tools/scene-management.js && node --check lib/tools/scripts.js && node --check lib/update-checker.js && node --check lib/utils.js && node --check scripts/generate-tool-docs.js && node --check scripts/release.js",
|
|
"test": "node --test",
|
|
"docs:generate": "node scripts/generate-tool-docs.js",
|
|
"docs:check": "node scripts/generate-tool-docs.js --check",
|
|
"pack:dry-run": "npm pack --dry-run",
|
|
"registry:validate": "mcp-publisher validate server.json",
|
|
"release:check": "node scripts/release.js check && npm run docs:check",
|
|
"release:package": "node scripts/release.js package",
|
|
"release:verify": "npm run check && npm test && npm run release:check && npm run pack:dry-run && npm run release:package"
|
|
},
|
|
"panels": {
|
|
"default": {
|
|
"title": "Funplay Cocos MCP",
|
|
"type": "dockable",
|
|
"main": "panel/index.js",
|
|
"size": {
|
|
"min-width": 520,
|
|
"min-height": 480,
|
|
"width": 760,
|
|
"height": 720
|
|
}
|
|
}
|
|
},
|
|
"contributions": {
|
|
"menu": [
|
|
{
|
|
"path": "Funplay",
|
|
"label": "MCP Server",
|
|
"message": "open-panel"
|
|
}
|
|
],
|
|
"messages": {
|
|
"open-panel": {
|
|
"methods": [
|
|
"openPanel"
|
|
]
|
|
},
|
|
"start-server": {
|
|
"methods": [
|
|
"startServer"
|
|
]
|
|
},
|
|
"stop-server": {
|
|
"methods": [
|
|
"stopServer"
|
|
]
|
|
},
|
|
"restart-server": {
|
|
"methods": [
|
|
"restartServer"
|
|
]
|
|
},
|
|
"get-status": {
|
|
"methods": [
|
|
"getStatus"
|
|
]
|
|
},
|
|
"get-panel-state": {
|
|
"methods": [
|
|
"getPanelState"
|
|
]
|
|
},
|
|
"save-config": {
|
|
"methods": [
|
|
"saveConfig"
|
|
]
|
|
},
|
|
"list-tools": {
|
|
"methods": [
|
|
"listToolsForPanel"
|
|
]
|
|
},
|
|
"call-tool": {
|
|
"methods": [
|
|
"callToolFromPanel"
|
|
]
|
|
},
|
|
"check-updates": {
|
|
"methods": [
|
|
"checkUpdates"
|
|
]
|
|
},
|
|
"read-resource": {
|
|
"methods": [
|
|
"readResourceFromPanel"
|
|
]
|
|
},
|
|
"get-client-config": {
|
|
"methods": [
|
|
"getClientConfig"
|
|
]
|
|
},
|
|
"configure-client": {
|
|
"methods": [
|
|
"configureClient"
|
|
]
|
|
}
|
|
},
|
|
"scene": {
|
|
"script": "scene.js"
|
|
}
|
|
}
|
|
}
|