Skip to content

Commit 2ca23c3

Browse files
committed
Register CreatePrefabTool in Unity server
Modified McpUnityServer.cs to register the new CreatePrefabTool in the tool list, enabling it to be recognized and used by the MCP Unity Editor.
1 parent c98a670 commit 2ca23c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Editor/UnityBridge/McpUnityServer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ private void RegisterTools()
249249
// Register AddAssetToSceneTool
250250
AddAssetToSceneTool addAssetToSceneTool = new AddAssetToSceneTool();
251251
_tools.Add(addAssetToSceneTool.Name, addAssetToSceneTool);
252+
253+
// Register CreatePrefabTool
254+
CreatePrefabTool createPrefabTool = new CreatePrefabTool();
255+
_tools.Add(createPrefabTool.Name, createPrefabTool);
252256
}
253257

254258
/// <summary>

0 commit comments

Comments
 (0)