unity-open-mcp 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/dist/agent-identity.d.ts +52 -0
  2. package/dist/agent-identity.js +115 -0
  3. package/dist/agent-identity.js.map +1 -0
  4. package/dist/batch-spawn.d.ts +7 -0
  5. package/dist/batch-spawn.js +155 -29
  6. package/dist/batch-spawn.js.map +1 -1
  7. package/dist/capabilities/build-capabilities.d.ts +45 -0
  8. package/dist/capabilities/build-capabilities.js +262 -27
  9. package/dist/capabilities/build-capabilities.js.map +1 -1
  10. package/dist/capabilities/cost-hints.d.ts +82 -0
  11. package/dist/capabilities/cost-hints.js +185 -0
  12. package/dist/capabilities/cost-hints.js.map +1 -0
  13. package/dist/capabilities/lifecycle.d.ts +40 -0
  14. package/dist/capabilities/lifecycle.js +353 -0
  15. package/dist/capabilities/lifecycle.js.map +1 -0
  16. package/dist/capabilities/rule-catalog.d.ts +13 -1
  17. package/dist/capabilities/rule-catalog.js +620 -75
  18. package/dist/capabilities/rule-catalog.js.map +1 -1
  19. package/dist/capabilities/tool-groups.d.ts +21 -0
  20. package/dist/capabilities/tool-groups.js +411 -14
  21. package/dist/capabilities/tool-groups.js.map +1 -1
  22. package/dist/cli/args.d.ts +32 -1
  23. package/dist/cli/args.js +201 -4
  24. package/dist/cli/args.js.map +1 -1
  25. package/dist/cli/cli.d.ts +21 -0
  26. package/dist/cli/cli.js +68 -5
  27. package/dist/cli/cli.js.map +1 -1
  28. package/dist/cli/commands.d.ts +33 -0
  29. package/dist/cli/commands.js +400 -0
  30. package/dist/cli/commands.js.map +1 -1
  31. package/dist/cli/exit-codes.d.ts +43 -0
  32. package/dist/cli/exit-codes.js +78 -0
  33. package/dist/cli/exit-codes.js.map +1 -0
  34. package/dist/compile-verify.d.ts +65 -0
  35. package/dist/compile-verify.js +94 -0
  36. package/dist/compile-verify.js.map +1 -0
  37. package/dist/compressible-router.js +64 -11
  38. package/dist/compressible-router.js.map +1 -1
  39. package/dist/compression/asset-model.d.ts +15 -0
  40. package/dist/compression/compact.d.ts +5 -4
  41. package/dist/compression/compact.js +13 -10
  42. package/dist/compression/compact.js.map +1 -1
  43. package/dist/dialog-dismiss.d.ts +127 -74
  44. package/dist/dialog-dismiss.js +427 -170
  45. package/dist/dialog-dismiss.js.map +1 -1
  46. package/dist/dialog-policy.d.ts +141 -0
  47. package/dist/dialog-policy.js +345 -0
  48. package/dist/dialog-policy.js.map +1 -0
  49. package/dist/gate-error.d.ts +6 -0
  50. package/dist/gate-error.js +13 -2
  51. package/dist/gate-error.js.map +1 -1
  52. package/dist/hub-control.d.ts +247 -0
  53. package/dist/hub-control.js +703 -0
  54. package/dist/hub-control.js.map +1 -0
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.js +46 -12
  57. package/dist/index.js.map +1 -1
  58. package/dist/live-client.d.ts +123 -3
  59. package/dist/live-client.js +526 -69
  60. package/dist/live-client.js.map +1 -1
  61. package/dist/offline.d.ts +105 -0
  62. package/dist/offline.js +816 -23
  63. package/dist/offline.js.map +1 -1
  64. package/dist/output-profile.d.ts +110 -0
  65. package/dist/output-profile.js +255 -0
  66. package/dist/output-profile.js.map +1 -0
  67. package/dist/retry-policy.d.ts +72 -0
  68. package/dist/retry-policy.js +146 -0
  69. package/dist/retry-policy.js.map +1 -0
  70. package/dist/routers.d.ts +4 -0
  71. package/dist/routers.js +2 -2
  72. package/dist/routers.js.map +1 -1
  73. package/dist/server-instructions.d.ts +18 -0
  74. package/dist/server-instructions.js +145 -0
  75. package/dist/server-instructions.js.map +1 -0
  76. package/dist/tool-router.d.ts +38 -1
  77. package/dist/tool-router.js +690 -37
  78. package/dist/tool-router.js.map +1 -1
  79. package/dist/tool-session-state.d.ts +37 -0
  80. package/dist/tool-session-state.js +78 -1
  81. package/dist/tool-session-state.js.map +1 -1
  82. package/dist/tools/apply-fix.js +16 -2
  83. package/dist/tools/apply-fix.js.map +1 -1
  84. package/dist/tools/asmdef-create.d.ts +2 -0
  85. package/dist/tools/asmdef-create.js +114 -0
  86. package/dist/tools/asmdef-create.js.map +1 -0
  87. package/dist/tools/asmdef-get.d.ts +2 -0
  88. package/dist/tools/asmdef-get.js +31 -0
  89. package/dist/tools/asmdef-get.js.map +1 -0
  90. package/dist/tools/asmdef-list.d.ts +2 -0
  91. package/dist/tools/asmdef-list.js +41 -0
  92. package/dist/tools/asmdef-list.js.map +1 -0
  93. package/dist/tools/asmdef-modify.d.ts +2 -0
  94. package/dist/tools/asmdef-modify.js +108 -0
  95. package/dist/tools/asmdef-modify.js.map +1 -0
  96. package/dist/tools/audio-listener-get.d.ts +2 -0
  97. package/dist/tools/audio-listener-get.js +16 -0
  98. package/dist/tools/audio-listener-get.js.map +1 -0
  99. package/dist/tools/audio-mixer-get-parameter.d.ts +2 -0
  100. package/dist/tools/audio-mixer-get-parameter.js +25 -0
  101. package/dist/tools/audio-mixer-get-parameter.js.map +1 -0
  102. package/dist/tools/audio-mixer-set-parameter.d.ts +2 -0
  103. package/dist/tools/audio-mixer-set-parameter.js +44 -0
  104. package/dist/tools/audio-mixer-set-parameter.js.map +1 -0
  105. package/dist/tools/audio-source-add.d.ts +2 -0
  106. package/dist/tools/audio-source-add.js +94 -0
  107. package/dist/tools/audio-source-add.js.map +1 -0
  108. package/dist/tools/audio-source-modify.d.ts +2 -0
  109. package/dist/tools/audio-source-modify.js +52 -0
  110. package/dist/tools/audio-source-modify.js.map +1 -0
  111. package/dist/tools/bridge-status.js +16 -6
  112. package/dist/tools/bridge-status.js.map +1 -1
  113. package/dist/tools/build-get-active-target.js +1 -2
  114. package/dist/tools/build-get-active-target.js.map +1 -1
  115. package/dist/tools/build-get-defines.js +1 -1
  116. package/dist/tools/build-get-defines.js.map +1 -1
  117. package/dist/tools/build-get-scenes.js +1 -2
  118. package/dist/tools/build-get-scenes.js.map +1 -1
  119. package/dist/tools/build-get-targets.js +1 -1
  120. package/dist/tools/build-get-targets.js.map +1 -1
  121. package/dist/tools/build-set-defines.js +1 -2
  122. package/dist/tools/build-set-defines.js.map +1 -1
  123. package/dist/tools/build-set-scenes.js +1 -1
  124. package/dist/tools/build-set-scenes.js.map +1 -1
  125. package/dist/tools/build-set-target.js +1 -1
  126. package/dist/tools/build-set-target.js.map +1 -1
  127. package/dist/tools/build-start.js +0 -1
  128. package/dist/tools/build-start.js.map +1 -1
  129. package/dist/tools/cinemachine-brain-ensure.d.ts +2 -0
  130. package/dist/tools/cinemachine-brain-ensure.js +27 -0
  131. package/dist/tools/cinemachine-brain-ensure.js.map +1 -0
  132. package/dist/tools/cinemachine-camera-list.d.ts +2 -0
  133. package/dist/tools/cinemachine-camera-list.js +15 -0
  134. package/dist/tools/cinemachine-camera-list.js.map +1 -0
  135. package/dist/tools/cinemachine-create-camera.d.ts +2 -0
  136. package/dist/tools/cinemachine-create-camera.js +55 -0
  137. package/dist/tools/cinemachine-create-camera.js.map +1 -0
  138. package/dist/tools/cinemachine-set-body.d.ts +2 -0
  139. package/dist/tools/cinemachine-set-body.js +33 -0
  140. package/dist/tools/cinemachine-set-body.js.map +1 -0
  141. package/dist/tools/cinemachine-set-lens.d.ts +2 -0
  142. package/dist/tools/cinemachine-set-lens.js +41 -0
  143. package/dist/tools/cinemachine-set-lens.js.map +1 -0
  144. package/dist/tools/cinemachine-set-noise.d.ts +2 -0
  145. package/dist/tools/cinemachine-set-noise.js +31 -0
  146. package/dist/tools/cinemachine-set-noise.js.map +1 -0
  147. package/dist/tools/cinemachine-set-targets.d.ts +2 -0
  148. package/dist/tools/cinemachine-set-targets.js +30 -0
  149. package/dist/tools/cinemachine-set-targets.js.map +1 -0
  150. package/dist/tools/console-log.js +2 -2
  151. package/dist/tools/console-log.js.map +1 -1
  152. package/dist/tools/constraint-add.d.ts +2 -0
  153. package/dist/tools/constraint-add.js +85 -0
  154. package/dist/tools/constraint-add.js.map +1 -0
  155. package/dist/tools/dependencies.d.ts +2 -0
  156. package/dist/tools/dependencies.js +76 -0
  157. package/dist/tools/dependencies.js.map +1 -0
  158. package/dist/tools/editor-add-tag.js +2 -3
  159. package/dist/tools/editor-add-tag.js.map +1 -1
  160. package/dist/tools/editor-clear-history.d.ts +2 -0
  161. package/dist/tools/editor-clear-history.js +25 -0
  162. package/dist/tools/editor-clear-history.js.map +1 -0
  163. package/dist/tools/editor-get-layers.js +3 -3
  164. package/dist/tools/editor-get-layers.js.map +1 -1
  165. package/dist/tools/editor-get-tags.js +2 -2
  166. package/dist/tools/editor-get-tags.js.map +1 -1
  167. package/dist/tools/editor-redo.js +2 -3
  168. package/dist/tools/editor-redo.js.map +1 -1
  169. package/dist/tools/editor-undo-history.d.ts +2 -0
  170. package/dist/tools/editor-undo-history.js +21 -0
  171. package/dist/tools/editor-undo-history.js.map +1 -0
  172. package/dist/tools/editor-undo.js +3 -3
  173. package/dist/tools/editor-undo.js.map +1 -1
  174. package/dist/tools/editorprefs-delete.d.ts +2 -0
  175. package/dist/tools/editorprefs-delete.js +23 -0
  176. package/dist/tools/editorprefs-delete.js.map +1 -0
  177. package/dist/tools/editorprefs-get.d.ts +2 -0
  178. package/dist/tools/editorprefs-get.js +28 -0
  179. package/dist/tools/editorprefs-get.js.map +1 -0
  180. package/dist/tools/editorprefs-set.d.ts +2 -0
  181. package/dist/tools/editorprefs-set.js +33 -0
  182. package/dist/tools/editorprefs-set.js.map +1 -0
  183. package/dist/tools/find-references.js +24 -4
  184. package/dist/tools/find-references.js.map +1 -1
  185. package/dist/tools/frame-debugger.d.ts +2 -0
  186. package/dist/tools/frame-debugger.js +48 -0
  187. package/dist/tools/frame-debugger.js.map +1 -0
  188. package/dist/tools/gameobject-modify.js +69 -2
  189. package/dist/tools/gameobject-modify.js.map +1 -1
  190. package/dist/tools/gate-budget-estimate.js +2 -1
  191. package/dist/tools/gate-budget-estimate.js.map +1 -1
  192. package/dist/tools/hub-available-releases.d.ts +2 -0
  193. package/dist/tools/hub-available-releases.js +23 -0
  194. package/dist/tools/hub-available-releases.js.map +1 -0
  195. package/dist/tools/hub-get-install-path.d.ts +2 -0
  196. package/dist/tools/hub-get-install-path.js +20 -0
  197. package/dist/tools/hub-get-install-path.js.map +1 -0
  198. package/dist/tools/hub-install-editor.d.ts +2 -0
  199. package/dist/tools/hub-install-editor.js +47 -0
  200. package/dist/tools/hub-install-editor.js.map +1 -0
  201. package/dist/tools/hub-install-modules.d.ts +2 -0
  202. package/dist/tools/hub-install-modules.js +44 -0
  203. package/dist/tools/hub-install-modules.js.map +1 -0
  204. package/dist/tools/hub-list-editors.d.ts +2 -0
  205. package/dist/tools/hub-list-editors.js +25 -0
  206. package/dist/tools/hub-list-editors.js.map +1 -0
  207. package/dist/tools/hub-set-install-path.d.ts +2 -0
  208. package/dist/tools/hub-set-install-path.js +30 -0
  209. package/dist/tools/hub-set-install-path.js.map +1 -0
  210. package/dist/tools/impact-preview.js +2 -2
  211. package/dist/tools/impact-preview.js.map +1 -1
  212. package/dist/tools/index.d.ts +14 -0
  213. package/dist/tools/index.js +534 -24
  214. package/dist/tools/index.js.map +1 -1
  215. package/dist/tools/light-add.d.ts +2 -0
  216. package/dist/tools/light-add.js +73 -0
  217. package/dist/tools/light-add.js.map +1 -0
  218. package/dist/tools/light-modify.d.ts +2 -0
  219. package/dist/tools/light-modify.js +36 -0
  220. package/dist/tools/light-modify.js.map +1 -0
  221. package/dist/tools/light-set.d.ts +2 -0
  222. package/dist/tools/light-set.js +54 -0
  223. package/dist/tools/light-set.js.map +1 -0
  224. package/dist/tools/list-assets-of-type.d.ts +2 -0
  225. package/dist/tools/list-assets-of-type.js +54 -0
  226. package/dist/tools/list-assets-of-type.js.map +1 -0
  227. package/dist/tools/lod-add-level.d.ts +2 -0
  228. package/dist/tools/lod-add-level.js +66 -0
  229. package/dist/tools/lod-add-level.js.map +1 -0
  230. package/dist/tools/lod-group-configure.d.ts +2 -0
  231. package/dist/tools/lod-group-configure.js +64 -0
  232. package/dist/tools/lod-group-configure.js.map +1 -0
  233. package/dist/tools/manage-tools.js +7 -5
  234. package/dist/tools/manage-tools.js.map +1 -1
  235. package/dist/tools/memory-snapshot-capture.d.ts +2 -0
  236. package/dist/tools/memory-snapshot-capture.js +61 -0
  237. package/dist/tools/memory-snapshot-capture.js.map +1 -0
  238. package/dist/tools/mutation-explain.js +2 -2
  239. package/dist/tools/mutation-explain.js.map +1 -1
  240. package/dist/tools/playerprefs-delete.d.ts +2 -0
  241. package/dist/tools/playerprefs-delete.js +24 -0
  242. package/dist/tools/playerprefs-delete.js.map +1 -0
  243. package/dist/tools/playerprefs-get.d.ts +2 -0
  244. package/dist/tools/playerprefs-get.js +28 -0
  245. package/dist/tools/playerprefs-get.js.map +1 -0
  246. package/dist/tools/playerprefs-set.d.ts +2 -0
  247. package/dist/tools/playerprefs-set.js +37 -0
  248. package/dist/tools/playerprefs-set.js.map +1 -0
  249. package/dist/tools/profiler-capture-frame.d.ts +2 -0
  250. package/dist/tools/profiler-capture-frame.js +75 -0
  251. package/dist/tools/profiler-capture-frame.js.map +1 -0
  252. package/dist/tools/profiler-clear-data.js +1 -2
  253. package/dist/tools/profiler-clear-data.js.map +1 -1
  254. package/dist/tools/profiler-enable-module.js +4 -5
  255. package/dist/tools/profiler-enable-module.js.map +1 -1
  256. package/dist/tools/profiler-get-status.js +5 -6
  257. package/dist/tools/profiler-get-status.js.map +1 -1
  258. package/dist/tools/profiler-load-data.js +4 -5
  259. package/dist/tools/profiler-load-data.js.map +1 -1
  260. package/dist/tools/profiler-save-data.js +3 -3
  261. package/dist/tools/profiler-save-data.js.map +1 -1
  262. package/dist/tools/profiler-set-config.js +5 -5
  263. package/dist/tools/profiler-set-config.js.map +1 -1
  264. package/dist/tools/profiler-start.js +4 -4
  265. package/dist/tools/profiler-start.js.map +1 -1
  266. package/dist/tools/profiler-stop.js +2 -3
  267. package/dist/tools/profiler-stop.js.map +1 -1
  268. package/dist/tools/read-asset.js +21 -3
  269. package/dist/tools/read-asset.js.map +1 -1
  270. package/dist/tools/reflection-probe-bake.d.ts +2 -0
  271. package/dist/tools/reflection-probe-bake.js +47 -0
  272. package/dist/tools/reflection-probe-bake.js.map +1 -0
  273. package/dist/tools/reflection-probe-get.d.ts +2 -0
  274. package/dist/tools/reflection-probe-get.js +19 -0
  275. package/dist/tools/reflection-probe-get.js.map +1 -0
  276. package/dist/tools/reimport-package.d.ts +2 -0
  277. package/dist/tools/reimport-package.js +53 -0
  278. package/dist/tools/reimport-package.js.map +1 -0
  279. package/dist/tools/scan-paths.js +19 -0
  280. package/dist/tools/scan-paths.js.map +1 -1
  281. package/dist/tools/scene-focus.js +1 -1
  282. package/dist/tools/scene-focus.js.map +1 -1
  283. package/dist/tools/scene-get-data.js +31 -13
  284. package/dist/tools/scene-get-data.js.map +1 -1
  285. package/dist/tools/scene-get-dirty-summary.js +1 -1
  286. package/dist/tools/scene-get-dirty-summary.js.map +1 -1
  287. package/dist/tools/sceneview-get-camera.d.ts +2 -0
  288. package/dist/tools/sceneview-get-camera.js +16 -0
  289. package/dist/tools/sceneview-get-camera.js.map +1 -0
  290. package/dist/tools/sceneview-set-camera.d.ts +2 -0
  291. package/dist/tools/sceneview-set-camera.js +58 -0
  292. package/dist/tools/sceneview-set-camera.js.map +1 -0
  293. package/dist/tools/script-write.js +2 -2
  294. package/dist/tools/script-write.js.map +1 -1
  295. package/dist/tools/scriptableobject-create.d.ts +2 -0
  296. package/dist/tools/scriptableobject-create.js +86 -0
  297. package/dist/tools/scriptableobject-create.js.map +1 -0
  298. package/dist/tools/search-assets.js +20 -3
  299. package/dist/tools/search-assets.js.map +1 -1
  300. package/dist/tools/settings-get-lighting.js +3 -4
  301. package/dist/tools/settings-get-lighting.js.map +1 -1
  302. package/dist/tools/settings-get-player.js +2 -2
  303. package/dist/tools/settings-get-player.js.map +1 -1
  304. package/dist/tools/settings-get-quality.js +1 -2
  305. package/dist/tools/settings-get-quality.js.map +1 -1
  306. package/dist/tools/settings-get-render-pipeline.d.ts +2 -0
  307. package/dist/tools/settings-get-render-pipeline.js +19 -0
  308. package/dist/tools/settings-get-render-pipeline.js.map +1 -0
  309. package/dist/tools/settings-get-time.d.ts +2 -0
  310. package/dist/tools/settings-get-time.js +18 -0
  311. package/dist/tools/settings-get-time.js.map +1 -0
  312. package/dist/tools/settings-set-lighting.js +5 -5
  313. package/dist/tools/settings-set-lighting.js.map +1 -1
  314. package/dist/tools/settings-set-physics.js +2 -2
  315. package/dist/tools/settings-set-physics.js.map +1 -1
  316. package/dist/tools/settings-set-player.js +2 -2
  317. package/dist/tools/settings-set-player.js.map +1 -1
  318. package/dist/tools/settings-set-quality-level.d.ts +2 -0
  319. package/dist/tools/settings-set-quality-level.js +44 -0
  320. package/dist/tools/settings-set-quality-level.js.map +1 -0
  321. package/dist/tools/settings-set-quality.js +2 -2
  322. package/dist/tools/settings-set-quality.js.map +1 -1
  323. package/dist/tools/settings-set-time.d.ts +2 -0
  324. package/dist/tools/settings-set-time.js +53 -0
  325. package/dist/tools/settings-set-time.js.map +1 -0
  326. package/dist/tools/shader-get-data.js +3 -3
  327. package/dist/tools/shader-get-data.js.map +1 -1
  328. package/dist/tools/shader-graph-create.d.ts +2 -0
  329. package/dist/tools/shader-graph-create.js +40 -0
  330. package/dist/tools/shader-graph-create.js.map +1 -0
  331. package/dist/tools/shader-graph-node-add.d.ts +2 -0
  332. package/dist/tools/shader-graph-node-add.js +50 -0
  333. package/dist/tools/shader-graph-node-add.js.map +1 -0
  334. package/dist/tools/shader-graph-node-connect.d.ts +2 -0
  335. package/dist/tools/shader-graph-node-connect.js +60 -0
  336. package/dist/tools/shader-graph-node-connect.js.map +1 -0
  337. package/dist/tools/shader-graph-open.d.ts +2 -0
  338. package/dist/tools/shader-graph-open.js +29 -0
  339. package/dist/tools/shader-graph-open.js.map +1 -0
  340. package/dist/tools/skybox-get.d.ts +2 -0
  341. package/dist/tools/skybox-get.js +13 -0
  342. package/dist/tools/skybox-get.js.map +1 -0
  343. package/dist/tools/skybox-set.d.ts +2 -0
  344. package/dist/tools/skybox-set.js +34 -0
  345. package/dist/tools/skybox-set.js.map +1 -0
  346. package/dist/tools/spriteatlas-add-packable.d.ts +2 -0
  347. package/dist/tools/spriteatlas-add-packable.js +40 -0
  348. package/dist/tools/spriteatlas-add-packable.js.map +1 -0
  349. package/dist/tools/spriteatlas-create.d.ts +2 -0
  350. package/dist/tools/spriteatlas-create.js +41 -0
  351. package/dist/tools/spriteatlas-create.js.map +1 -0
  352. package/dist/tools/spriteatlas-delete.d.ts +2 -0
  353. package/dist/tools/spriteatlas-delete.js +32 -0
  354. package/dist/tools/spriteatlas-delete.js.map +1 -0
  355. package/dist/tools/spriteatlas-get.d.ts +2 -0
  356. package/dist/tools/spriteatlas-get.js +23 -0
  357. package/dist/tools/spriteatlas-get.js.map +1 -0
  358. package/dist/tools/spriteatlas-list.d.ts +2 -0
  359. package/dist/tools/spriteatlas-list.js +21 -0
  360. package/dist/tools/spriteatlas-list.js.map +1 -0
  361. package/dist/tools/spriteatlas-modify.d.ts +2 -0
  362. package/dist/tools/spriteatlas-modify.js +55 -0
  363. package/dist/tools/spriteatlas-modify.js.map +1 -0
  364. package/dist/tools/spriteatlas-remove-packable.d.ts +2 -0
  365. package/dist/tools/spriteatlas-remove-packable.js +39 -0
  366. package/dist/tools/spriteatlas-remove-packable.js.map +1 -0
  367. package/dist/tools/terrain-create.d.ts +2 -0
  368. package/dist/tools/terrain-create.js +73 -0
  369. package/dist/tools/terrain-create.js.map +1 -0
  370. package/dist/tools/terrain-paint-layer.d.ts +2 -0
  371. package/dist/tools/terrain-paint-layer.js +85 -0
  372. package/dist/tools/terrain-paint-layer.js.map +1 -0
  373. package/dist/tools/terrain-place-trees.d.ts +2 -0
  374. package/dist/tools/terrain-place-trees.js +92 -0
  375. package/dist/tools/terrain-place-trees.js.map +1 -0
  376. package/dist/tools/terrain-set-heights.d.ts +2 -0
  377. package/dist/tools/terrain-set-heights.js +68 -0
  378. package/dist/tools/terrain-set-heights.js.map +1 -0
  379. package/dist/tools/terrain-set-neighbors.d.ts +2 -0
  380. package/dist/tools/terrain-set-neighbors.js +65 -0
  381. package/dist/tools/terrain-set-neighbors.js.map +1 -0
  382. package/dist/tools/texture-get-importer.d.ts +2 -0
  383. package/dist/tools/texture-get-importer.js +25 -0
  384. package/dist/tools/texture-get-importer.js.map +1 -0
  385. package/dist/tools/texture-get.d.ts +2 -0
  386. package/dist/tools/texture-get.js +23 -0
  387. package/dist/tools/texture-get.js.map +1 -0
  388. package/dist/tools/texture-reimport.d.ts +2 -0
  389. package/dist/tools/texture-reimport.js +33 -0
  390. package/dist/tools/texture-reimport.js.map +1 -0
  391. package/dist/tools/texture-set-import.d.ts +2 -0
  392. package/dist/tools/texture-set-import.js +52 -0
  393. package/dist/tools/texture-set-import.js.map +1 -0
  394. package/dist/tools/tilemap-box-fill.d.ts +2 -0
  395. package/dist/tools/tilemap-box-fill.js +32 -0
  396. package/dist/tools/tilemap-box-fill.js.map +1 -0
  397. package/dist/tools/tilemap-create-rule-tile.d.ts +2 -0
  398. package/dist/tools/tilemap-create-rule-tile.js +39 -0
  399. package/dist/tools/tilemap-create-rule-tile.js.map +1 -0
  400. package/dist/tools/tilemap-create-tile-asset.d.ts +2 -0
  401. package/dist/tools/tilemap-create-tile-asset.js +35 -0
  402. package/dist/tools/tilemap-create-tile-asset.js.map +1 -0
  403. package/dist/tools/tilemap-create.d.ts +2 -0
  404. package/dist/tools/tilemap-create.js +32 -0
  405. package/dist/tools/tilemap-create.js.map +1 -0
  406. package/dist/tools/tilemap-set-tile.d.ts +2 -0
  407. package/dist/tools/tilemap-set-tile.js +33 -0
  408. package/dist/tools/tilemap-set-tile.js.map +1 -0
  409. package/dist/tools/timeline-clip-add.d.ts +2 -0
  410. package/dist/tools/timeline-clip-add.js +43 -0
  411. package/dist/tools/timeline-clip-add.js.map +1 -0
  412. package/dist/tools/timeline-create.d.ts +2 -0
  413. package/dist/tools/timeline-create.js +32 -0
  414. package/dist/tools/timeline-create.js.map +1 -0
  415. package/dist/tools/timeline-director-bind.d.ts +2 -0
  416. package/dist/tools/timeline-director-bind.js +34 -0
  417. package/dist/tools/timeline-director-bind.js.map +1 -0
  418. package/dist/tools/timeline-modify.d.ts +2 -0
  419. package/dist/tools/timeline-modify.js +44 -0
  420. package/dist/tools/timeline-modify.js.map +1 -0
  421. package/dist/tools/timeline-track-add.d.ts +2 -0
  422. package/dist/tools/timeline-track-add.js +37 -0
  423. package/dist/tools/timeline-track-add.js.map +1 -0
  424. package/dist/tools/ui-canvas-add.d.ts +2 -0
  425. package/dist/tools/ui-canvas-add.js +66 -0
  426. package/dist/tools/ui-canvas-add.js.map +1 -0
  427. package/dist/tools/ui-element-add.d.ts +2 -0
  428. package/dist/tools/ui-element-add.js +65 -0
  429. package/dist/tools/ui-element-add.js.map +1 -0
  430. package/dist/tools/ui-element-modify.d.ts +2 -0
  431. package/dist/tools/ui-element-modify.js +59 -0
  432. package/dist/tools/ui-element-modify.js.map +1 -0
  433. package/dist/tools/ui-layout-group-add.d.ts +2 -0
  434. package/dist/tools/ui-layout-group-add.js +80 -0
  435. package/dist/tools/ui-layout-group-add.js.map +1 -0
  436. package/dist/tools/validate-edit.js +22 -1
  437. package/dist/tools/validate-edit.js.map +1 -1
  438. package/dist/tools/vfx-block-edit.d.ts +2 -0
  439. package/dist/tools/vfx-block-edit.js +51 -0
  440. package/dist/tools/vfx-block-edit.js.map +1 -0
  441. package/dist/tools/vfx-list.d.ts +2 -0
  442. package/dist/tools/vfx-list.js +31 -0
  443. package/dist/tools/vfx-list.js.map +1 -0
  444. package/dist/tools/vfx-open.d.ts +2 -0
  445. package/dist/tools/vfx-open.js +29 -0
  446. package/dist/tools/vfx-open.js.map +1 -0
  447. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const playerprefsDelete: Tool;
