You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WrappedLabel("MCP Unity is a Unity Editor integration of the Model Context Protocol (MCP), which enables standardized communication between AI models and applications.");
MCP Unity provides automatic integration with VSCode-like IDEs (Visual Studio Code, Cursor, Windsurf) by adding the Unity `Library/PackedCache` folder to your workspace. This feature:
@@ -55,53 +59,50 @@ MCP Unity provides automatic integration with VSCode-like IDEs (Visual Studio Co
55
59
56
60
### MCP Server Tools
57
61
58
-
This MCP currently provides the following <ins>tools</ins>:
59
-
60
-
- <ins>**execute_menu_item**</ins>: Executes Unity menu items (functions tagged with the MenuItem attribute)
62
+
-`execute_menu_item`: Executes Unity menu items (functions tagged with the MenuItem attribute)
61
63
> **Example prompt:** "Execute the menu item 'GameObject/Create Empty' to create a new empty GameObject"
62
64
63
-
-<ins>**select_gameobject**</ins>: Selects game objects in the Unity hierarchy by path or instance ID
65
+
-`select_gameobject`: Selects game objects in the Unity hierarchy by path or instance ID
64
66
> **Example prompt:** "Select the Main Camera object in my scene"
65
67
66
-
-<ins>**update_component**</ins>: Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component
68
+
-`update_component`: Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component
67
69
> **Example prompt:** "Add a Rigidbody component to the Player object and set its mass to 5"
68
70
69
-
-<ins>**add_package**</ins>: Installs new packages in the Unity Package Manager
71
+
-`add_package`: Installs new packages in the Unity Package Manager
70
72
> **Example prompt:** "Add the TextMeshPro package to my project"
71
73
72
-
-<ins>**run_tests**</ins>: Runs tests using the Unity Test Runner
74
+
-`run_tests`: Runs tests using the Unity Test Runner
73
75
> **Example prompt:** "Run all the EditMode tests in my project"
74
76
75
-
-<ins>**notify_message**</ins>: Displays messages in the Unity Editor
77
+
-`notify_message`: Displays messages in the Unity Editor
76
78
> **Example prompt:** "Send a notification to Unity that the task has been completed"
77
79
80
+
-`add_asset_to_scene`: Adds an asset from the AssetDatabase to the Unity scene
81
+
> **Example prompt:** "Add the Player prefab from my project to the current scene"
82
+
78
83
### MCP Server Resources
79
84
80
-
-<ins>**get_menu_items**</ins>: Retrieves a list of all available menu items in the Unity Editor to facilitate <ins>**execute_menu_item**</ins> tool
85
+
-`unity://menu-items`: Retrieves a list of all available menu items in the Unity Editor to facilitate `execute_menu_item` tool
81
86
> **Example prompt:** "Show me all available menu items related to GameObject creation"
82
87
83
-
-<ins>**get_hierarchy**</ins>: Retrieves a list of all game objects in the Unity hierarchy
88
+
-`unity://hierarchy`: Retrieves a list of all game objects in the Unity hierarchy
84
89
> **Example prompt:** "Show me the current scene hierarchy structure"
85
90
86
-
-<ins>**get_gameobject**</ins>: Retrieves detailed information about a specific GameObject by instance ID, including all GameObject components with it's serialized properties and fields
91
+
-`unity://gameobject/{id}`: Retrieves detailed information about a specific GameObject by instance ID or object path in the scene hierarchy, including all GameObject components with it's serialized properties and fields
87
92
> **Example prompt:** "Get me detailed information about the Player GameObject"
88
93
89
-
-<ins>**get_console_logs**</ins>: Retrieves a list of all logs from the Unity console
94
+
-`unity://logs`: Retrieves a list of all logs from the Unity console
90
95
> **Example prompt:** "Show me the recent error messages from the Unity console"
91
96
92
-
-<ins>**get_packages**</ins>: Retrieves information about installed and available packages from the Unity Package Manager
97
+
-`unity://packages`: Retrieves information about installed and available packages from the Unity Package Manager
93
98
> **Example prompt:** "List all the packages currently installed in my Unity project"
94
99
95
-
-<ins>**get_assets**</ins>: Retrieves information about assets in the Unity Asset Database
100
+
-`unity://assets`: Retrieves information about assets in the Unity Asset Database
96
101
> **Example prompt:** "Find all texture assets in my project"
97
102
98
-
-<ins>**get_tests**</ins>: Retrieves information about tests in the Unity Test Runner
103
+
-`unity://tests/{testMode}`: Retrieves information about tests in the Unity Test Runner
99
104
> **Example prompt:** "List all available tests in my Unity project"
0 commit comments