unreal-engine-mcp-server 0.3.1 → 0.4.3
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.
- package/.env.production +1 -1
- package/.github/copilot-instructions.md +45 -0
- package/.github/workflows/publish-mcp.yml +1 -1
- package/README.md +22 -7
- package/dist/index.js +137 -46
- package/dist/prompts/index.d.ts +10 -3
- package/dist/prompts/index.js +186 -7
- package/dist/resources/actors.d.ts +19 -1
- package/dist/resources/actors.js +55 -64
- package/dist/resources/assets.d.ts +3 -2
- package/dist/resources/assets.js +117 -109
- package/dist/resources/levels.d.ts +21 -3
- package/dist/resources/levels.js +31 -56
- package/dist/tools/actors.d.ts +3 -14
- package/dist/tools/actors.js +246 -302
- package/dist/tools/animation.d.ts +57 -102
- package/dist/tools/animation.js +429 -450
- package/dist/tools/assets.d.ts +13 -2
- package/dist/tools/assets.js +58 -46
- package/dist/tools/audio.d.ts +22 -13
- package/dist/tools/audio.js +467 -121
- package/dist/tools/blueprint.d.ts +32 -13
- package/dist/tools/blueprint.js +699 -448
- package/dist/tools/build_environment_advanced.d.ts +0 -1
- package/dist/tools/build_environment_advanced.js +236 -87
- package/dist/tools/consolidated-tool-definitions.d.ts +232 -15
- package/dist/tools/consolidated-tool-definitions.js +124 -255
- package/dist/tools/consolidated-tool-handlers.js +749 -766
- package/dist/tools/debug.d.ts +72 -10
- package/dist/tools/debug.js +170 -36
- package/dist/tools/editor.d.ts +9 -2
- package/dist/tools/editor.js +30 -44
- package/dist/tools/foliage.d.ts +34 -15
- package/dist/tools/foliage.js +97 -107
- package/dist/tools/introspection.js +19 -21
- package/dist/tools/landscape.d.ts +1 -2
- package/dist/tools/landscape.js +311 -168
- package/dist/tools/level.d.ts +3 -28
- package/dist/tools/level.js +642 -192
- package/dist/tools/lighting.d.ts +14 -3
- package/dist/tools/lighting.js +236 -123
- package/dist/tools/materials.d.ts +25 -7
- package/dist/tools/materials.js +102 -79
- package/dist/tools/niagara.d.ts +10 -12
- package/dist/tools/niagara.js +74 -94
- package/dist/tools/performance.d.ts +12 -4
- package/dist/tools/performance.js +38 -79
- package/dist/tools/physics.d.ts +34 -10
- package/dist/tools/physics.js +364 -292
- package/dist/tools/rc.js +98 -24
- package/dist/tools/sequence.d.ts +1 -0
- package/dist/tools/sequence.js +146 -24
- package/dist/tools/ui.d.ts +31 -4
- package/dist/tools/ui.js +83 -66
- package/dist/tools/visual.d.ts +11 -0
- package/dist/tools/visual.js +245 -30
- package/dist/types/tool-types.d.ts +0 -6
- package/dist/types/tool-types.js +1 -8
- package/dist/unreal-bridge.d.ts +32 -2
- package/dist/unreal-bridge.js +621 -127
- package/dist/utils/elicitation.d.ts +57 -0
- package/dist/utils/elicitation.js +104 -0
- package/dist/utils/error-handler.d.ts +0 -33
- package/dist/utils/error-handler.js +4 -111
- package/dist/utils/http.d.ts +2 -22
- package/dist/utils/http.js +12 -75
- package/dist/utils/normalize.d.ts +4 -4
- package/dist/utils/normalize.js +15 -7
- package/dist/utils/python-output.d.ts +18 -0
- package/dist/utils/python-output.js +290 -0
- package/dist/utils/python.d.ts +2 -0
- package/dist/utils/python.js +4 -0
- package/dist/utils/response-validator.d.ts +6 -1
- package/dist/utils/response-validator.js +66 -13
- package/dist/utils/result-helpers.d.ts +27 -0
- package/dist/utils/result-helpers.js +147 -0
- package/dist/utils/safe-json.d.ts +0 -2
- package/dist/utils/safe-json.js +0 -43
- package/dist/utils/validation.d.ts +16 -0
- package/dist/utils/validation.js +70 -7
- package/mcp-config-example.json +2 -2
- package/package.json +11 -10
- package/server.json +37 -14
- package/src/index.ts +146 -50
- package/src/prompts/index.ts +211 -13
- package/src/resources/actors.ts +59 -44
- package/src/resources/assets.ts +123 -102
- package/src/resources/levels.ts +37 -47
- package/src/tools/actors.ts +269 -313
- package/src/tools/animation.ts +556 -539
- package/src/tools/assets.ts +59 -45
- package/src/tools/audio.ts +507 -113
- package/src/tools/blueprint.ts +778 -462
- package/src/tools/build_environment_advanced.ts +312 -106
- package/src/tools/consolidated-tool-definitions.ts +136 -267
- package/src/tools/consolidated-tool-handlers.ts +871 -795
- package/src/tools/debug.ts +179 -38
- package/src/tools/editor.ts +35 -37
- package/src/tools/foliage.ts +110 -104
- package/src/tools/introspection.ts +24 -22
- package/src/tools/landscape.ts +334 -181
- package/src/tools/level.ts +683 -182
- package/src/tools/lighting.ts +244 -123
- package/src/tools/materials.ts +114 -83
- package/src/tools/niagara.ts +87 -81
- package/src/tools/performance.ts +49 -88
- package/src/tools/physics.ts +393 -299
- package/src/tools/rc.ts +103 -25
- package/src/tools/sequence.ts +157 -30
- package/src/tools/ui.ts +101 -70
- package/src/tools/visual.ts +250 -29
- package/src/types/tool-types.ts +0 -9
- package/src/unreal-bridge.ts +658 -140
- package/src/utils/elicitation.ts +129 -0
- package/src/utils/error-handler.ts +4 -159
- package/src/utils/http.ts +16 -115
- package/src/utils/normalize.ts +20 -10
- package/src/utils/python-output.ts +351 -0
- package/src/utils/python.ts +3 -0
- package/src/utils/response-validator.ts +68 -17
- package/src/utils/result-helpers.ts +193 -0
- package/src/utils/safe-json.ts +0 -50
- package/src/utils/validation.ts +94 -7
- package/tests/run-unreal-tool-tests.mjs +720 -0
- package/tsconfig.json +2 -2
- package/dist/python-utils.d.ts +0 -29
- package/dist/python-utils.js +0 -54
- package/dist/tools/tool-definitions.d.ts +0 -4919
- package/dist/tools/tool-definitions.js +0 -1065
- package/dist/tools/tool-handlers.d.ts +0 -47
- package/dist/tools/tool-handlers.js +0 -863
- package/dist/types/index.d.ts +0 -323
- package/dist/types/index.js +0 -28
- package/dist/utils/cache-manager.d.ts +0 -64
- package/dist/utils/cache-manager.js +0 -176
- package/dist/utils/errors.d.ts +0 -133
- package/dist/utils/errors.js +0 -256
- package/src/python/editor_compat.py +0 -181
- package/src/python-utils.ts +0 -57
- package/src/tools/tool-definitions.ts +0 -1081
- package/src/tools/tool-handlers.ts +0 -973
- package/src/types/index.ts +0 -414
- package/src/utils/cache-manager.ts +0 -213
- package/src/utils/errors.ts +0 -312
package/tsconfig.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"resolveJsonModule": true,
|
|
16
16
|
"incremental": true,
|
|
17
17
|
"tsBuildInfoFile": ".tsbuildinfo",
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
"noUnusedLocals": false,
|
|
19
|
+
"noUnusedParameters": false,
|
|
20
20
|
"noImplicitReturns": true,
|
|
21
21
|
"noFallthroughCasesInSwitch": true,
|
|
22
22
|
"allowUnreachableCode": false,
|
package/dist/python-utils.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Python Utilities for Modern Unreal Engine API
|
|
3
|
-
*
|
|
4
|
-
* This module provides Python code snippets that use the modern
|
|
5
|
-
* Unreal Engine Python API instead of deprecated functions.
|
|
6
|
-
*/
|
|
7
|
-
export declare class PythonUtils {
|
|
8
|
-
/**
|
|
9
|
-
* Get all actors in the level using modern API
|
|
10
|
-
* @returns Python code to get all level actors
|
|
11
|
-
*/
|
|
12
|
-
static getAllLevelActors(): string;
|
|
13
|
-
/**
|
|
14
|
-
* Get selected actors using modern API
|
|
15
|
-
* @returns Python code to get selected actors
|
|
16
|
-
*/
|
|
17
|
-
static getSelectedActors(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Spawn actor from class using modern API
|
|
20
|
-
* @returns Python code to spawn actor
|
|
21
|
-
*/
|
|
22
|
-
static spawnActorFromClass(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Get a safe way to access actors
|
|
25
|
-
* @returns Python code with modern API
|
|
26
|
-
*/
|
|
27
|
-
static getSafeActorAccess(): string;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=python-utils.d.ts.map
|
package/dist/python-utils.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Python Utilities for Modern Unreal Engine API
|
|
3
|
-
*
|
|
4
|
-
* This module provides Python code snippets that use the modern
|
|
5
|
-
* Unreal Engine Python API instead of deprecated functions.
|
|
6
|
-
*/
|
|
7
|
-
export class PythonUtils {
|
|
8
|
-
/**
|
|
9
|
-
* Get all actors in the level using modern API
|
|
10
|
-
* @returns Python code to get all level actors
|
|
11
|
-
*/
|
|
12
|
-
static getAllLevelActors() {
|
|
13
|
-
return `
|
|
14
|
-
# Use modern EditorActorSubsystem instead of deprecated EditorLevelLibrary
|
|
15
|
-
editor_actor_subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
|
|
16
|
-
actors = editor_actor_subsystem.get_all_level_actors()
|
|
17
|
-
`.trim();
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get selected actors using modern API
|
|
21
|
-
* @returns Python code to get selected actors
|
|
22
|
-
*/
|
|
23
|
-
static getSelectedActors() {
|
|
24
|
-
return `
|
|
25
|
-
editor_actor_subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
|
|
26
|
-
selected_actors = editor_actor_subsystem.get_selected_level_actors()
|
|
27
|
-
`.trim();
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Spawn actor from class using modern API
|
|
31
|
-
* @returns Python code to spawn actor
|
|
32
|
-
*/
|
|
33
|
-
static spawnActorFromClass() {
|
|
34
|
-
return `
|
|
35
|
-
editor_actor_subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
|
|
36
|
-
# Use spawn_actor_from_class for spawning
|
|
37
|
-
`.trim();
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Get a safe way to access actors
|
|
41
|
-
* @returns Python code with modern API
|
|
42
|
-
*/
|
|
43
|
-
static getSafeActorAccess() {
|
|
44
|
-
return `
|
|
45
|
-
# Use modern API
|
|
46
|
-
try:
|
|
47
|
-
editor_actor_subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
|
|
48
|
-
actors = editor_actor_subsystem.get_all_level_actors() if editor_actor_subsystem else []
|
|
49
|
-
except:
|
|
50
|
-
actors = []
|
|
51
|
-
`.trim();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=python-utils.js.map
|