unreal-engine-mcp-server 0.2.1

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 (155) hide show
  1. package/.dockerignore +57 -0
  2. package/.env.production +25 -0
  3. package/.eslintrc.json +54 -0
  4. package/.github/workflows/publish-mcp.yml +75 -0
  5. package/Dockerfile +54 -0
  6. package/LICENSE +21 -0
  7. package/Public/icon.png +0 -0
  8. package/README.md +209 -0
  9. package/claude_desktop_config_example.json +13 -0
  10. package/dist/cli.d.ts +3 -0
  11. package/dist/cli.js +7 -0
  12. package/dist/index.d.ts +31 -0
  13. package/dist/index.js +484 -0
  14. package/dist/prompts/index.d.ts +14 -0
  15. package/dist/prompts/index.js +38 -0
  16. package/dist/python-utils.d.ts +29 -0
  17. package/dist/python-utils.js +54 -0
  18. package/dist/resources/actors.d.ts +13 -0
  19. package/dist/resources/actors.js +83 -0
  20. package/dist/resources/assets.d.ts +23 -0
  21. package/dist/resources/assets.js +245 -0
  22. package/dist/resources/levels.d.ts +17 -0
  23. package/dist/resources/levels.js +94 -0
  24. package/dist/tools/actors.d.ts +51 -0
  25. package/dist/tools/actors.js +459 -0
  26. package/dist/tools/animation.d.ts +196 -0
  27. package/dist/tools/animation.js +579 -0
  28. package/dist/tools/assets.d.ts +21 -0
  29. package/dist/tools/assets.js +304 -0
  30. package/dist/tools/audio.d.ts +170 -0
  31. package/dist/tools/audio.js +416 -0
  32. package/dist/tools/blueprint.d.ts +144 -0
  33. package/dist/tools/blueprint.js +652 -0
  34. package/dist/tools/build_environment_advanced.d.ts +66 -0
  35. package/dist/tools/build_environment_advanced.js +484 -0
  36. package/dist/tools/consolidated-tool-definitions.d.ts +2598 -0
  37. package/dist/tools/consolidated-tool-definitions.js +607 -0
  38. package/dist/tools/consolidated-tool-handlers.d.ts +2 -0
  39. package/dist/tools/consolidated-tool-handlers.js +1050 -0
  40. package/dist/tools/debug.d.ts +185 -0
  41. package/dist/tools/debug.js +265 -0
  42. package/dist/tools/editor.d.ts +88 -0
  43. package/dist/tools/editor.js +365 -0
  44. package/dist/tools/engine.d.ts +30 -0
  45. package/dist/tools/engine.js +36 -0
  46. package/dist/tools/foliage.d.ts +155 -0
  47. package/dist/tools/foliage.js +525 -0
  48. package/dist/tools/introspection.d.ts +98 -0
  49. package/dist/tools/introspection.js +683 -0
  50. package/dist/tools/landscape.d.ts +158 -0
  51. package/dist/tools/landscape.js +375 -0
  52. package/dist/tools/level.d.ts +110 -0
  53. package/dist/tools/level.js +362 -0
  54. package/dist/tools/lighting.d.ts +159 -0
  55. package/dist/tools/lighting.js +1179 -0
  56. package/dist/tools/materials.d.ts +34 -0
  57. package/dist/tools/materials.js +146 -0
  58. package/dist/tools/niagara.d.ts +145 -0
  59. package/dist/tools/niagara.js +289 -0
  60. package/dist/tools/performance.d.ts +163 -0
  61. package/dist/tools/performance.js +412 -0
  62. package/dist/tools/physics.d.ts +189 -0
  63. package/dist/tools/physics.js +784 -0
  64. package/dist/tools/rc.d.ts +110 -0
  65. package/dist/tools/rc.js +363 -0
  66. package/dist/tools/sequence.d.ts +112 -0
  67. package/dist/tools/sequence.js +675 -0
  68. package/dist/tools/tool-definitions.d.ts +4919 -0
  69. package/dist/tools/tool-definitions.js +891 -0
  70. package/dist/tools/tool-handlers.d.ts +47 -0
  71. package/dist/tools/tool-handlers.js +830 -0
  72. package/dist/tools/ui.d.ts +171 -0
  73. package/dist/tools/ui.js +337 -0
  74. package/dist/tools/visual.d.ts +29 -0
  75. package/dist/tools/visual.js +67 -0
  76. package/dist/types/env.d.ts +10 -0
  77. package/dist/types/env.js +18 -0
  78. package/dist/types/index.d.ts +323 -0
  79. package/dist/types/index.js +28 -0
  80. package/dist/types/tool-types.d.ts +274 -0
  81. package/dist/types/tool-types.js +13 -0
  82. package/dist/unreal-bridge.d.ts +126 -0
  83. package/dist/unreal-bridge.js +992 -0
  84. package/dist/utils/cache-manager.d.ts +64 -0
  85. package/dist/utils/cache-manager.js +176 -0
  86. package/dist/utils/error-handler.d.ts +66 -0
  87. package/dist/utils/error-handler.js +243 -0
  88. package/dist/utils/errors.d.ts +133 -0
  89. package/dist/utils/errors.js +256 -0
  90. package/dist/utils/http.d.ts +26 -0
  91. package/dist/utils/http.js +135 -0
  92. package/dist/utils/logger.d.ts +12 -0
  93. package/dist/utils/logger.js +32 -0
  94. package/dist/utils/normalize.d.ts +17 -0
  95. package/dist/utils/normalize.js +49 -0
  96. package/dist/utils/response-validator.d.ts +34 -0
  97. package/dist/utils/response-validator.js +121 -0
  98. package/dist/utils/safe-json.d.ts +4 -0
  99. package/dist/utils/safe-json.js +97 -0
  100. package/dist/utils/stdio-redirect.d.ts +2 -0
  101. package/dist/utils/stdio-redirect.js +20 -0
  102. package/dist/utils/validation.d.ts +50 -0
  103. package/dist/utils/validation.js +173 -0
  104. package/mcp-config-example.json +14 -0
  105. package/package.json +63 -0
  106. package/server.json +60 -0
  107. package/src/cli.ts +7 -0
  108. package/src/index.ts +543 -0
  109. package/src/prompts/index.ts +51 -0
  110. package/src/python/editor_compat.py +181 -0
  111. package/src/python-utils.ts +57 -0
  112. package/src/resources/actors.ts +92 -0
  113. package/src/resources/assets.ts +251 -0
  114. package/src/resources/levels.ts +83 -0
  115. package/src/tools/actors.ts +480 -0
  116. package/src/tools/animation.ts +713 -0
  117. package/src/tools/assets.ts +305 -0
  118. package/src/tools/audio.ts +548 -0
  119. package/src/tools/blueprint.ts +736 -0
  120. package/src/tools/build_environment_advanced.ts +526 -0
  121. package/src/tools/consolidated-tool-definitions.ts +619 -0
  122. package/src/tools/consolidated-tool-handlers.ts +1093 -0
  123. package/src/tools/debug.ts +368 -0
  124. package/src/tools/editor.ts +360 -0
  125. package/src/tools/engine.ts +32 -0
  126. package/src/tools/foliage.ts +652 -0
  127. package/src/tools/introspection.ts +778 -0
  128. package/src/tools/landscape.ts +523 -0
  129. package/src/tools/level.ts +410 -0
  130. package/src/tools/lighting.ts +1316 -0
  131. package/src/tools/materials.ts +148 -0
  132. package/src/tools/niagara.ts +312 -0
  133. package/src/tools/performance.ts +549 -0
  134. package/src/tools/physics.ts +924 -0
  135. package/src/tools/rc.ts +437 -0
  136. package/src/tools/sequence.ts +791 -0
  137. package/src/tools/tool-definitions.ts +907 -0
  138. package/src/tools/tool-handlers.ts +941 -0
  139. package/src/tools/ui.ts +499 -0
  140. package/src/tools/visual.ts +60 -0
  141. package/src/types/env.ts +27 -0
  142. package/src/types/index.ts +414 -0
  143. package/src/types/tool-types.ts +343 -0
  144. package/src/unreal-bridge.ts +1118 -0
  145. package/src/utils/cache-manager.ts +213 -0
  146. package/src/utils/error-handler.ts +320 -0
  147. package/src/utils/errors.ts +312 -0
  148. package/src/utils/http.ts +184 -0
  149. package/src/utils/logger.ts +30 -0
  150. package/src/utils/normalize.ts +54 -0
  151. package/src/utils/response-validator.ts +145 -0
  152. package/src/utils/safe-json.ts +112 -0
  153. package/src/utils/stdio-redirect.ts +18 -0
  154. package/src/utils/validation.ts +212 -0
  155. package/tsconfig.json +33 -0
