Skip to content

Commit 8cd7fba

Browse files
committed
Minor fixes
1 parent b7d669f commit 8cd7fba

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

UnityMcpBridge/UnityMcpServer~/src/tools/manage_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def manage_asset(
2626
destination: Annotated[str,
2727
"Target path for 'duplicate'/'move'."] | None = None,
2828
generate_preview: Annotated[bool,
29-
"When true, `close_stage` will save the prefab before exiting the stage."] = False,
29+
"Generate a preview/thumbnail for the asset when supported."] = False,
3030
search_pattern: Annotated[str,
3131
"Search pattern (e.g., '*.prefab')."] | None = None,
3232
filter_type: Annotated[str, "Filter type for search"] | None = None,

UnityMcpBridge/UnityMcpServer~/src/tools/manage_menu_item.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from mcp.server.fastmcp import FastMCP, Context
88
from telemetry_decorator import telemetry_tool
99

10-
from unity_connection import get_unity_connection, async_send_command_with_retry
10+
from unity_connection import async_send_command_with_retry
1111

1212

1313
def register_manage_menu_item_tools(mcp: FastMCP):
@@ -38,8 +38,6 @@ async def manage_menu_item(
3838

3939
# Get the current asyncio event loop
4040
loop = asyncio.get_running_loop()
41-
# Touch the connection to ensure availability (mirrors other tools' pattern)
42-
_ = get_unity_connection()
4341

4442
# Use centralized async retry helper
4543
result = await async_send_command_with_retry("manage_menu_item", params_dict, loop=loop)

UnityMcpBridge/UnityMcpServer~/src/tools/read_console.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ def read_console(
2929
"Include stack traces in output"] | None = None
3030
) -> dict[str, Any]:
3131
ctx.info(f"Processing read_console: {action}")
32-
# Get the connection instance
33-
bridge = get_unity_connection()
34-
3532
# Set defaults if values are None
3633
action = action if action is not None else 'get'
3734
types = types if types is not None else ['error', 'warning', 'log']

0 commit comments

Comments
 (0)