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
stringideIntegrationTooltip="Add the Library/PackedCache folder to VSCode-like IDE workspaces so code can be indexed for the AI to access it. This improves code intelligence for Unity packages in VSCode, Cursor, and similar IDEs.";
EditorUtility.DisplayDialog("Workspace Updated","Successfully added Library/PackedCache to workspace files. Please restart your IDE and open the workspace.","OK");
175
-
}
176
-
else
177
-
{
178
-
EditorUtility.DisplayDialog("Workspace Update Failed","No workspace files were found or needed updating.","OK");
stringideIntegrationTooltip="Add the Library/PackedCache folder to VSCode-like IDE workspaces so code can be indexed for the AI to access it. This improves code intelligence for Unity packages in VSCode, Cursor, and similar IDEs.";
225
+
226
+
WrappedLabel("These settings help improve code intelligence in VSCode-like IDEs by adding the Unity Package Cache to your workspace. This is automatically configured when the MCP Unity tool is opened in Unity.");
EditorUtility.DisplayDialog("Workspace Updated","Successfully added Library/PackedCache to workspace files. Please restart your IDE and open the workspace.","OK");
236
+
}
237
+
else
238
+
{
239
+
EditorUtility.DisplayDialog("Workspace Update Failed","No workspace files were found or needed updating.","OK");
WrappedLabel("Execute the menu item 'GameObject/Create Empty' to create a new empty GameObject",newGUIStyle(EditorStyles.miniLabel){fontStyle=FontStyle.Italic});
Copy file name to clipboardExpand all lines: README.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,38 +53,60 @@ MCP Unity provides automatic integration with VSCode-like IDEs (Visual Studio Co
53
53
- Enables better autocompletion and type information for Unity packages
54
54
- Helps AI coding assistants understand your project's dependencies
55
55
56
-
You can manually update your workspace using the "Update Workspace Now" button in the Unity Editor MCP Server window (Tools > MCP Unity > Server Window) under the IDE Integration section.
57
-
58
56
### MCP Server Tools
59
57
60
58
This MCP currently provides the following <ins>tools</ins>:
61
59
62
60
- <ins>**execute_menu_item**</ins>: Executes Unity menu items (functions tagged with the MenuItem attribute)
61
+
> **Example prompt:** "Execute the menu item 'GameObject/Create Empty' to create a new empty GameObject"
62
+
63
63
- <ins>**select_gameobject**</ins>: Selects game objects in the Unity hierarchy by path or instance ID
64
+
> **Example prompt:** "Select the Main Camera object in my scene"
65
+
64
66
- <ins>**update_component**</ins>: Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component
67
+
> **Example prompt:** "Add a Rigidbody component to the Player object and set its mass to 5"
68
+
65
69
- <ins>**add_package**</ins>: Installs new packages in the Unity Package Manager
70
+
> **Example prompt:** "Add the TextMeshPro package to my project"
71
+
66
72
- <ins>**run_tests**</ins>: Runs tests using the Unity Test Runner
73
+
> **Example prompt:** "Run all the EditMode tests in my project"
74
+
67
75
- <ins>**notify_message**</ins>: Displays messages in the Unity Editor
76
+
> **Example prompt:** "Send a notification to Unity that the task has been completed"
68
77
69
78
### MCP Server Resources
70
79
71
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
81
+
> **Example prompt:** "Show me all available menu items related to GameObject creation"
82
+
72
83
- <ins>**get_hierarchy**</ins>: Retrieves a list of all game objects in the Unity hierarchy
84
+
> **Example prompt:** "Show me the current scene hierarchy structure"
85
+
73
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
87
+
> **Example prompt:** "Get me detailed information about the Player GameObject"
88
+
74
89
- <ins>**get_console_logs**</ins>: Retrieves a list of all logs from the Unity console
90
+
> **Example prompt:** "Show me the recent error messages from the Unity console"
91
+
75
92
- <ins>**get_packages**</ins>: Retrieves information about installed and available packages from the Unity Package Manager
93
+
> **Example prompt:** "List all the packages currently installed in my Unity project"
94
+
76
95
- <ins>**get_assets**</ins>: Retrieves information about assets in the Unity Asset Database
96
+
> **Example prompt:** "Find all texture assets in my project"
97
+
77
98
- <ins>**get_tests**</ins>: Retrieves information about tests in the Unity Test Runner
99
+
> **Example prompt:** "List all available tests in my Unity project"
0 commit comments