@@ -0,0 +1,24 @@
1
+ // M20 Plan 9 / T20.9.2 — KV preferences. Mutating: delete a single PlayerPrefs
2
+ // key and persist. Direct-response (no project-asset write — gate-free like
3
+ // editor_undo). Calls PlayerPrefs.Save().
4
+ export const playerprefsDelete = {
5
+ name: "unity_open_mcp_playerprefs_delete",
6
+ description: "Mutating: delete a single PlayerPrefs key and persist (PlayerPrefs.Save). " +
7
+ "Returns { existed, deleted } so the caller knows whether the key was " +
8
+ "present. Writes to Library/PlayerPreferences (NOT a project asset) — a " +
9
+ "mutating editor-state write that has nothing for the asset gate to " +
10
+ "validate, so no paths_hint is required. Use editorprefs_delete for " +
11
+ "editor-scoped preferences.",
12
+ inputSchema: {
13
+ type: "object",
14
+ required: ["key"],
15
+ properties: {
16
+ key: {
17
+ type: "string",
18
+ description: "The preference key to delete.",
19
+ },
20
+ },
21
+ additionalProperties: false,
22
+ },
23
+ };
24
+ //# sourceMappingURL=playerprefs-delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerprefs-delete.js","sourceRoot":"","sources":["../../src/tools/playerprefs-delete.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,4EAA4E;AAC5E,0CAA0C;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EACT,4EAA4E;QAC5E,uEAAuE;QACvE,yEAAyE;QACzE,qEAAqE;QACrE,qEAAqE;QACrE,4BAA4B;IAC9B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,KAAK,CAAC;QACjB,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const playerprefsGet: Tool;
@@ -0,0 +1,28 @@
1
+ // M20 Plan 9 / T20.9.2 — KV preferences. Read-only: get a PlayerPrefs value by
2
+ // key. Type (int/float/string) is inferred from the stored value when omitted
3
+ // (probes int → float → string). Gate-free direct-response read.
4
+ export const playerprefsGet = {
5
+ name: "unity_open_mcp_playerprefs_get",
6
+ description: "Read-only: get a PlayerPrefs value by key. Returns { store, key, type, " +
7
+ "value }. When `type` is omitted, the type is inferred from the stored value " +
8
+ "(probes int → float → string in that order). Gate-free. Use " +
9
+ "editorprefs_get for editor-scoped preferences. Mutating counterpart: " +
10
+ "playerprefs_set.",
11
+ inputSchema: {
12
+ type: "object",
13
+ required: ["key"],
14
+ properties: {
15
+ key: {
16
+ type: "string",
17
+ description: "The preference key to read.",
18
+ },
19
+ type: {
20
+ enum: ["int", "float", "string"],
21
+ description: "Optional type hint. When omitted, the type is inferred (int → float " +
22
+ "→ string). When present, the value is read as that type.",
23
+ },
24
+ },
25
+ additionalProperties: false,
26
+ },
27
+ };
28
+ //# sourceMappingURL=playerprefs-get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerprefs-get.js","sourceRoot":"","sources":["../../src/tools/playerprefs-get.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,8EAA8E;AAC9E,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAAS;IAClC,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,yEAAyE;QACzE,8EAA8E;QAC9E,8DAA8D;QAC9D,uEAAuE;QACvE,kBAAkB;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,KAAK,CAAC;QACjB,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC;gBAChC,WAAW,EACT,sEAAsE;oBACtE,0DAA0D;aAC7D;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const playerprefsSet: Tool;
@@ -0,0 +1,37 @@
1
+ // M20 Plan 9 / T20.9.2 — KV preferences. Mutating: set a PlayerPrefs key to a
2
+ // typed value and persist. Direct-response (writes to
3
+ // Library/PlayerPreferences, not a project asset — gate-free like
4
+ // editor_undo). Calls PlayerPrefs.Save() so the change persists.
5
+ export const playerprefsSet = {
6
+ name: "unity_open_mcp_playerprefs_set",
7
+ description: "Mutating: set a PlayerPrefs key to a typed value and persist. Calls " +
8
+ "PlayerPrefs.Save() so the value survives a restart. Writes to " +
9
+ "Library/PlayerPreferences (NOT a project asset) — like editor_undo it is a " +
10
+ "mutating editor-state write that has nothing for the asset gate to " +
11
+ "validate, so no paths_hint is required. Use editorprefs_set for " +
12
+ "editor-scoped preferences. (playerprefs_delete_all is deliberately NOT " +
13
+ "shipped — an irreversible project-wide wipe with no key filter is too " +
14
+ "dangerous for a single-call tool; route it through execute_csharp with an " +
15
+ "explicit confirm.)",
16
+ inputSchema: {
17
+ type: "object",
18
+ required: ["key", "value", "type"],
19
+ properties: {
20
+ key: {
21
+ type: "string",
22
+ description: "The preference key to write.",
23
+ },
24
+ value: {
25
+ description: "The value. Pass an int for type:int, a float for type:float, or a " +
26
+ "string for type:string.",
27
+ },
28
+ type: {
29
+ enum: ["int", "float", "string"],
30
+ description: "Value type. Determines which PlayerPrefs setter (SetInt / SetFloat / " +
31
+ "SetString) is called.",
32
+ },
33
+ },
34
+ additionalProperties: false,
35
+ },
36
+ };
37
+ //# sourceMappingURL=playerprefs-set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerprefs-set.js","sourceRoot":"","sources":["../../src/tools/playerprefs-set.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,sDAAsD;AACtD,kEAAkE;AAClE,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAAS;IAClC,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,sEAAsE;QACtE,gEAAgE;QAChE,6EAA6E;QAC7E,qEAAqE;QACrE,kEAAkE;QAClE,yEAAyE;QACzE,wEAAwE;QACxE,4EAA4E;QAC5E,oBAAoB;IACtB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QAClC,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8BAA8B;aAC5C;YACD,KAAK,EAAE;gBACL,WAAW,EACT,oEAAoE;oBACpE,yBAAyB;aAC5B;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC;gBAChC,WAAW,EACT,uEAAuE;oBACvE,uBAAuB;aAC1B;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const profilerCaptureFrame: Tool;
@@ -0,0 +1,75 @@
1
+ // M20 Plan 1 / T20.1.4 — single-frame deep profiler capture.
2
+ //
3
+ // Unlike the existing per-module profiler_get_* stats (aggregate / rolling),
4
+ // this returns one (or a few) frame's full sample hierarchy for the requested
5
+ // modules: deeper than the existing surface, more tokens, but the right tool
6
+ // when an agent needs to inspect a specific frame's call tree (e.g. a spike).
7
+ // The cost grows with frame_count, max_depth, and max_items — defaults (1, 8,
8
+ // 200) bound the token budget.
9
+ //
10
+ // If the Profiler is disabled the bridge enables it for one frame and reports
11
+ // profilerWasEnabled so the agent knows Editor state may have changed.
12
+ // Read-only (gate off).
13
+ export const profilerCaptureFrame = {
14
+ name: "unity_senses_profiler_capture_frame",
15
+ description: "Capture a single frame's deep profiler sample tree for the requested " +
16
+ "modules. Deeper than profiler_get_script_stats / profiler_get_status " +
17
+ "(those report aggregate / rolling stats); this returns the full sample " +
18
+ "hierarchy for one frame so an agent can inspect a specific frame's call " +
19
+ "tree (e.g. a spike). The output size grows with frame_count, max_depth, " +
20
+ "and max_items — defaults (frame_count = 1, max_depth = 8, max_items = " +
21
+ "200) bound the token budget. If the Profiler is disabled, the tool " +
22
+ "enables it for one frame and reports profilerWasEnabled in the response " +
23
+ "so the agent knows Editor state may have changed. Requires a live Unity " +
24
+ "Editor connection.",
25
+ inputSchema: {
26
+ type: "object",
27
+ properties: {
28
+ frame_count: {
29
+ type: "integer",
30
+ default: 1,
31
+ minimum: 1,
32
+ maximum: 10,
33
+ description: "Number of recent frames to walk back from the latest captured " +
34
+ "frame. Default 1 (just the latest frame). The response reports the " +
35
+ "full sample tree per frame, so larger values multiply the output " +
36
+ "size; cap at 10 to protect the token budget.",
37
+ },
38
+ modules: {
39
+ type: "string",
40
+ description: "Optional comma-separated Profiler category filter, e.g. " +
41
+ "\"CPU,Rendering,Memory\". When omitted, the tool returns the full " +
42
+ "sample tree (every category). Names match the Profiler category " +
43
+ "labels shown in the Profiler window (case-insensitive).",
44
+ },
45
+ thread_index: {
46
+ type: "integer",
47
+ default: 0,
48
+ minimum: 0,
49
+ description: "Profiler thread index to read. 0 = main thread (default). Use a " +
50
+ "higher index to read a worker thread; enumerate threads via the " +
51
+ "Profiler window or profiler_get_status.",
52
+ },
53
+ max_depth: {
54
+ type: "integer",
55
+ default: 8,
56
+ minimum: 1,
57
+ maximum: 64,
58
+ description: "Maximum recursion depth for the sample tree. Deeper trees expose " +
59
+ "more call detail but grow the output quickly; default 8 strikes a " +
60
+ "balance for spike diagnosis.",
61
+ },
62
+ max_items: {
63
+ type: "integer",
64
+ default: 200,
65
+ minimum: 1,
66
+ maximum: 2000,
67
+ description: "Maximum number of sample items emitted per frame across all " +
68
+ "branches. Additional items are reported via the truncated count in " +
69
+ "the response.",
70
+ },
71
+ },
72
+ additionalProperties: false,
73
+ },
74
+ };
75
+ //# sourceMappingURL=profiler-capture-frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiler-capture-frame.js","sourceRoot":"","sources":["../../src/tools/profiler-capture-frame.ts"],"names":[],"mappings":"AAEA,6DAA6D;AAC7D,EAAE;AACF,6EAA6E;AAC7E,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,8EAA8E;AAC9E,+BAA+B;AAC/B,EAAE;AACF,8EAA8E;AAC9E,uEAAuE;AACvE,wBAAwB;AACxB,MAAM,CAAC,MAAM,oBAAoB,GAAS;IACxC,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,uEAAuE;QACvE,uEAAuE;QACvE,yEAAyE;QACzE,0EAA0E;QAC1E,0EAA0E;QAC1E,wEAAwE;QACxE,qEAAqE;QACrE,0EAA0E;QAC1E,0EAA0E;QAC1E,oBAAoB;IACtB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,EAAE;gBACX,WAAW,EACT,gEAAgE;oBAChE,qEAAqE;oBACrE,mEAAmE;oBACnE,8CAA8C;aACjD;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0DAA0D;oBAC1D,oEAAoE;oBACpE,kEAAkE;oBAClE,yDAAyD;aAC5D;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,kEAAkE;oBAClE,kEAAkE;oBAClE,yCAAyC;aAC5C;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,EAAE;gBACX,WAAW,EACT,mEAAmE;oBACnE,oEAAoE;oBACpE,8BAA8B;aACjC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,GAAG;gBACZ,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,IAAI;gBACb,WAAW,EACT,8DAA8D;oBAC9D,qEAAqE;oBACrE,eAAe;aAClB;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,7 +1,6 @@
1
1
  // M16 Plan 7 — typed profiler buffered-frames clear. Mutates editor state
