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
MCP Unity is an implementation of the Model Context Protocol for Unity Editor, allowing AI assistants to interact with your Unity projects. This package provides a bridge between Unity and a Node.js server that implements the MCP protocol, enabling AI agents like Claude, Windsurf, and Cursor to execute operations within the Unity Editor.
50
49
@@ -67,13 +66,15 @@ MCP Unity currently provides the following resources:
67
66
-**get_tests**: Retrieves information about tests in the Unity Test Runner
68
67
69
68
## Requirements
70
-
- Unity 2022.3 or later
71
-
- Node.js 18 or later (for running the server)
72
-
- npm 9 or later (for building the server)
69
+
- Unity 2022.3 or later - to [install the server](#install-server)
70
+
- Node.js 18 or later - to [start the server](#start-server)
71
+
- npm 9 or later - to [debug the server](#debug-server)
72
+
73
+
## <aname="install-server"></a>Installation
73
74
74
-
## Installation
75
+
Installing this MCP Unity Server is a multi-step process:
75
76
76
-
### Installing the Unity MCP Server package via Unity Package Manager
77
+
### Step 1: Install Unity MCP Server package via Unity Package Manager
77
78
1. Open the Unity Package Manager (Window > Package Manager)
78
79
2. Click the "+" button in the top-left corner
79
80
3. Select "Add package from git URL..."
@@ -83,10 +84,12 @@ MCP Unity currently provides the following resources:
@@ -236,7 +299,14 @@ To build the server, open a terminal and:
236
299
set UNITY_PORT=8090 && npx @modelcontextprotocol/inspector node Server/build/index.js
237
300
```
238
301
239
-
2. Enable logging on your terminal or into a log.txt file:
302
+
Don't forget to shutdown the server with `Ctrl + C` before closing the terminal or debugging it with the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).
1. Enable logging on your terminal or into a log.txt file:
240
310
- Powershell
241
311
```powershell
242
312
$env:LOGGING = "true"
@@ -248,25 +318,40 @@ To build the server, open a terminal and:
248
318
set LOGGING_FILE=true
249
319
```
250
320
251
-
Don't forget to shutdown the server with `Ctrl + C` before closing the terminal or debugging it with the [@modelcontextprotocol/inspector](https://github.com/modelcontextprotocol/inspector).
- Ensure the WebSocket server is running (check the Server Window in Unity)
257
329
- Check if there are any firewall restrictions blocking the connection
258
330
- Make sure the port number is correct (default is 8080)
259
331
- Change the port number in the Unity Editor MCP Server window. (Tools > MCP Unity > Server Window)
332
+
</details>
333
+
334
+
<details>
335
+
<summary><spanstyle="font-size: 1.1em; font-weight: bold;">Server Not Starting</span></summary>
260
336
261
-
### Server Not Starting
262
337
- Check the Unity Console for error messages
263
338
- Ensure Node.js is properly installed and accessible in your PATH
264
339
- Verify that all dependencies are installed in the Server directory
340
+
</details>
341
+
342
+
<details>
343
+
<summary><spanstyle="font-size: 1.1em; font-weight: bold;">Menu Items Not Executing</span></summary>
265
344
266
-
### Menu Items Not Executing
267
345
- Ensure the menu item path is correct (case-sensitive)
268
346
- Check if the menu item requires confirmation
269
347
- Verify that the menu item is available in the current context
348
+
</details>
349
+
350
+
## Support & Feedback
351
+
352
+
If you have any questions or need support, please open an [issue](https://github.com/CoderGamester/mcp-unity/issues) on this repository.
353
+
354
+
Alternative you can reach out on [](https://www.linkedin.com/in/miguel-tomas/)
270
355
271
356
## Contributing
272
357
@@ -276,4 +361,4 @@ Contributions are welcome! Please feel free to submit a Pull Request or open an
0 commit comments