File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
UnityMcpBridge/UnityMcpServer~/src/tools Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 77from mcp .server .fastmcp import FastMCP , Context
88from 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
1313def 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 )
Original file line number Diff line number Diff 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' ]
You can’t perform that action at this time.
0 commit comments