Skip to content

Commit a0bef61

Browse files
authored
Merge pull request CoplayDev#191 from msanatan/feature/update-package-and-docs
Update docs and package
2 parents 8e41358 + 49b0a53 commit a0bef61

File tree

8 files changed

+48
-57
lines changed

8 files changed

+48
-57
lines changed

README-DEV.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Restores original files from backup.
4848

4949
Unity package cache is typically located at:
5050
```
51-
X:\UnityProject\Library\PackageCache\com.justinpbarnett[email protected]
51+
X:\UnityProject\Library\PackageCache\com.coplaydev[email protected]
5252
```
5353

5454
To find it:

README.md

Lines changed: 39 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Unity MCP ✨
22

3+
#### Proudly sponsored and maintained by [Coplay](https://www.coplay.dev/?ref=unity-mcp), the AI assistant for Unity.
4+
5+
[![Discord](https://img.shields.io/badge/discord-join-red.svg?logo=discord&logoColor=white)](https://discord.gg/y4p8KfzrN4)
36
[![](https://img.shields.io/badge/Unity-000000?style=flat&logo=unity&logoColor=blue 'Unity')](https://unity.com/releases/editor/archive)
47
[![python](https://img.shields.io/badge/Python-3.12-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
58
[![](https://badge.mcpx.dev?status=on 'MCP Enabled')](https://modelcontextprotocol.io/introduction)
6-
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/justinpbarnett/unity-mcp)
7-
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/justinpbarnett/unity-mcp)
9+
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/CoplayDev/unity-mcp)
10+
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/CoplayDev/unity-mcp)
811
[![](https://img.shields.io/badge/License-MIT-red.svg 'MIT License')](https://opensource.org/licenses/MIT)
12+
[![](https://img.shields.io/badge/Sponsor-Coplay-red.svg 'Coplay')](https://www.coplay.dev/?ref=unity-mcp)
913

1014
**Create your Unity apps with LLMs!**
1115

1216
Unity MCP acts as a bridge, allowing AI assistants (like Claude, Cursor) to interact directly with your Unity Editor via a local **MCP (Model Context Protocol) Client**. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
1317

1418
## 💬 Join Our Community
1519

16-
### [Discord](https://discord.gg/vhTUxXaqYr)
20+
### [Discord](https://discord.gg/y4p8KfzrN4)
1721

1822
**Get help, share ideas, and collaborate with other Unity MCP developers!**
1923

20-
2124
---
2225

23-
2426
## Key Features 🚀
2527

2628
* **🗣️ Natural Language Control:** Instruct your LLM to perform Unity tasks.
@@ -35,7 +37,7 @@ Unity MCP acts as a bridge, allowing AI assistants (like Claude, Cursor) to inte
3537

3638
* `read_console`: Gets messages from or clears the console.
3739
* `manage_script`: Manages C# scripts (create, read, update, delete).
38-
* `manage_editor`: Controls and queries the editor's state and settings.
40+
* `manage_editor`: Controls and queries the editor\'s state and settings.
3941
* `manage_scene`: Manages scenes (load, save, create, get hierarchy, etc.).
4042
* `manage_asset`: Performs asset operations (import, create, modify, delete, etc.).
4143
* `manage_shader`: Performs shader CRUD operations (create, read, modify, delete).
@@ -62,7 +64,6 @@ Unity MCP connects your tools using two components:
6264
6365
### Prerequisites
6466

65-
6667
* **Git CLI:** For cloning the server code. [Download Git](https://git-scm.com/downloads)
6768
* **Python:** Version 3.12 or newer. [Download Python](https://www.python.org/downloads/)
6869
* **Unity Hub & Editor:** Version 2020.3 LTS or newer. [Download Unity](https://unity.com/download)
@@ -76,6 +77,7 @@ Unity MCP connects your tools using two components:
7677
* [Claude Code](https://github.com/anthropics/claude-code)
7778
* [Cursor](https://www.cursor.com/en/downloads)
7879
* [Visual Studio Code Copilot](https://code.visualstudio.com/docs/copilot/overview)
80+
* [Windsurf](https://windsurf.com)
7981
* *(Others may work with manual config)*
8082
* <details> <summary><strong>[Optional] Roslyn for Advanced Script Validation</strong></summary>
8183

@@ -95,9 +97,8 @@ Unity MCP connects your tools using two components:
9597
3. Ensure .NET compatibility settings are correct
9698
4. Add `USE_ROSLYN` to Scripting Define Symbols
9799
5. Restart Unity
98-
99-
**Note:** Without Roslyn, script validation falls back to basic structural checks. Roslyn enables full C# compiler diagnostics with precise error reporting.</details>
100100

101+
**Note:** Without Roslyn, script validation falls back to basic structural checks. Roslyn enables full C# compiler diagnostics with precise error reporting.</details>
101102

102103
### Step 1: Install the Unity Package (Bridge)
103104

@@ -106,11 +107,13 @@ Unity MCP connects your tools using two components:
106107
3. Click `+` -> `Add package from git URL...`.
107108
4. Enter:
108109
```
109-
https://github.com/justinpbarnett/unity-mcp.git?path=/UnityMcpBridge
110+
https://github.com/CoplayDev/unity-mcp.git?path=/UnityMcpBridge
110111
```
111112
5. Click `Add`.
112113
6. The MCP Server should automatically be installed onto your machine as a result of this process.
113114

115+
**Note:** If you installed the MCP Server before Coplay's maintenance, you will need to uninstall the old package before re-installing the new one.
116+
114117
### Step 2: Configure Your MCP Client
115118
116119
Connect your MCP Client (Claude, Cursor, etc.) to the Python server you installed in Step 1.
@@ -121,13 +124,13 @@ Connect your MCP Client (Claude, Cursor, etc.) to the Python server you installe
121124
122125
1. In Unity, go to `Window > Unity MCP`.
123126
2. Click `Auto Configure` on the IDE you uses.
124-
3. Look for a green status indicator 🟢 and "Connected". *(This attempts to modify the MCP Client's config file automatically)*.
127+
3. Look for a green status indicator 🟢 and "Connected". *(This attempts to modify the MCP Client\'s config file automatically)*.
125128

126129
**Option B: Manual Configuration**
127130

128131
If Auto-Configure fails or you use a different client:
129132

130-
1. **Find your MCP Client's configuration file.** (Check client documentation).
133+
1. **Find your MCP Client\'s configuration file.** (Check client documentation).
131134
* *Claude Example (macOS):* `~/Library/Application Support/Claude/claude_desktop_config.json`
132135
* *Claude Example (Windows):* `%APPDATA%\Claude\claude_desktop_config.json`
133136
2. **Edit the file** to add/update the `mcpServers` section, using the *exact* paths from Step 1.
@@ -174,6 +177,7 @@ If Auto-Configure fails or you use a different client:
174177
}
175178
}
176179
```
180+
177181
(Replace YOUR_USERNAME if using ~/bin)
178182

179183
**Linux:**
@@ -197,18 +201,18 @@ If Auto-Configure fails or you use a different client:
197201

198202
(Replace YOUR_USERNAME)
199203

200-
201-
202204
**For Claude Code**
203205

204-
If you're using Claude Code, you can register the MCP server using these commands:
206+
If you\'re using Claude Code, you can register the MCP server using these commands:
205207

206208
**macOS:**
209+
207210
```bash
208211
claude mcp add UnityMCP -- uv --directory /[PATH_TO]/UnityMCP/UnityMcpServer/src run server.py
209212
```
210213

211214
**Windows:**
215+
212216
```bash
213217
claude mcp add UnityMCP -- "C:/Users/USERNAME/AppData/Roaming/Python/Python313/Scripts/uv.exe" --directory "C:/Users/USERNAME/AppData/Local/Programs/UnityMCP/UnityMcpServer/src" run server.py
214218
```
@@ -225,23 +229,26 @@ claude mcp add UnityMCP -- "C:/Users/USERNAME/AppData/Roaming/Python/Python313/S
225229
3. **Interact!** Unity tools should now be available in your MCP Client.
226230

227231
Example Prompt: `Create a 3D player controller`, `Create a yellow and bridge sun`, `Create a cool shader and apply it on a cube`.
228-
232+
229233
---
230234

231235
## Future Dev Plans (Besides PR) 📝
232236

233237
### 🔴 High Priority
238+
234239
- [ ] **Asset Generation Improvements** - Enhanced server request handling and asset pipeline optimization
235240
- [ ] **Code Generation Enhancements** - Improved generated code quality and error handling
236241
- [ ] **Robust Error Handling** - Comprehensive error messages, recovery mechanisms, and graceful degradation
237242
- [ ] **Remote Connection Support** - Enable seamless remote connection between Unity host and MCP server
238243
- [ ] **Documentation Expansion** - Complete tutorials for custom tool creation and API reference
239244

240245
### 🟡 Medium Priority
246+
241247
- [ ] **Custom Tool Creation GUI** - Visual interface for users to create and configure their own MCP tools
242248
- [ ] **Advanced Logging System** - Logging with filtering, export, and debugging capabilities
243249

244250
### 🟢 Low Priority
251+
245252
- [ ] **Mobile Platform Support** - Extended toolset for mobile development workflows and platform-specific features
246253
- [ ] **Easier Tool Setup**
247254
- [ ] **Plugin Marketplace** - Community-driven tool sharing and distribution platform
@@ -254,6 +261,7 @@ claude mcp add UnityMCP -- "C:/Users/USERNAME/AppData/Roaming/Python/Python313/S
254261
</details>
255262

256263
### 🔬 Research & Exploration
264+
257265
- [ ] **AI-Powered Asset Generation** - Integration with AI tools for automatic 3D models, textures, and animations
258266
- [ ] **Real-time Collaboration** - Live editing sessions between multiple developers *(Currently in progress)*
259267
- [ ] **Analytics Dashboard** - Usage analytics, project insights, and performance metrics
@@ -266,7 +274,7 @@ claude mcp add UnityMCP -- "C:/Users/USERNAME/AppData/Roaming/Python/Python313/S
266274

267275
### Development Tools
268276

269-
If you're contributing to Unity MCP or want to test core changes, we have development tools to streamline your workflow:
277+
If you\'re contributing to Unity MCP or want to test core changes, we have development tools to streamline your workflow:
270278

271279
- **Development Deployment Scripts**: Quickly deploy and test your changes to Unity MCP Bridge and Python Server
272280
- **Automatic Backup System**: Safe testing with easy rollback capabilities
@@ -289,8 +297,7 @@ Help make Unity MCP better!
289297

290298
5. **Push** your branch.
291299

292-
6. **Open a Pull Request** against the master branch.
293-
300+
6. **Open a Pull Request** against the main branch.
294301

295302
---
296303

@@ -300,53 +307,37 @@ Help make Unity MCP better!
300307
<summary><strong>Click to view common issues and fixes...</strong></summary>
301308

302309
- **Unity Bridge Not Running/Connecting:**
303-
304310
- Ensure Unity Editor is open.
305-
306311
- Check the status window: Window > Unity MCP.
307-
308312
- Restart Unity.
309-
310313
- **MCP Client Not Connecting / Server Not Starting:**
311-
312-
- **Verify Server Path:** Double-check the --directory path in your MCP Client's JSON config. It must exactly match the location where you cloned the UnityMCP repository in Installation Step 1 (e.g., .../Programs/UnityMCP/UnityMcpServer/src).
313-
314-
- **Verify uv:** Make sure uv is installed and working (pip show uv).
315-
314+
- **Verify Server Path:** Double-check the --directory path in your MCP Client\'s JSON config. It must exactly match the location where you cloned the UnityMCP repository in Installation Step 1 (e.g., .../Programs/UnityMCP/UnityMcpServer/src).
315+
- **Verify uv:** Make sure `uv` is installed and working (pip show uv).
316316
- **Run Manually:** Try running the server directly from the terminal to see errors: `# Navigate to the src directory first! cd /path/to/your/UnityMCP/UnityMcpServer/src uv run server.py`
317-
318317
- **Permissions (macOS/Linux):** If you installed the server in a system location like /usr/local/bin, ensure the user running the MCP client has permission to execute uv and access files there. Installing in ~/bin might be easier.
319-
320318
- **Auto-Configure Failed:**
321-
322-
- Use the Manual Configuration steps. Auto-configure might lack permissions to write to the MCP client's config file.
323-
319+
- Use the Manual Configuration steps. Auto-configure might lack permissions to write to the MCP client\'s config file.
324320

325321
</details>
326322

327-
Still stuck? [Open an Issue](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fjustinpbarnett%2Funity-mcp%2Fissues) or [Join the Discord](https://discord.gg/vhTUxXaqYr)!
328-
329-
---
330-
331-
## Contact 👋
332-
333-
- **justinpbarnett:** [X/Twitter](https://www.google.com/url?sa=E&q=https%3A%2F%2Fx.com%2Fjustinpbarnett)
334-
- **scriptwonder**: [Email](mailto:[email protected]), [LinkedIn](https://www.linkedin.com/in/shutong-wu-214043172/)
335-
323+
Still stuck? [Open an Issue](https://github.com/CoplayDev/unity-mcp/issues) or [Join the Discord](https://discord.gg/y4p8KfzrN4)!
336324

337325
---
338326

339327
## License 📜
340328

341-
MIT License. See [LICENSE](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fjustinpbarnett%2Funity-mcp%2Fblob%2Fmaster%2FLICENSE) file.
329+
MIT License. See [LICENSE](LICENSE) file.
342330

343331
---
344332

345-
## Acknowledgments 🙏
346-
347-
Thanks to the contributors and the Unity team.
333+
## Star History
348334

335+
[![Star History Chart](https://api.star-history.com/svg?repos=CoplayDev/unity-mcp&type=Date)](https://www.star-history.com/#CoplayDev/unity-mcp&Date)
349336

350-
## Star History
337+
## Sponsor
351338

352-
[![Star History Chart](https://api.star-history.com/svg?repos=justinpbarnett/unity-mcp&type=Date)](https://www.star-history.com/#justinpbarnett/unity-mcp&Date)
339+
<p align="center">
340+
<a href="https://www.coplay.dev/?ref=unity-mcp" target="_blank" rel="noopener noreferrer">
341+
<img src="logo.png" alt="Coplay Logo" width="100%">
342+
</a>
343+
</p>

UnityMcpBridge/Editor/Helpers/ServerInstaller.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ public static class ServerInstaller
1111
{
1212
private const string RootFolder = "UnityMCP";
1313
private const string ServerFolder = "UnityMcpServer";
14-
private const string BranchName = "master";
15-
private const string GitUrl = "https://github.com/justinpbarnett/unity-mcp.git";
14+
private const string BranchName = "main";
15+
private const string GitUrl = "https://github.com/CoplayDev/unity-mcp.git";
1616
private const string PyprojectUrl =
17-
"https://raw.githubusercontent.com/justinpbarnett/unity-mcp/refs/heads/"
17+
"https://raw.githubusercontent.com/CoplayDev/unity-mcp/refs/heads/"
1818
+ BranchName
1919
+ "/UnityMcpServer/src/pyproject.toml";
2020

UnityMcpBridge/Editor/Windows/UnityMcpEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ private string FindPackagePythonDirectory()
626626
{
627627
foreach (UnityEditor.PackageManager.PackageInfo package in request.Result)
628628
{
629-
if (package.name == "com.justinpbarnett.unity-mcp")
629+
if (package.name == "com.coplaydev.unity-mcp")
630630
{
631631
string packagePath = package.resolvedPath;
632632

UnityMcpBridge/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "com.justinpbarnett.unity-mcp",
3-
"version": "2.0.0",
2+
"name": "com.coplaydev.unity-mcp",
3+
"version": "1.0.0",
44
"displayName": "Unity MCP Bridge",
55
"description": "A bridge that manages and communicates with the sister application, Unity MCP Server, which allows for communications with MCP Clients like Claude Desktop or Cursor.",
66
"unity": "2020.3",

deploy-dev.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ echo.
1919

2020
:: Package cache location
2121
echo Unity Package Cache Location:
22-
echo Example: X:\UnityProject\Library\PackageCache\com.justinpbarnett[email protected]
22+
echo Example: X:\UnityProject\Library\PackageCache\com.coplaydev[email protected]
2323
set /p "PACKAGE_CACHE_PATH=Enter Unity package cache path: "
2424

2525
if "%PACKAGE_CACHE_PATH%"=="" (

logo.png

39.6 KB
Loading

restore-dev.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo.
1616

1717
:: Package cache location
1818
echo Unity Package Cache Location:
19-
echo Example: X:\UnityProject\Library\PackageCache\com.justinpbarnett[email protected]
19+
echo Example: X:\UnityProject\Library\PackageCache\com.coplaydev[email protected]
2020
set /p "PACKAGE_CACHE_PATH=Enter Unity package cache path: "
2121

2222
if "%PACKAGE_CACHE_PATH%"=="" (

0 commit comments

Comments
 (0)