flockbay 0.10.49 → 0.10.52
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/README.md +60 -60
- package/bin/flockbay-mcp.mjs +62 -62
- package/bin/flockbay.mjs +95 -95
- package/dist/{index-r3VTdgFI.cjs → index-IntvnrmZ.cjs} +71 -14
- package/dist/{index-D8AeVbvv.mjs → index-wkeSi0iC.mjs} +70 -13
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/{migratePlugin-CEvGPul8.mjs → migratePlugin-C71hAoc5.mjs} +12 -2
- package/dist/{migratePlugin-wFK-k3Wk.cjs → migratePlugin-D1XjjWFq.cjs} +12 -2
- package/dist/{runCodex-DuyuYqoB.cjs → runCodex-B7i_ICoQ.cjs} +34 -23
- package/dist/{runCodex-ZfUyhHF6.mjs → runCodex-BSx-hCu6.mjs} +34 -23
- package/dist/{runGemini-DBU1mMdp.mjs → runGemini-Dwyh7_WI.mjs} +2 -2
- package/dist/{runGemini-D7j5Y5TF.cjs → runGemini-gBKR3rdL.cjs} +2 -2
- package/dist/{types-DNr0xwSy.cjs → types-5z8UADAi.cjs} +224 -15
- package/dist/{types-BRJuZQj_.mjs → types-Bgzap7qR.mjs} +224 -16
- package/package.json +131 -131
- package/scripts/claude_local_launcher.cjs +72 -72
- package/scripts/claude_remote_launcher.cjs +15 -15
- package/scripts/claude_version_utils.cjs +445 -445
- package/scripts/ripgrep_launcher.cjs +32 -32
- package/scripts/run-with-root-env.mjs +37 -32
- package/scripts/session_hook_forwarder.cjs +49 -49
- package/scripts/test-codex-abort-history.mjs +77 -77
- package/scripts/unpack-tools.cjs +244 -244
- package/tools/licenses/difftastic-LICENSE +21 -21
- package/tools/licenses/ripgrep-LICENSE +3 -3
- package/tools/unreal-mcp/UPSTREAM_VERSION.md +8 -8
- package/tools/unreal-mcp/upstream/Docs/README.md +8 -8
- package/tools/unreal-mcp/upstream/Docs/Tools/README.md +6 -6
- package/tools/unreal-mcp/upstream/Docs/Tools/actor_tools.md +183 -183
- package/tools/unreal-mcp/upstream/Docs/Tools/blueprint_tools.md +268 -268
- package/tools/unreal-mcp/upstream/Docs/Tools/editor_tools.md +104 -104
- package/tools/unreal-mcp/upstream/Docs/Tools/node_tools.md +274 -274
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Config/FilterPlugin.ini +8 -8
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/FlockbayMCP.uplugin +36 -36
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/FlockbayMCP.Build.cs +82 -82
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPBlueprintCommands.cpp +1364 -1364
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPBlueprintNodeCommands.cpp +1310 -1310
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPCommandSchema.cpp +756 -756
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPCommonUtils.cpp +1177 -1177
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPEditorCommands.cpp +2618 -2618
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPProjectCommands.cpp +71 -71
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPUMGCommands.cpp +543 -543
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/MCPServerRunnable.cpp +372 -372
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/UnrealMCPBridge.cpp +457 -457
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/UnrealMCPModule.cpp +21 -21
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPBlueprintCommands.h +35 -35
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPBlueprintNodeCommands.h +30 -30
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPCommandSchema.h +41 -41
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPCommonUtils.h +59 -59
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPEditorCommands.h +61 -61
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPProjectCommands.h +20 -20
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPUMGCommands.h +82 -82
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/MCPServerRunnable.h +33 -33
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/UnrealMCPBridge.h +64 -64
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/UnrealMCPModule.h +22 -22
- package/tools/unreal-mcp/upstream/Python/README.md +39 -39
- package/tools/unreal-mcp/upstream/Python/pyproject.toml +22 -22
- package/tools/unreal-mcp/upstream/Python/scripts/actors/test_cube.py +202 -202
- package/tools/unreal-mcp/upstream/Python/scripts/blueprints/test_create_and_spawn_blueprints_with_different_components.py +496 -496
- package/tools/unreal-mcp/upstream/Python/scripts/blueprints/test_create_and_spawn_cube_blueprint.py +193 -193
- package/tools/unreal-mcp/upstream/Python/scripts/node/test_component_reference.py +266 -266
- package/tools/unreal-mcp/upstream/Python/scripts/node/test_create_bird_blueprint_with_input_and_camera.py +617 -617
- package/tools/unreal-mcp/upstream/Python/scripts/node/test_input_mapping.py +365 -365
- package/tools/unreal-mcp/upstream/Python/scripts/node/test_physics_variables.py +389 -389
- package/tools/unreal-mcp/upstream/Python/tools/blueprint_tools.py +419 -419
- package/tools/unreal-mcp/upstream/Python/tools/editor_tools.py +369 -369
- package/tools/unreal-mcp/upstream/Python/tools/node_tools.py +429 -429
- package/tools/unreal-mcp/upstream/Python/tools/project_tools.py +63 -63
- package/tools/unreal-mcp/upstream/Python/tools/umg_tools.py +332 -332
- package/tools/unreal-mcp/upstream/Python/unreal_mcp_server.py +398 -398
- package/tools/unreal-mcp/upstream/Python/uv.lock +521 -521
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Project Tools for Unreal MCP.
|
|
3
|
-
|
|
4
|
-
This module provides tools for managing project-wide settings and configuration.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
import logging
|
|
8
|
-
from typing import Dict, Any
|
|
9
|
-
from mcp.server.fastmcp import FastMCP, Context
|
|
10
|
-
|
|
11
|
-
# Get logger
|
|
12
|
-
logger = logging.getLogger("UnrealMCP")
|
|
13
|
-
|
|
14
|
-
def register_project_tools(mcp: FastMCP):
|
|
15
|
-
"""Register project tools with the MCP server."""
|
|
16
|
-
|
|
17
|
-
@mcp.tool()
|
|
18
|
-
def create_input_mapping(
|
|
19
|
-
ctx: Context,
|
|
20
|
-
action_name: str,
|
|
21
|
-
key: str,
|
|
22
|
-
input_type: str = "Action"
|
|
23
|
-
) -> Dict[str, Any]:
|
|
24
|
-
"""
|
|
25
|
-
Create an input mapping for the project.
|
|
26
|
-
|
|
27
|
-
Args:
|
|
28
|
-
action_name: Name of the input action
|
|
29
|
-
key: Key to bind (SpaceBar, LeftMouseButton, etc.)
|
|
30
|
-
input_type: Type of input mapping (Action or Axis)
|
|
31
|
-
|
|
32
|
-
Returns:
|
|
33
|
-
Response indicating success or failure
|
|
34
|
-
"""
|
|
35
|
-
from unreal_mcp_server import get_unreal_connection
|
|
36
|
-
|
|
37
|
-
try:
|
|
38
|
-
unreal = get_unreal_connection()
|
|
39
|
-
if not unreal:
|
|
40
|
-
logger.error("Failed to connect to Unreal Engine")
|
|
41
|
-
return {"success": False, "message": "Failed to connect to Unreal Engine"}
|
|
42
|
-
|
|
43
|
-
params = {
|
|
44
|
-
"action_name": action_name,
|
|
45
|
-
"key": key,
|
|
46
|
-
"input_type": input_type
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
logger.info(f"Creating input mapping '{action_name}' with key '{key}'")
|
|
50
|
-
response = unreal.send_command("create_input_mapping", params)
|
|
51
|
-
|
|
52
|
-
if not response:
|
|
53
|
-
logger.error("No response from Unreal Engine")
|
|
54
|
-
return {"success": False, "message": "No response from Unreal Engine"}
|
|
55
|
-
|
|
56
|
-
logger.info(f"Input mapping creation response: {response}")
|
|
57
|
-
return response
|
|
58
|
-
|
|
59
|
-
except Exception as e:
|
|
60
|
-
error_msg = f"Error creating input mapping: {e}"
|
|
61
|
-
logger.error(error_msg)
|
|
62
|
-
return {"success": False, "message": error_msg}
|
|
63
|
-
|
|
1
|
+
"""
|
|
2
|
+
Project Tools for Unreal MCP.
|
|
3
|
+
|
|
4
|
+
This module provides tools for managing project-wide settings and configuration.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import logging
|
|
8
|
+
from typing import Dict, Any
|
|
9
|
+
from mcp.server.fastmcp import FastMCP, Context
|
|
10
|
+
|
|
11
|
+
# Get logger
|
|
12
|
+
logger = logging.getLogger("UnrealMCP")
|
|
13
|
+
|
|
14
|
+
def register_project_tools(mcp: FastMCP):
|
|
15
|
+
"""Register project tools with the MCP server."""
|
|
16
|
+
|
|
17
|
+
@mcp.tool()
|
|
18
|
+
def create_input_mapping(
|
|
19
|
+
ctx: Context,
|
|
20
|
+
action_name: str,
|
|
21
|
+
key: str,
|
|
22
|
+
input_type: str = "Action"
|
|
23
|
+
) -> Dict[str, Any]:
|
|
24
|
+
"""
|
|
25
|
+
Create an input mapping for the project.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
action_name: Name of the input action
|
|
29
|
+
key: Key to bind (SpaceBar, LeftMouseButton, etc.)
|
|
30
|
+
input_type: Type of input mapping (Action or Axis)
|
|
31
|
+
|
|
32
|
+
Returns:
|
|
33
|
+
Response indicating success or failure
|
|
34
|
+
"""
|
|
35
|
+
from unreal_mcp_server import get_unreal_connection
|
|
36
|
+
|
|
37
|
+
try:
|
|
38
|
+
unreal = get_unreal_connection()
|
|
39
|
+
if not unreal:
|
|
40
|
+
logger.error("Failed to connect to Unreal Engine")
|
|
41
|
+
return {"success": False, "message": "Failed to connect to Unreal Engine"}
|
|
42
|
+
|
|
43
|
+
params = {
|
|
44
|
+
"action_name": action_name,
|
|
45
|
+
"key": key,
|
|
46
|
+
"input_type": input_type
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
logger.info(f"Creating input mapping '{action_name}' with key '{key}'")
|
|
50
|
+
response = unreal.send_command("create_input_mapping", params)
|
|
51
|
+
|
|
52
|
+
if not response:
|
|
53
|
+
logger.error("No response from Unreal Engine")
|
|
54
|
+
return {"success": False, "message": "No response from Unreal Engine"}
|
|
55
|
+
|
|
56
|
+
logger.info(f"Input mapping creation response: {response}")
|
|
57
|
+
return response
|
|
58
|
+
|
|
59
|
+
except Exception as e:
|
|
60
|
+
error_msg = f"Error creating input mapping: {e}"
|
|
61
|
+
logger.error(error_msg)
|
|
62
|
+
return {"success": False, "message": error_msg}
|
|
63
|
+
|
|
64
64
|
logger.info("Project tools registered successfully")
|