@@ -0,0 +1,891 @@
1
+ // Tool definitions for all 16 MCP tools
2
+ export const toolDefinitions = [
3
+ // Asset Tools
4
+ {
5
+ name: 'list_assets',
6
+ description: 'List all assets in a directory',
7
+ inputSchema: {
8
+ type: 'object',
9
+ properties: {
10
+ directory: { type: 'string', description: 'Directory path (e.g. /Game/Assets)' },
11
+ recursive: { type: 'boolean', description: 'List recursively' }
12
+ },
13
+ required: ['directory']
14
+ },
15
+ outputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ assets: {
19
+ type: 'array',
20
+ items: {
21
+ type: 'object',
22
+ properties: {
23
+ Name: { type: 'string' },
24
+ Path: { type: 'string' },
25
+ Class: { type: 'string' },
26
+ PackagePath: { type: 'string' }
27
+ }
28
+ }
29
+ },
30
+ error: { type: 'string' },
31
+ note: { type: 'string' }
32
+ }
33
+ }
34
+ },
35
+ {
36
+ name: 'import_asset',
37
+ description: 'Import an asset from file system',
38
+ inputSchema: {
39
+ type: 'object',
40
+ properties: {
41
+ sourcePath: { type: 'string', description: 'File system path to import from' },
42
+ destinationPath: { type: 'string', description: 'Project path to import to' }
43
+ },
44
+ required: ['sourcePath', 'destinationPath']
45
+ },
46
+ outputSchema: {
47
+ type: 'object',
48
+ properties: {
49
+ success: { type: 'boolean' },
50
+ paths: { type: 'array', items: { type: 'string' } },
51
+ message: { type: 'string' },
52
+ error: { type: 'string' }
53
+ }
54
+ }
55
+ },
56
+ // Actor Tools
57
+ {
58
+ name: 'spawn_actor',
59
+ description: 'Spawn a new actor in the level',
60
+ inputSchema: {
61
+ type: 'object',
62
+ properties: {
63
+ classPath: { type: 'string', description: 'Blueprint/class path' },
64
+ location: {
65
+ type: 'object',
66
+ properties: {
67
+ x: { type: 'number' },
68
+ y: { type: 'number' },
69
+ z: { type: 'number' }
70
+ }
71
+ },
72
+ rotation: {
73
+ type: 'object',
74
+ properties: {
75
+ pitch: { type: 'number' },
76
+ yaw: { type: 'number' },
77
+ roll: { type: 'number' }
78
+ }
79
+ }
80
+ },
81
+ required: ['classPath']
82
+ },
83
+ outputSchema: {
84
+ type: 'object',
85
+ properties: {
86
+ success: { type: 'boolean' },
87
+ actor: { type: 'string' },
88
+ error: { type: 'string' }
89
+ }
90
+ }
91
+ },
92
+ {
93
+ name: 'delete_actor',
94
+ description: 'Delete an actor from the level',
95
+ inputSchema: {
96
+ type: 'object',
97
+ properties: {
98
+ actorName: { type: 'string', description: 'Name of the actor to delete' }
99
+ },
100
+ required: ['actorName']
101
+ },
102
+ outputSchema: {
103
+ type: 'object',
104
+ properties: {
105
+ success: { type: 'boolean' },
106
+ deleted: { type: 'string' },
107
+ error: { type: 'string' }
108
+ }
109
+ }
110
+ },
111
+ // Material Tools
112
+ {
113
+ name: 'create_material',
114
+ description: 'Create a new material asset',
115
+ inputSchema: {
116
+ type: 'object',
117
+ properties: {
118
+ name: { type: 'string', description: 'Material name' },
119
+ path: { type: 'string', description: 'Path to create material' }
120
+ },
121
+ required: ['name', 'path']
122
+ },
123
+ outputSchema: {
124
+ type: 'object',
125
+ properties: {
126
+ success: { type: 'boolean' },
127
+ materialPath: { type: 'string' },
128
+ message: { type: 'string' },
129
+ error: { type: 'string' }
130
+ }
131
+ }
132
+ },
133
+ {
134
+ name: 'apply_material_to_actor',
135
+ description: 'Apply a material to an actor in the level',
136
+ inputSchema: {
137
+ type: 'object',
138
+ properties: {
139
+ actorPath: { type: 'string', description: 'Path to the actor' },
140
+ materialPath: { type: 'string', description: 'Path to the material asset' },
141
+ slotIndex: { type: 'number', description: 'Material slot index (default: 0)' }
142
+ },
143
+ required: ['actorPath', 'materialPath']
144
+ },
145
+ outputSchema: {
146
+ type: 'object',
147
+ properties: {
148
+ success: { type: 'boolean' },
149
+ message: { type: 'string' }
150
+ }
151
+ }
152
+ },
153
+ // Editor Tools
154
+ {
155
+ name: 'play_in_editor',
156
+ description: 'Start Play In Editor (PIE) mode',
157
+ inputSchema: {
158
+ type: 'object',
159
+ properties: {}
160
+ },
161
+ outputSchema: {
162
+ type: 'object',
163
+ properties: {
164
+ success: { type: 'boolean' },
165
+ playing: { type: 'boolean' },
166
+ message: { type: 'string' }
167
+ }
168
+ }
169
+ },
170
+ {
171
+ name: 'stop_play_in_editor',
172
+ description: 'Stop Play In Editor (PIE) mode',
173
+ inputSchema: {
174
+ type: 'object',
175
+ properties: {}
176
+ },
177
+ outputSchema: {
178
+ type: 'object',
179
+ properties: {
180
+ success: { type: 'boolean' },
181
+ playing: { type: 'boolean' },
182
+ message: { type: 'string' }
183
+ }
184
+ }
185
+ },
186
+ {
187
+ name: 'set_camera',
188
+ description: 'Set viewport camera position and rotation',
189
+ inputSchema: {
190
+ type: 'object',
191
+ properties: {
192
+ location: {
193
+ type: 'object',
194
+ properties: {
195
+ x: { type: 'number' },
196
+ y: { type: 'number' },
197
+ z: { type: 'number' }
198
+ }
199
+ },
200
+ rotation: {
201
+ type: 'object',
202
+ properties: {
203
+ pitch: { type: 'number' },
204
+ yaw: { type: 'number' },
205
+ roll: { type: 'number' }
206
+ }
207
+ }
208
+ },
209
+ required: ['location']
210
+ },
211
+ outputSchema: {
212
+ type: 'object',
213
+ properties: {
214
+ success: { type: 'boolean' },
215
+ location: { type: 'array', items: { type: 'number' } },
216
+ rotation: { type: 'array', items: { type: 'number' } }
217
+ }
218
+ }
219
+ },
220
+ // Animation Tools
221
+ {
222
+ name: 'create_animation_blueprint',
223
+ description: 'Create an animation blueprint',
224
+ inputSchema: {
225
+ type: 'object',
226
+ properties: {
227
+ name: { type: 'string', description: 'Animation blueprint name' },
228
+ skeletonPath: { type: 'string', description: 'Path to skeleton' },
229
+ savePath: { type: 'string', description: 'Save location' }
230
+ },
231
+ required: ['name', 'skeletonPath']
232
+ },
233
+ outputSchema: {
234
+ type: 'object',
235
+ properties: {
236
+ success: { type: 'boolean' },
237
+ blueprintPath: { type: 'string' },
238
+ message: { type: 'string' }
239
+ }
240
+ }
241
+ },
242
+ {
243
+ name: 'play_animation_montage',
244
+ description: 'Play an animation montage on an actor',
245
+ inputSchema: {
246
+ type: 'object',
247
+ properties: {
248
+ actorName: { type: 'string', description: 'Actor name' },
249
+ montagePath: { type: 'string', description: 'Path to montage' },
250
+ playRate: { type: 'number', description: 'Playback rate' }
251
+ },
252
+ required: ['actorName', 'montagePath']
253
+ },
254
+ outputSchema: {
255
+ type: 'object',
256
+ properties: {
257
+ success: { type: 'boolean' },
258
+ playing: { type: 'boolean' },
259
+ message: { type: 'string' }
260
+ }
261
+ }
262
+ },
263
+ // Physics Tools
264
+ {
265
+ name: 'setup_ragdoll',
266
+ description: 'Setup ragdoll physics for a skeletal mesh',
267
+ inputSchema: {
268
+ type: 'object',
269
+ properties: {
270
+ skeletonPath: { type: 'string', description: 'Path to skeleton' },
271
+ physicsAssetName: { type: 'string', description: 'Physics asset name' },
272
+ blendWeight: { type: 'number', description: 'Blend weight (0-1)' }
273
+ },
274
+ required: ['skeletonPath', 'physicsAssetName']
275
+ },
276
+ outputSchema: {
277
+ type: 'object',
278
+ properties: {
279
+ success: { type: 'boolean' },
280
+ ragdollActive: { type: 'boolean' },
281
+ message: { type: 'string' }
282
+ }
283
+ }
284
+ },
285
+ {
286
+ name: 'apply_force',
287
+ description: 'Apply force to an actor',
288
+ inputSchema: {
289
+ type: 'object',
290
+ properties: {
291
+ actorName: { type: 'string', description: 'Actor name' },
292
+ force: {
293
+ type: 'object',
294
+ properties: {
295
+ x: { type: 'number' },
296
+ y: { type: 'number' },
297
+ z: { type: 'number' }
298
+ }
299
+ }
300
+ },
301
+ required: ['actorName', 'force']
302
+ },
303
+ outputSchema: {
304
+ type: 'object',
305
+ properties: {
306
+ success: { type: 'boolean' },
307
+ physicsEnabled: { type: 'boolean' },
308
+ message: { type: 'string' },
309
+ error: { type: 'string' }
310
+ }
311
+ }
312
+ },
313
+ // Niagara Tools
314
+ {
315
+ name: 'create_particle_effect',
316
+ description: 'Create a Niagara particle effect',
317
+ inputSchema: {
318
+ type: 'object',
319
+ properties: {
320
+ effectType: { type: 'string', description: 'Effect type (Fire, Smoke, Water, etc.)' },
321
+ name: { type: 'string', description: 'Effect name' },
322
+ location: {
323
+ type: 'object',
324
+ properties: {
325
+ x: { type: 'number' },
326
+ y: { type: 'number' },
327
+ z: { type: 'number' }
328
+ }
329
+ }
330
+ },
331
+ required: ['effectType', 'name', 'location']
332
+ },
333
+ outputSchema: {
334
+ type: 'object',
335
+ properties: {
336
+ success: { type: 'boolean' },
337
+ effectName: { type: 'string' },
338
+ effectPath: { type: 'string' },
339
+ message: { type: 'string' }
340
+ }
341
+ }
342
+ },
343
+ {
344
+ name: 'spawn_niagara_system',
345
+ description: 'Spawn a Niagara system in the level',
346
+ inputSchema: {
347
+ type: 'object',
348
+ properties: {
349
+ systemPath: { type: 'string', description: 'Path to Niagara system' },
350
+ location: {
351
+ type: 'object',
352
+ properties: {
353
+ x: { type: 'number' },
354
+ y: { type: 'number' },
355
+ z: { type: 'number' }
356
+ }
357
+ },
358
+ scale: { type: 'number', description: 'Scale factor' }
359
+ },
360
+ required: ['systemPath', 'location']
361
+ },
362
+ outputSchema: {
363
+ type: 'object',
364
+ properties: {
365
+ success: { type: 'boolean' },
366
+ spawned: { type: 'boolean' },
367
+ message: { type: 'string' }
368
+ }
369
+ }
370
+ },
371
+ // Blueprint Tools
372
+ {
373
+ name: 'create_blueprint',
374
+ description: 'Create a new blueprint',
375
+ inputSchema: {
376
+ type: 'object',
377
+ properties: {
378
+ name: { type: 'string', description: 'Blueprint name' },
379
+ blueprintType: { type: 'string', description: 'Type (Actor, Pawn, Character, etc.)' },
380
+ savePath: { type: 'string', description: 'Save location' }
381
+ },
382
+ required: ['name', 'blueprintType']
383
+ },
384
+ outputSchema: {
385
+ type: 'object',
386
+ properties: {
387
+ success: { type: 'boolean' },
388
+ blueprintPath: { type: 'string' },
389
+ message: { type: 'string' }
390
+ }
391
+ }
392
+ },
393
+ {
394
+ name: 'add_blueprint_component',
395
+ description: 'Add a component to a blueprint',
396
+ inputSchema: {
397
+ type: 'object',
398
+ properties: {
399
+ blueprintName: { type: 'string', description: 'Blueprint name' },
400
+ componentType: { type: 'string', description: 'Component type' },
401
+ componentName: { type: 'string', description: 'Component name' }
402
+ },
403
+ required: ['blueprintName', 'componentType', 'componentName']
404
+ },
405
+ outputSchema: {
406
+ type: 'object',
407
+ properties: {
408
+ success: { type: 'boolean' },
409
+ componentAdded: { type: 'string' },
410
+ message: { type: 'string' },
411
+ warning: { type: 'string' }
412
+ }
413
+ }
414
+ },
415
+ // Level Tools
416
+ {
417
+ name: 'load_level',
418
+ description: 'Load a level',
419
+ inputSchema: {
420
+ type: 'object',
421
+ properties: {
422
+ levelPath: { type: 'string', description: 'Path to level' },
423
+ streaming: { type: 'boolean', description: 'Use streaming' }
424
+ },
425
+ required: ['levelPath']
426
+ },
427
+ outputSchema: {
428
+ type: 'object',
429
+ properties: {
430
+ success: { type: 'boolean' },
431
+ levelName: { type: 'string' },
432
+ message: { type: 'string' }
433
+ }
434
+ }
435
+ },
436
+ {
437
+ name: 'save_level',
438
+ description: 'Save the current level',
439
+ inputSchema: {
440
+ type: 'object',
441
+ properties: {
442
+ levelName: { type: 'string', description: 'Level name' },
443
+ savePath: { type: 'string', description: 'Save path' }
444
+ }
445
+ },
446
+ outputSchema: {
447
+ type: 'object',
448
+ properties: {
449
+ success: { type: 'boolean' },
450
+ saved: { type: 'boolean' },
451
+ message: { type: 'string' }
452
+ }
453
+ }
454
+ },
455
+ {
456
+ name: 'stream_level',
457
+ description: 'Stream a level in or out',
458
+ inputSchema: {
459
+ type: 'object',
460
+ properties: {
461
+ levelName: { type: 'string', description: 'Level name' },
462
+ shouldBeLoaded: { type: 'boolean', description: 'Load or unload' },
463
+ shouldBeVisible: { type: 'boolean', description: 'Make visible' }
464
+ },
465
+ required: ['levelName', 'shouldBeLoaded', 'shouldBeVisible']
466
+ },
467
+ outputSchema: {
468
+ type: 'object',
469
+ properties: {
470
+ success: { type: 'boolean' },
471
+ loaded: { type: 'boolean' },
472
+ visible: { type: 'boolean' },
473
+ message: { type: 'string' }
474
+ }
475
+ }
476
+ },
477
+ // Lighting Tools
478
+ {
479
+ name: 'create_light',
480
+ description: 'Create a light in the level',
481
+ inputSchema: {
482
+ type: 'object',
483
+ properties: {
484
+ lightType: { type: 'string', description: 'Light type (Directional, Point, Spot, Rect)' },
485
+ name: { type: 'string', description: 'Light name' },
486
+ location: {
487
+ type: 'object',
488
+ properties: {
489
+ x: { type: 'number' },
490
+ y: { type: 'number' },
491
+ z: { type: 'number' }
492
+ }
493
+ },
494
+ intensity: { type: 'number', description: 'Light intensity' }
495
+ },
496
+ required: ['lightType', 'name']
497
+ },
498
+ outputSchema: {
499
+ type: 'object',
500
+ properties: {
501
+ success: { type: 'boolean' },
502
+ lightName: { type: 'string' },
503
+ message: { type: 'string' }
504
+ }
505
+ }
506
+ },
507
+ {
508
+ name: 'build_lighting',
509
+ description: 'Build lighting for the current level',
510
+ inputSchema: {
511
+ type: 'object',
512
+ properties: {
513
+ quality: { type: 'string', description: 'Quality (Preview, Medium, High, Production)' }
514
+ }
515
+ },
516
+ outputSchema: {
517
+ type: 'object',
518
+ properties: {
519
+ success: { type: 'boolean' },
520
+ quality: { type: 'string' },
521
+ message: { type: 'string' }
522
+ }
523
+ }
524
+ },
525
+ // Landscape Tools
526
+ {
527
+ name: 'create_landscape',
528
+ description: 'Create a new landscape',
529
+ inputSchema: {
530
+ type: 'object',
531
+ properties: {
532
+ name: { type: 'string', description: 'Landscape name' },
533
+ sizeX: { type: 'number', description: 'Size X' },
534
+ sizeY: { type: 'number', description: 'Size Y' },
535
+ materialPath: { type: 'string', description: 'Material path' }
536
+ },
537
+ required: ['name']
538
+ },
539
+ outputSchema: {
540
+ type: 'object',
541
+ properties: {
542
+ success: { type: 'boolean' },
543
+ landscapeName: { type: 'string' },
544
+ message: { type: 'string' }
545
+ }
546
+ }
547
+ },
548
+ {
549
+ name: 'sculpt_landscape',
550
+ description: 'Sculpt the landscape',
551
+ inputSchema: {
552
+ type: 'object',
553
+ properties: {
554
+ landscapeName: { type: 'string', description: 'Landscape name' },
555
+ tool: { type: 'string', description: 'Tool (Sculpt, Smooth, Flatten, etc.)' },
556
+ brushSize: { type: 'number', description: 'Brush size' },
557
+ strength: { type: 'number', description: 'Tool strength' }
558
+ },
559
+ required: ['landscapeName', 'tool']
560
+ },
561
+ outputSchema: {
562
+ type: 'object',
563
+ properties: {
564
+ success: { type: 'boolean' },
565
+ message: { type: 'string' }
566
+ }
567
+ }
568
+ },
569
+ // Foliage Tools
570
+ {
571
+ name: 'add_foliage_type',
572
+ description: 'Add a foliage type',
573
+ inputSchema: {
574
+ type: 'object',
575
+ properties: {
576
+ name: { type: 'string', description: 'Foliage type name' },
577
+ meshPath: { type: 'string', description: 'Path to mesh' },
578
+ density: { type: 'number', description: 'Density' }
579
+ },
580
+ required: ['name', 'meshPath']
581
+ },
582
+ outputSchema: {
583
+ type: 'object',
584
+ properties: {
585
+ success: { type: 'boolean' },
586
+ foliageTypeName: { type: 'string' },
587
+ message: { type: 'string' }
588
+ }
589
+ }
590
+ },
591
+ {
592
+ name: 'paint_foliage',
593
+ description: 'Paint foliage on landscape',
594
+ inputSchema: {
595
+ type: 'object',
596
+ properties: {
597
+ foliageType: { type: 'string', description: 'Foliage type' },
598
+ position: {
599
+ type: 'object',
600
+ properties: {
601
+ x: { type: 'number' },
602
+ y: { type: 'number' },
603
+ z: { type: 'number' }
604
+ }
605
+ },
606
+ brushSize: { type: 'number', description: 'Brush size' }
607
+ },
608
+ required: ['foliageType', 'position']
609
+ },
610
+ outputSchema: {
611
+ type: 'object',
612
+ properties: {
613
+ success: { type: 'boolean' },
614
+ instancesPlaced: { type: 'number' },
615
+ message: { type: 'string' }
616
+ }
617
+ }
618
+ },
619
+ // Debug Visualization Tools
620
+ {
621
+ name: 'draw_debug_shape',
622
+ description: 'Draw a debug shape',
623
+ inputSchema: {
624
+ type: 'object',
625
+ properties: {
626
+ shape: { type: 'string', description: 'Shape type (Line, Box, Sphere, etc.)' },
627
+ position: {
628
+ type: 'object',
629
+ properties: {
630
+ x: { type: 'number' },
631
+ y: { type: 'number' },
632
+ z: { type: 'number' }
633
+ }
634
+ },
635
+ size: { type: 'number', description: 'Size/radius' },
636
+ color: {
637
+ type: 'array',
638
+ items: { type: 'number' },
639
+ description: 'RGBA color'
640
+ },
641
+ duration: { type: 'number', description: 'Duration in seconds' }
642
+ },
643
+ required: ['shape', 'position']
644
+ },
645
+ outputSchema: {
646
+ type: 'object',
647
+ properties: {
648
+ success: { type: 'boolean' },
649
+ message: { type: 'string' }
650
+ }
651
+ }
652
+ },
653
+ {
654
+ name: 'set_view_mode',
655
+ description: 'Set the viewport view mode',
656
+ inputSchema: {
657
+ type: 'object',
658
+ properties: {
659
+ mode: { type: 'string', description: 'View mode (Lit, Unlit, Wireframe, etc.)' }
660
+ },
661
+ required: ['mode']
662
+ },
663
+ outputSchema: {
664
+ type: 'object',
665
+ properties: {
666
+ success: { type: 'boolean' },
667
+ viewMode: { type: 'string' },
668
+ message: { type: 'string' }
669
+ }
670
+ }
671
+ },
672
+ // Performance Tools
673
+ {
674
+ name: 'start_profiling',
675
+ description: 'Start performance profiling',
676
+ inputSchema: {
677
+ type: 'object',
678
+ properties: {
679
+ type: { type: 'string', description: 'Profiling type (CPU, GPU, Memory, etc.)' },
680
+ duration: { type: 'number', description: 'Duration in seconds' }
681
+ },
682
+ required: ['type']
683
+ },
684
+ outputSchema: {
685
+ type: 'object',
686
+ properties: {
687
+ success: { type: 'boolean' },
688
+ profiling: { type: 'boolean' },
689
+ message: { type: 'string' }
690
+ }
691
+ }
692
+ },
693
+ {
694
+ name: 'show_fps',
695
+ description: 'Show FPS counter',
696
+ inputSchema: {
697
+ type: 'object',
698
+ properties: {
699
+ enabled: { type: 'boolean', description: 'Enable FPS display' },
700
+ verbose: { type: 'boolean', description: 'Show verbose stats' }
701
+ },
702
+ required: ['enabled']
703
+ },
704
+ outputSchema: {
705
+ type: 'object',
706
+ properties: {
707
+ success: { type: 'boolean' },
708
+ fpsVisible: { type: 'boolean' },
709
+ message: { type: 'string' }
710
+ }
711
+ }
712
+ },
713
+ {
714
+ name: 'set_scalability',
715
+ description: 'Set scalability settings',
716
+ inputSchema: {
717
+ type: 'object',
718
+ properties: {
719
+ category: { type: 'string', description: 'Category (Shadows, Textures, Effects, etc.)' },
720
+ level: { type: 'number', description: 'Quality level (0-4)' }
721
+ },
722
+ required: ['category', 'level']
723
+ },
724
+ outputSchema: {
725
+ type: 'object',
726
+ properties: {
727
+ success: { type: 'boolean' },
728
+ qualityLevel: { type: 'number' },
729
+ message: { type: 'string' }
730
+ }
731
+ }
732
+ },
733
+ // Audio Tools
734
+ {
735
+ name: 'play_sound',
736
+ description: 'Play a sound',
737
+ inputSchema: {
738
+ type: 'object',
739
+ properties: {
740
+ soundPath: { type: 'string', description: 'Path to sound asset' },
741
+ location: {
742
+ type: 'object',
743
+ properties: {
744
+ x: { type: 'number' },
745
+ y: { type: 'number' },
746
+ z: { type: 'number' }
747
+ }
748
+ },
749
+ volume: { type: 'number', description: 'Volume (0-1)' },
750
+ is3D: { type: 'boolean', description: '3D or 2D sound' }
751
+ },
752
+ required: ['soundPath']
753
+ },
754
+ outputSchema: {
755
+ type: 'object',
756
+ properties: {
757
+ success: { type: 'boolean' },
758
+ soundPlaying: { type: 'boolean' },
759
+ message: { type: 'string' }
760
+ }
761
+ }
762
+ },
763
+ {
764
+ name: 'create_ambient_sound',
765
+ description: 'Create an ambient sound',
766
+ inputSchema: {
767
+ type: 'object',
768
+ properties: {
769
+ name: { type: 'string', description: 'Sound name' },
770
+ soundPath: { type: 'string', description: 'Path to sound' },
771
+ location: {
772
+ type: 'object',
773
+ properties: {
774
+ x: { type: 'number' },
775
+ y: { type: 'number' },
776
+ z: { type: 'number' }
777
+ }
778
+ },
779
+ radius: { type: 'number', description: 'Sound radius' }
780
+ },
781
+ required: ['name', 'soundPath', 'location']
782
+ },
783
+ outputSchema: {
784
+ type: 'object',
785
+ properties: {
786
+ success: { type: 'boolean' },
787
+ soundName: { type: 'string' },
788
+ message: { type: 'string' }
789
+ }
790
+ }
791
+ },
792
+ // UI Tools
793
+ {
794
+ name: 'create_widget',
795
+ description: 'Create a UI widget',
796
+ inputSchema: {
797
+ type: 'object',
798
+ properties: {
799
+ name: { type: 'string', description: 'Widget name' },
800
+ type: { type: 'string', description: 'Widget type (HUD, Menu, etc.)' },
801
+ savePath: { type: 'string', description: 'Save location' }
802
+ },
803
+ required: ['name']
804
+ },
805
+ outputSchema: {
806
+ type: 'object',
807
+ properties: {
808
+ success: { type: 'boolean' },
809
+ widgetPath: { type: 'string' },
810
+ message: { type: 'string' }
811
+ }
812
+ }
813
+ },
814
+ {
815
+ name: 'show_widget',
816
+ description: 'Show or hide a widget',
817
+ inputSchema: {
818
+ type: 'object',
819
+ properties: {
820
+ widgetName: { type: 'string', description: 'Widget name' },
821
+ visible: { type: 'boolean', description: 'Show or hide' }
822
+ },
823
+ required: ['widgetName', 'visible']
824
+ },
825
+ outputSchema: {
826
+ type: 'object',
827
+ properties: {
828
+ success: { type: 'boolean' },
829
+ widgetVisible: { type: 'boolean' },
830
+ message: { type: 'string' }
831
+ }
832
+ }
833
+ },
834
+ {
835
+ name: 'create_hud',
836
+ description: 'Create a HUD',
837
+ inputSchema: {
838
+ type: 'object',
839
+ properties: {
840
+ name: { type: 'string', description: 'HUD name' },
841
+ elements: {
842
+ type: 'array',
843
+ items: {
844
+ type: 'object',
845
+ properties: {
846
+ type: { type: 'string', description: 'Element type' },
847
+ position: {
848
+ type: 'array',
849
+ items: { type: 'number' }
850
+ }
851
+ }
852
+ }
853
+ }
854
+ },
855
+ required: ['name']
856
+ },
857
+ outputSchema: {
858
+ type: 'object',
859
+ properties: {
860
+ success: { type: 'boolean' },
861
+ hudPath: { type: 'string' },
862
+ message: { type: 'string' }
863
+ }
864
+ }
865
+ },
866
+ // Console command (universal tool)
867
+ {
868
+ name: 'console_command',
869
+ description: 'Execute any console command in Unreal Engine',
870
+ inputSchema: {
871
+ type: 'object',
872
+ properties: {
873
+ command: { type: 'string', description: 'Console command to execute' }
874
+ },
875
+ required: ['command']
876
+ },
877
+ outputSchema: {
878
+ type: 'object',
879
+ properties: {
880
+ success: { type: 'boolean' },
881
+ command: { type: 'string' },
882
+ result: { type: 'object' },
883
+ warning: { type: 'string' },
884
+ info: { type: 'string' },
885
+ error: { type: 'string' },
886
+ message: { type: 'string' }
887
+ }
888
+ }
889
+ }
890
+ ];
891
+ //# sourceMappingURL=tool-definitions.js.map