2
2
  // (ProfilerDriver.ClearAllFrames) but writes NO assets; gate-free direct-
3
- // response tool. Idempotent. Folds UMCP `profiler-clear-data` and UCP
4
- // `profiler/session/clear`. Cannot be undone — call profiler_save_data first
3
+ // response tool. Idempotent. Cannot be undone call profiler_save_data first
5
4
  // if a snapshot is wanted.
6
5
  export const profilerClearData = {
7
6
  name: "unity_open_mcp_profiler_clear_data",
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-clear-data.js","sourceRoot":"","sources":["../../src/tools/profiler-clear-data.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,0EAA0E;AAC1E,sEAAsE;AACtE,6EAA6E;AAC7E,2BAA2B;AAC3B,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,gEAAgE;QAChE,+EAA+E;QAC/E,uFAAuF;QACvF,oFAAoF;QACpF,yFAAyF;QACzF,cAAc;IAChB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-clear-data.js","sourceRoot":"","sources":["../../src/tools/profiler-clear-data.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,0EAA0E;AAC1E,8EAA8E;AAC9E,2BAA2B;AAC3B,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,gEAAgE;QAChE,+EAA+E;QAC/E,uFAAuF;QACvF,oFAAoF;QACpF,yFAAyF;QACzF,cAAc;IAChB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,9 +1,8 @@
1
1
  // M16 Plan 7 — typed profiler module toggle. Mutates local bookkeeping only
2
- // (no Unity state, no asset writes); gate-free direct-response tool. Folds
3
- // UMCP `profiler-enable-module`. Unity's runtime Profiler API does not expose
4
- // per-module enable/disable, so this is purely a bookkeeping helper reflected
5
- // back by profiler_get_status / profiler_list_modules; for actual module
6
- // visibility use the Profiler window.
2
+ // (no Unity state, no asset writes); gate-free direct-response tool. Unity's
3
+ // runtime Profiler API does not expose per-module enable/disable, so this is
4
+ // purely a bookkeeping helper reflected back by profiler_get_status /
5
+ // profiler_list_modules; for actual module visibility use the Profiler window.
7
6
  export const profilerEnableModule = {
8
7
  name: "unity_open_mcp_profiler_enable_module",
9
8
  description: "Toggle the local 'enabled' bookkeeping flag for one named profiler module. Bookkeeping " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-enable-module.js","sourceRoot":"","sources":["../../src/tools/profiler-enable-module.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,2EAA2E;AAC3E,8EAA8E;AAC9E,8EAA8E;AAC9E,yEAAyE;AACzE,sCAAsC;AACtC,MAAM,CAAC,MAAM,oBAAoB,GAAS;IACxC,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EACT,yFAAyF;QACzF,4FAA4F;QAC5F,2FAA2F;QAC3F,4FAA4F;QAC5F,0CAA0C;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iFAAiF;oBACjF,gCAAgC;aACnC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,yEAAyE;aACvF;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-enable-module.js","sourceRoot":"","sources":["../../src/tools/profiler-enable-module.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,sEAAsE;AACtE,+EAA+E;AAC/E,MAAM,CAAC,MAAM,oBAAoB,GAAS;IACxC,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EACT,yFAAyF;QACzF,4FAA4F;QAC5F,2FAA2F;QAC3F,4FAA4F;QAC5F,0CAA0C;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iFAAiF;oBACjF,gCAAgC;aACnC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,yEAAyE;aACvF;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,9 +1,8 @@
1
- // M16 Plan 7 — typed profiler status read. Read-only, gate-free. Folds UMCP
2
- // `profiler-get-status` and UCP `profiler/status`. Does NOT duplicate M10 —
3
- // unity_senses_profiler_memory / profiler_rendering / profiler_capture are the
4
- // per-frame / allocator / GPU reads; this tool returns the runtime flag, max
5
- // used memory high-water mark, platform support, and the local module
6
- // bookkeeping set.
1
+ // M16 Plan 7 — typed profiler status read. Read-only, gate-free. Does NOT
2
+ // duplicate M10 unity_senses_profiler_memory / profiler_rendering /
3
+ // profiler_capture are the per-frame / allocator / GPU reads; this tool
4
+ // returns the runtime flag, max used memory high-water mark, platform support,
5
+ // and the local module bookkeeping set.
7
6
  export const profilerGetStatus = {
8
7
  name: "unity_open_mcp_profiler_get_status",
9
8
  description: "Snapshot the runtime profiler's current state: enabled flag, platform support " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-get-status.js","sourceRoot":"","sources":["../../src/tools/profiler-get-status.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,4EAA4E;AAC5E,+EAA+E;AAC/E,6EAA6E;AAC7E,sEAAsE;AACtE,mBAAmB;AACnB,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,gFAAgF;QAChF,sFAAsF;QACtF,yFAAyF;QACzF,yFAAyF;QACzF,yFAAyF;QACzF,2FAA2F;QAC3F,qCAAqC;IACvC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-get-status.js","sourceRoot":"","sources":["../../src/tools/profiler-get-status.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,sEAAsE;AACtE,wEAAwE;AACxE,+EAA+E;AAC/E,wCAAwC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,gFAAgF;QAChF,sFAAsF;QACtF,yFAAyF;QACzF,yFAAyF;QACzF,yFAAyF;QACzF,2FAA2F;QAC3F,qCAAqC;IACvC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,10 +1,9 @@
1
1
  // M16 Plan 7 — typed profiler snapshot read-back. Read-only (reads a file
2
2
  // previously written by profiler_save_data); gate-free direct-response tool.
3
- // Folds UMCP `profiler-load-data` and UCP `profiler/capture/load`. UCP also
4
- // calls Profiler.AddFramesFromFile to load the capture back into the Editor
5
- // Profiler; this tool surfaces BOTH the raw JSON text (caller parses) and an
6
- // `addedToProfiler` boolean so the agent knows whether the frames are now
7
- // browsable in the Profiler window.
3
+ // Optionally calls Profiler.AddFramesFromFile to load the capture back into
4
+ // the Editor Profiler; this tool surfaces BOTH the raw JSON text (caller
5
+ // parses) and an `addedToProfiler` boolean so the agent knows whether the
6
+ // frames are now browsable in the Profiler window.
8
7
  export const profilerLoadData = {
9
8
  name: "unity_open_mcp_profiler_load_data",
10
9
  description: "Read back a previously-saved profiler JSON snapshot and optionally push its frames back " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-load-data.js","sourceRoot":"","sources":["../../src/tools/profiler-load-data.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,6EAA6E;AAC7E,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,0EAA0E;AAC1E,oCAAoC;AACpC,MAAM,CAAC,MAAM,gBAAgB,GAAS;IACpC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EACT,0FAA0F;QAC1F,0FAA0F;QAC1F,4FAA4F;QAC5F,2FAA2F;QAC3F,6FAA6F;QAC7F,0FAA0F;QAC1F,6DAA6D;IAC/D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,WAAW,CAAC;QACvB,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yFAAyF;oBACzF,uEAAuE;aAC1E;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACT,qFAAqF;oBACrF,iFAAiF;oBACjF,sFAAsF;oBACtF,oFAAoF;aACvF;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-load-data.js","sourceRoot":"","sources":["../../src/tools/profiler-load-data.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,6EAA6E;AAC7E,4EAA4E;AAC5E,yEAAyE;AACzE,0EAA0E;AAC1E,mDAAmD;AACnD,MAAM,CAAC,MAAM,gBAAgB,GAAS;IACpC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EACT,0FAA0F;QAC1F,0FAA0F;QAC1F,4FAA4F;QAC5F,2FAA2F;QAC3F,6FAA6F;QAC7F,0FAA0F;QAC1F,6DAA6D;IAC/D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,WAAW,CAAC;QACvB,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yFAAyF;oBACzF,uEAAuE;aAC1E;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACT,qFAAqF;oBACrF,iFAAiF;oBACjF,sFAAsF;oBACtF,oFAAoF;aACvF;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -2,9 +2,9 @@
2
2
  // to disk (composed from the read surfaces already in this tool family —
3
3
  // status / memory / rendering / script / frame — so the shape stays in sync).
4
4
  // Runs the full gate path with paths_hint scoped to the destination path.
5
- // Folds UMCP `profiler-save-data` and UCP `profiler/capture/save` (the .json
6
- // structured-snapshot path; UCP's binary-log path is editor-runtime-gated and
7
- // folds into profiler_set_config's binary_log warning surface instead).
5
+ // Saves the .json structured-snapshot path (the binary-log path is editor-
6
+ // runtime-gated and folds into profiler_set_config's binary_log warning
7
+ // surface instead).
8
8
  export const profilerSaveData = {
9
9
  name: "unity_open_mcp_profiler_save_data",
10
10
  description: "Save a structured JSON profiler snapshot to a path. Composes the runtime status, memory " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-save-data.js","sourceRoot":"","sources":["../../src/tools/profiler-save-data.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,yEAAyE;AACzE,8EAA8E;AAC9E,0EAA0E;AAC1E,6EAA6E;AAC7E,8EAA8E;AAC9E,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAS;IACpC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EACT,0FAA0F;QAC1F,6FAA6F;QAC7F,8FAA8F;QAC9F,6FAA6F;QAC7F,wEAAwE;IAC1E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;QACrC,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,wFAAwF;oBACxF,+EAA+E;oBAC/E,0BAA0B;aAC7B;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EAAE,gDAAgD;aAC9D;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC;gBAChC,OAAO,EAAE,SAAS;aACnB;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-save-data.js","sourceRoot":"","sources":["../../src/tools/profiler-save-data.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,yEAAyE;AACzE,8EAA8E;AAC9E,0EAA0E;AAC1E,2EAA2E;AAC3E,wEAAwE;AACxE,oBAAoB;AACpB,MAAM,CAAC,MAAM,gBAAgB,GAAS;IACpC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EACT,0FAA0F;QAC1F,6FAA6F;QAC7F,8FAA8F;QAC9F,6FAA6F;QAC7F,wEAAwE;IAC1E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;QACrC,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,wFAAwF;oBACxF,+EAA+E;oBAC/E,0BAA0B;aAC7B;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EAAE,gDAAgD;aAC9D;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC;gBAChC,OAAO,EAAE,SAAS;aACnB;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,9 +1,9 @@
1
1
  // M16 Plan 7 — typed profiler config mutator. Mutates editor state but writes
2
- // NO assets; gate-free direct-response tool. Folds UCP `profiler/config/set`.
3
- // Only the knobs Unity's runtime API exposes for in-place writes are honored;
4
- // the rest are reported as warnings (the request is recorded, the value is
5
- // not applied). Returns the post-write config (same shape as
6
- // profiler_get_config) plus a warnings[] list of any non-applicable knobs.
2
+ // NO assets; gate-free direct-response tool. Only the knobs Unity's runtime
3
+ // API exposes for in-place writes are honored; the rest are reported as
4
+ // warnings (the request is recorded, the value is not applied). Returns the
5
+ // post-write config (same shape as profiler_get_config) plus a warnings[]
6
+ // list of any non-applicable knobs.
7
7
  export const profilerSetConfig = {
8
8
  name: "unity_open_mcp_profiler_set_config",
9
9
  description: "Update one or more profiler runtime knobs in a single call: mode (\"play\" or \"edit\" — " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-set-config.js","sourceRoot":"","sources":["../../src/tools/profiler-set-config.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,2EAA2E;AAC3E,6DAA6D;AAC7D,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,2FAA2F;QAC3F,8FAA8F;QAC9F,2FAA2F;QAC3F,6FAA6F;QAC7F,2FAA2F;QAC3F,4FAA4F;QAC5F,6FAA6F;QAC7F,2FAA2F;QAC3F,qEAAqE;IACvE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBACtB,WAAW,EACT,mFAAmF;oBACnF,yFAAyF;oBACzF,sFAAsF;oBACtF,cAAc;aACjB;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iFAAiF;oBACjF,oEAAoE;aACvE;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,uFAAuF;oBACvF,oEAAoE;aACvE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,uFAAuF;oBACvF,oFAAoF;oBACpF,iDAAiD;aACpD;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,uFAAuF;oBACvF,8BAA8B;aACjC;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,oFAAoF;oBACpF,+EAA+E;aAClF;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,uFAAuF;oBACvF,iFAAiF;oBACjF,kCAAkC;aACrC;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,0FAA0F;aAC7F;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-set-config.js","sourceRoot":"","sources":["../../src/tools/profiler-set-config.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,4EAA4E;AAC5E,wEAAwE;AACxE,4EAA4E;AAC5E,0EAA0E;AAC1E,oCAAoC;AACpC,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,2FAA2F;QAC3F,8FAA8F;QAC9F,2FAA2F;QAC3F,6FAA6F;QAC7F,2FAA2F;QAC3F,4FAA4F;QAC5F,6FAA6F;QAC7F,2FAA2F;QAC3F,qEAAqE;IACvE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBACtB,WAAW,EACT,mFAAmF;oBACnF,yFAAyF;oBACzF,sFAAsF;oBACtF,cAAc;aACjB;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iFAAiF;oBACjF,oEAAoE;aACvE;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,uFAAuF;oBACvF,oEAAoE;aACvE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,uFAAuF;oBACvF,oFAAoF;oBACpF,iDAAiD;aACpD;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,uFAAuF;oBACvF,8BAA8B;aACjC;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,oFAAoF;oBACpF,+EAA+E;aAClF;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,uFAAuF;oBACvF,iFAAiF;oBACjF,kCAAkC;aACrC;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,0FAA0F;aAC7F;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,10 +1,10 @@
1
1
  // M16 Plan 7 — typed profiler session start. Mutating editor state but writes
2
2
  // NO assets, so the gate (which validates asset-reference fallout) has nothing
3
3
  // to validate — gate-free direct-response tool. Idempotent: calling when
4
- // already enabled returns the current enabled state. Folds UMCP `profiler-start`
5
- // and UCP `profiler/session/start` (UCP's deep-profile / allocation-callstacks /
6
- // binary-log options are intentionally NOT folded in they require a richer
7
- // session state than this surface exposes; use profiler_set_config for those).
4
+ // already enabled returns the current enabled state. Deep-profile /
5
+ // allocation-callstacks / binary-log options are intentionally NOT folded in —
6
+ // they require a richer session state than this surface exposes; use
7
+ // profiler_set_config for those.
8
8
  export const profilerStart = {
9
9
  name: "unity_open_mcp_profiler_start",
10
10
  description: "Enable the Unity runtime profiler (UnityEngine.Profiling.Profiler.enabled = true) " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-start.js","sourceRoot":"","sources":["../../src/tools/profiler-start.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,+EAA+E;AAC/E,yEAAyE;AACzE,iFAAiF;AACjF,iFAAiF;AACjF,6EAA6E;AAC7E,+EAA+E;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAS;IACjC,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,oFAAoF;QACpF,oFAAoF;QACpF,uFAAuF;QACvF,8EAA8E;QAC9E,mFAAmF;QACnF,kFAAkF;QAClF,6CAA6C;IAC/C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EACT,gFAAgF;oBAChF,6EAA6E;oBAC7E,4BAA4B;aAC/B;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-start.js","sourceRoot":"","sources":["../../src/tools/profiler-start.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,+EAA+E;AAC/E,yEAAyE;AACzE,oEAAoE;AACpE,+EAA+E;AAC/E,qEAAqE;AACrE,iCAAiC;AACjC,MAAM,CAAC,MAAM,aAAa,GAAS;IACjC,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,oFAAoF;QACpF,oFAAoF;QACpF,uFAAuF;QACvF,8EAA8E;QAC9E,mFAAmF;QACnF,kFAAkF;QAClF,6CAA6C;IAC/C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EACT,gFAAgF;oBAChF,6EAA6E;oBAC7E,4BAA4B;aAC/B;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -1,8 +1,7 @@
1
1
  // M16 Plan 7 — typed profiler session stop. Mutating editor state but writes
2
- // NO assets; gate-free direct-response tool. Idempotent. Folds UMCP
3
- // `profiler-stop` and UCP `profiler/session/stop` (UCP's session-state restore
2
+ // NO assets; gate-free direct-response tool. Idempotent. Session-state restore
4
3
  // is intentionally NOT folded — Unity's profiler keeps buffered frames across a
5
- // stop, so call profiler_clear_data to discard them).
4
+ // stop, so call profiler_clear_data to discard them.
6
5
  export const profilerStop = {
7
6
  name: "unity_open_mcp_profiler_stop",
8
7
  description: "Disable the Unity runtime profiler (UnityEngine.Profiling.Profiler.enabled = false). " +
@@ -1 +1 @@
1
- {"version":3,"file":"profiler-stop.js","sourceRoot":"","sources":["../../src/tools/profiler-stop.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,oEAAoE;AACpE,+EAA+E;AAC/E,gFAAgF;AAChF,sDAAsD;AACtD,MAAM,CAAC,MAAM,YAAY,GAAS;IAChC,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,uFAAuF;QACvF,uFAAuF;QACvF,yFAAyF;QACzF,0FAA0F;QAC1F,uFAAuF;QACvF,4CAA4C;IAC9C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"profiler-stop.js","sourceRoot":"","sources":["../../src/tools/profiler-stop.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,+EAA+E;AAC/E,gFAAgF;AAChF,qDAAqD;AACrD,MAAM,CAAC,MAAM,YAAY,GAAS;IAChC,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,uFAAuF;QACvF,uFAAuF;QACvF,yFAAyF;QACzF,0FAA0F;QAC1F,uFAAuF;QACvF,4CAA4C;IAC9C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -7,8 +7,8 @@
7
7
  export const readAsset = {
8
8
  name: "unity_open_mcp_read_asset",
9
9
  description: "Read a Unity asset as a compact, token-budgeted summary (hierarchy + components + counts). " +
10
- "Default returns a map: ASSET/PATH/GUID/OBJECTS/COMPONENTS counts, CMP component-set declarations, and a folded TREE with 'more: N hidden' omission counts. " +
11
- "Drill down with component/path/id/detail instead of re-reading raw YAML. " +
10
+ "Default (`profile: 'compact'`) returns a map: ASSET/PATH/GUID/OBJECTS/COMPONENTS counts, CMP component-set declarations, and a folded TREE with 'more: N hidden' omission counts. " +
11
+ "Drill down with component/path/id, or raise the budget with profile=balanced|full. Page large trees with page_size/cursor. " +
12
12
  "Achieves >=70% size reduction vs raw YAML on typical prefabs. Offline-first: text-serialized assets parse from disk (no Editor needed); binary formats fall back to the live bridge.",
13
13
  inputSchema: {
14
14
  type: "object",
@@ -18,10 +18,28 @@ export const readAsset = {
18
18
  type: "string",
19
19
  description: "Asset path to read (e.g. \"Assets/Prefabs/Player.prefab\"). Text-serialized YAML assets only (.prefab/.unity/.asset/.mat/.controller/.anim).",
20
20
  },
21
+ profile: {
22
+ enum: ["compact", "balanced", "full"],
23
+ default: "compact",
24
+ description: "Token-budget output profile (M22). 'compact' (default) = folded tree + component-set codes + omission counts. " +
25
+ "'balanced' = inline component names per node. 'full' = full tree without render-only folding. " +
26
+ "An explicit profile wins over the legacy `detail` param; the two map onto the same axis.",
27
+ },
28
+ page_size: {
29
+ type: "integer",
30
+ minimum: 1,
31
+ description: "Page the TREE rows (M22 uniform paging). When set, the response carries a `pagination` block with a `next_cursor` " +
32
+ "to resume. Omit to receive the whole (profile-shaped) tree in one response.",
33
+ },
34
+ cursor: {
35
+ type: "string",
36
+ description: "Opaque continuation token from a previous response's `pagination.next_cursor`. Page the TREE rows.",
37
+ },
21
38
  detail: {
22
39
  enum: ["summary", "normal", "verbose"],
23
40
  default: "summary",
24
- description: "Compression level. 'summary' (default): folded tree, component-set codes, omission counts. 'normal': inline component names per node. 'verbose': full tree without render-only folding.",
41
+ description: "Legacy compression level (alias for `profile`: summary=compact, normal=balanced, verbose=full). " +
42
+ "Prefer `profile`; ignored when `profile` is set.",
25
43
  },
26
44
  component: {
27
45
  type: "string",
@@ -1 +1 @@
1
- {"version":3,"file":"read-asset.js","sourceRoot":"","sources":["../../src/tools/read-asset.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,6EAA6E;AAC7E,+EAA+E;AAC/E,eAAe;AACf,MAAM,CAAC,MAAM,SAAS,GAAS;IAC7B,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,6FAA6F;QAC7F,6JAA6J;QAC7J,2EAA2E;QAC3E,sLAAsL;IACxL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8IAA8I;aACjJ;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;gBACtC,OAAO,EAAE,SAAS;gBAClB,WAAW,EACT,yLAAyL;aAC5L;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yJAAyJ;aAC5J;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,sGAAsG;aACzG;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0JAA0J;aAC7J;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACT,+MAA+M;aAClN;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC,CAAC;gBACX,WAAW,EAAE,sFAAsF;aACpG;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,mFAAmF;aACjG;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,mLAAmL;aACtL;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"read-asset.js","sourceRoot":"","sources":["../../src/tools/read-asset.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,6EAA6E;AAC7E,+EAA+E;AAC/E,eAAe;AACf,MAAM,CAAC,MAAM,SAAS,GAAS;IAC7B,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,6FAA6F;QAC7F,oLAAoL;QACpL,6HAA6H;QAC7H,sLAAsL;IACxL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8IAA8I;aACjJ;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC;gBACrC,OAAO,EAAE,SAAS;gBAClB,WAAW,EACT,gHAAgH;oBAChH,gGAAgG;oBAChG,0FAA0F;aAC7F;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,oHAAoH;oBACpH,6EAA6E;aAChF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oGAAoG;aACvG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;gBACtC,OAAO,EAAE,SAAS;gBAClB,WAAW,EACT,kGAAkG;oBAClG,kDAAkD;aACrD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yJAAyJ;aAC5J;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,sGAAsG;aACzG;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0JAA0J;aAC7J;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACT,+MAA+M;aAClN;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC,CAAC;gBACX,WAAW,EAAE,sFAAsF;aACpG;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,mFAAmF;aACjG;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,mLAAmL;aACtL;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const reflectionProbeBake: Tool;
@@ -0,0 +1,47 @@
1
+ // M20 Plan 2 / T20.2.2 — Lighting domain tool. Reflection probe bake is the
2
+ // long mutation with a settle window — routed through the gate
3
+ // (EditorSettle lifecycle, Gate = Enforce) so agents wait for the bake to
4
+ // complete before the next mutation. Built-in lighting module.
5
+ export const reflectionProbeBake = {
6
+ name: "unity_open_mcp_reflection_probe_bake",
7
+ description: "Bake a ReflectionProbe. bake_mode: 'realtime' (bake into the probe's " +
8
+ "runtime texture via ReflectionProbe.Bake), 'baked' (queue a full lightmap " +
9
+ "bake incl. probes via Lightmapping.BakeAsync), or 'custom' (write a baked " +
10
+ "snapshot into a named cubemap asset path via " +
11
+ "Lightmapping.BakeReflectionProbeSnapshot — the asset is created if absent). " +
12
+ "For 'custom', pass target_path (an Assets/-rooted .cubemap path). The bake " +
13
+ "can take seconds; EditorSettle waits for completion + asset refresh before " +
14
+ "returning. Mutating: runs the full gate path; paths_hint includes the probe " +
15
+ "scene path and (for custom mode) the output cubemap asset path.",
16
+ inputSchema: {
17
+ type: "object",
18
+ required: ["paths_hint"],
19
+ properties: {
20
+ instance_id: { type: "integer", default: 0, description: "Host GameObject instance ID." },
21
+ path: { type: "string", description: "Host hierarchy path \"Root/Child\"." },
22
+ name: { type: "string", description: "Host GameObject name (first match)." },
23
+ bake_mode: {
24
+ type: "string",
25
+ enum: ["realtime", "baked", "custom"],
26
+ default: "realtime",
27
+ description: "'realtime' — ReflectionProbe.Bake. 'baked' — Lightmapping.BakeAsync " +
28
+ "(full lightmap bake incl. probes). 'custom' — " +
29
+ "Lightmapping.BakeReflectionProbeSnapshot into target_path.",
30
+ },
31
+ target_path: {
32
+ type: "string",
33
+ description: "Assets/-rooted .cubemap path (required for bake_mode='custom'). The " +
34
+ "cubemap asset is created if absent.",
35
+ },
36
+ paths_hint: {
37
+ type: "array",
38
+ items: { type: "string" },
39
+ description: "Mutation scope — the probe's scene path and (for custom mode) the " +
40
+ "output cubemap asset path.",
41
+ },
42
+ gate: { enum: ["enforce", "warn", "off"], default: "enforce" },
43
+ },
44
+ additionalProperties: false,
45
+ },
46
+ };
47
+ //# sourceMappingURL=reflection-probe-bake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflection-probe-bake.js","sourceRoot":"","sources":["../../src/tools/reflection-probe-bake.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,+DAA+D;AAC/D,0EAA0E;AAC1E,+DAA+D;AAC/D,MAAM,CAAC,MAAM,mBAAmB,GAAS;IACvC,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,uEAAuE;QACvE,4EAA4E;QAC5E,4EAA4E;QAC5E,+CAA+C;QAC/C,8EAA8E;QAC9E,6EAA6E;QAC7E,6EAA6E;QAC7E,8EAA8E;QAC9E,iEAAiE;IACnE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,UAAU,EAAE;YACV,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE;YACzF,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;YAC5E,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;YAC5E,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC;gBACrC,OAAO,EAAE,UAAU;gBACnB,WAAW,EACT,sEAAsE;oBACtE,gDAAgD;oBAChD,4DAA4D;aAC/D;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,sEAAsE;oBACtE,qCAAqC;aACxC;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,oEAAoE;oBACpE,4BAA4B;aAC/B;YACD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE;SAC/D;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const reflectionProbeGet: Tool;
@@ -0,0 +1,19 @@
1
+ // M20 Plan 2 / T20.2.2 — Lighting domain read. Built-in lighting module.
2
+ // Read-only, gate-free.
3
+ export const reflectionProbeGet = {
4
+ name: "unity_open_mcp_reflection_probe_get",
5
+ description: "Read ReflectionProbe settings: mode (Baked | Realtime | Custom), " +
6
+ "resolution, HDR, clear flags, importance, size, near/far clip, and the " +
7
+ "baked cubemap path (if any). Read-only, gate-free. Address the host by " +
8
+ "instance_id > path > name.",
9
+ inputSchema: {
10
+ type: "object",
11
+ properties: {
12
+ instance_id: { type: "integer", default: 0, description: "Host GameObject instance ID." },
13
+ path: { type: "string", description: "Host hierarchy path \"Root/Child\"." },
14
+ name: { type: "string", description: "Host GameObject name (first match)." },
15
+ },
16
+ additionalProperties: false,
17
+ },
18
+ };
19
+ //# sourceMappingURL=reflection-probe-get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflection-probe-get.js","sourceRoot":"","sources":["../../src/tools/reflection-probe-get.ts"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,wBAAwB;AACxB,MAAM,CAAC,MAAM,kBAAkB,GAAS;IACtC,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,mEAAmE;QACnE,yEAAyE;QACzE,yEAAyE;QACzE,4BAA4B;IAC9B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE;YACzF,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;YAC5E,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;SAC7E;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare const reimportPackage: Tool;
@@ -0,0 +1,53 @@
1
+ // Force a reimport of a LOCAL (file:-linked) package so Unity recompiles its
2
+ // assembly. Fills the gap left by assets_refresh / execute_csharp, which no-op
3
+ // on local package source that lives outside Assets/ (Unity's incremental
4
+ // compiler sees no import change). See specs/feedback.md.
5
+ //
6
+ // Mutating: force-reimports the package's .cs/.asmdef via AssetDatabase and
7
+ // nudges a script recompile (restart_then_settle). The package id IS the
8
+ // scope — the bridge defaults paths_hint to "Packages/<package_id>" so the
9
+ // caller does not need to pass one. Critically, the response reports
10
+ // dllMtimeBefore / dllMtimeAfter so an agent can DETECT when the recompile
11
+ // was a no-op and fall back to a standalone Roslyn compile (documented in the
12
+ // agentNextSteps on a no-op).
13
+ export const reimportPackage = {
14
+ name: "unity_open_mcp_reimport_package",
15
+ description: "Force-reimport a LOCAL (file:-linked) UPM package's source so Unity recompiles its assembly. " +
16
+ "Use this when unity_open_mcp_assets_refresh or unity_open_mcp_execute_csharp(RequestScriptCompilation) " +
17
+ "fail to recompile a local package whose source lives outside Assets/ (Unity's incremental compiler " +
18
+ "no-ops on it). Mutating: force-reimports every .cs + .asmdef under the package's resolved source root " +
19
+ "and nudges a script recompile; the bridge blocks on the post-reimport compile via its " +
20
+ "restart_then_settle lifecycle. The response reports dllMtimeBefore / dllMtimeAfter (newest matching " +
21
+ "Library/ScriptAssemblies/*.dll mtime, in UTC ticks) and a recompiled boolean so a no-op recompile is " +
22
+ "detectable; on a no-op, agentNextSteps points at a standalone Roslyn-compile fallback. Returns " +
23
+ "not_local_package for registry/git/embedded packages (they have nothing outside Assets/ to reimport — " +
24
+ "use unity_open_mcp_assets_refresh instead). The package id IS the scope: paths_hint is optional and " +
25
+ "defaults to [\"Packages/<package_id>\"].",
26
+ inputSchema: {
27
+ type: "object",
28
+ required: ["package_id"],
29
+ properties: {
30
+ package_id: {
31
+ type: "string",
32
+ description: "Package name, packageId, or displayName to reimport, e.g. 'com.alexeyperov.unity-open-mcp-bridge'. " +
33
+ "A trailing '@<version>' is stripped. Must resolve to an installed LOCAL (file:-linked) package; " +
34
+ "non-local packages return not_local_package.",
35
+ },
36
+ paths_hint: {
37
+ type: "array",
38
+ items: { type: "string" },
39
+ description: "Optional mutation scope. Defaults to [\"Packages/<package_id>\"] — the bridge fills it in from " +
40
+ "package_id, so callers usually omit it. The package's real source lives outside Assets/, so " +
41
+ "there is no Assets/ path for the gate to validate; the default scope exists only to give the " +
42
+ "gate a non-empty hint.",
43
+ },
44
+ gate: {
45
+ enum: ["enforce", "warn", "off"],
46
+ default: "enforce",
47
+ description: "Gate mode. Default 'enforce' — fails the call if the reimport surfaces new errors.",
48
+ },
49
+ },
50
+ additionalProperties: false,
51
+ },
52
+ };
53
+ //# sourceMappingURL=reimport-package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reimport-package.js","sourceRoot":"","sources":["../../src/tools/reimport-package.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,+EAA+E;AAC/E,0EAA0E;AAC1E,0DAA0D;AAC1D,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,2EAA2E;AAC3E,qEAAqE;AACrE,2EAA2E;AAC3E,8EAA8E;AAC9E,8BAA8B;AAC9B,MAAM,CAAC,MAAM,eAAe,GAAS;IACnC,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,+FAA+F;QAC/F,yGAAyG;QACzG,qGAAqG;QACrG,wGAAwG;QACxG,wFAAwF;QACxF,sGAAsG;QACtG,uGAAuG;QACvG,iGAAiG;QACjG,wGAAwG;QACxG,sGAAsG;QACtG,0CAA0C;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,qGAAqG;oBACrG,kGAAkG;oBAClG,8CAA8C;aACjD;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,iGAAiG;oBACjG,8FAA8F;oBAC9F,+FAA+F;oBAC/F,wBAAwB;aAC3B;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC;gBAChC,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,oFAAoF;aAClG;SACF;QACD,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC"}