package.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. {
  2. "$schema": "./@types/schema/package/index.json",
  3. "package_version": 2,
  4. "name": "cocos-mcp-server",
  5. "version": "1.7.9",
  6. "author": "LiDaxian",
  7. "editor": ">=3.7.0",
  8. "description": "i18n:cocos-mcp-server.description",
  9. "main": "./dist/main.js",
  10. "dependencies": {
  11. "@iarna/toml": "^2.2.5",
  12. "fs-extra": "^11.3.0",
  13. "puppeteer-core": "^25.1.0",
  14. "uuid": "^9.0.1",
  15. "vue": "^3.1.4"
  16. },
  17. "panels": {
  18. "default": {
  19. "title": "i18n:cocos-mcp-server.panel_title",
  20. "type": "dockable",
  21. "main": "dist/panels/default",
  22. "icon": "./static/icon.png",
  23. "size": {
  24. "min-width": 560,
  25. "min-height": 680,
  26. "width": 760,
  27. "height": 820
  28. }
  29. }
  30. },
  31. "contributions": {
  32. "menu": [
  33. {
  34. "path": "i18n:menu.extension/Cocos MCP Server",
  35. "label": "i18n:cocos-mcp-server.open_panel",
  36. "message": "open-panel"
  37. }
  38. ],
  39. "messages": {
  40. "open-panel": {
  41. "methods": [
  42. "openPanel"
  43. ]
  44. },
  45. "open-tool-manager": {
  46. "methods": [
  47. "openToolManager"
  48. ]
  49. },
  50. "start-server": {
  51. "methods": [
  52. "startServer"
  53. ]
  54. },
  55. "stop-server": {
  56. "methods": [
  57. "stopServer"
  58. ]
  59. },
  60. "get-server-status": {
  61. "methods": [
  62. "getServerStatus"
  63. ]
  64. },
  65. "update-settings": {
  66. "methods": [
  67. "updateSettings"
  68. ]
  69. },
  70. "getToolsList": {
  71. "methods": [
  72. "getToolsList"
  73. ]
  74. },
  75. "get-server-settings": {
  76. "methods": [
  77. "getServerSettings"
  78. ]
  79. },
  80. "getToolManagerState": {
  81. "methods": [
  82. "getToolManagerState"
  83. ]
  84. },
  85. "createToolConfiguration": {
  86. "methods": [
  87. "createToolConfiguration"
  88. ]
  89. },
  90. "updateToolConfiguration": {
  91. "methods": [
  92. "updateToolConfiguration"
  93. ]
  94. },
  95. "deleteToolConfiguration": {
  96. "methods": [
  97. "deleteToolConfiguration"
  98. ]
  99. },
  100. "setCurrentToolConfiguration": {
  101. "methods": [
  102. "setCurrentToolConfiguration"
  103. ]
  104. },
  105. "updateToolStatus": {
  106. "methods": [
  107. "updateToolStatus"
  108. ]
  109. },
  110. "updateToolStatusBatch": {
  111. "methods": [
  112. "updateToolStatusBatch"
  113. ]
  114. },
  115. "exportToolConfiguration": {
  116. "methods": [
  117. "exportToolConfiguration"
  118. ]
  119. },
  120. "importToolConfiguration": {
  121. "methods": [
  122. "importToolConfiguration"
  123. ]
  124. },
  125. "getEnabledTools": {
  126. "methods": [
  127. "getEnabledTools"
  128. ]
  129. },
  130. "get-config-status": {
  131. "methods": [
  132. "getConfigStatus"
  133. ]
  134. },
  135. "generate-cli-commands": {
  136. "methods": [
  137. "generateCLICommands"
  138. ]
  139. },
  140. "generate-client-config": {
  141. "methods": [
  142. "generateClientConfig"
  143. ]
  144. },
  145. "add-to-client": {
  146. "methods": [
  147. "addToClient"
  148. ]
  149. },
  150. "remove-from-client": {
  151. "methods": [
  152. "removeFromClient"
  153. ]
  154. },
  155. "add-to-all-clients": {
  156. "methods": [
  157. "addToAllClients"
  158. ]
  159. },
  160. "remove-from-all-clients": {
  161. "methods": [
  162. "removeFromAllClients"
  163. ]
  164. },
  165. "open-config-file": {
  166. "methods": [
  167. "openConfigFile"
  168. ]
  169. },
  170. "check-license": {
  171. "methods": [
  172. "checkLicense"
  173. ]
  174. },
  175. "subscription-status": {
  176. "methods": [
  177. "subscriptionStatus"
  178. ]
  179. },
  180. "login-subscription": {
  181. "methods": [
  182. "loginSubscription"
  183. ]
  184. },
  185. "login-subscription-google": {
  186. "methods": [
  187. "loginSubscriptionGoogle"
  188. ]
  189. },
  190. "logout-subscription": {
  191. "methods": [
  192. "logoutSubscription"
  193. ]
  194. },
  195. "activate-license": {
  196. "methods": [
  197. "activateLicense"
  198. ]
  199. },
  200. "deactivate-license": {
  201. "methods": [
  202. "deactivateLicense"
  203. ]
  204. },
  205. "get-license-info": {
  206. "methods": [
  207. "getLicenseInfo"
  208. ]
  209. },
  210. "check-update": {
  211. "methods": [
  212. "checkUpdate"
  213. ]
  214. },
  215. "skip-update": {
  216. "methods": [
  217. "skipUpdate"
  218. ]
  219. },
  220. "get-machine-id": {
  221. "methods": [
  222. "getMachineId"
  223. ]
  224. },
  225. "preview-play": {
  226. "methods": [
  227. "default.onPreviewPlay"
  228. ]
  229. },
  230. "preview-stop": {
  231. "methods": [
  232. "default.onPreviewStop"
  233. ]
  234. },
  235. "device-removed": {
  236. "methods": [
  237. "default.device-removed"
  238. ]
  239. }
  240. },
  241. "scene": {
  242. "script": "./dist/scene.js",
  243. "methods": [
  244. "createNewScene",
  245. "addComponentToNode",
  246. "removeComponentFromNode",
  247. "getNodeInfo",
  248. "getAllNodes",
  249. "findNodeByName",
  250. "setNodeProperty",
  251. "setComponentProperty",
  252. "getCurrentSceneInfo",
  253. "getSceneHierarchy",
  254. "createPrefabFromNode",
  255. "captureContent"
  256. ]
  257. }
  258. }
  259. }