commit
ed98fee989
52
README.md
52
README.md
|
|
@ -1,12 +1,22 @@
|
||||||
# Unity MCP ✨
|
# Unity MCP ✨
|
||||||
|
|
||||||
**Connect your Unity Editor to LLMs using the Model Context Protocol.**
|
|
||||||
|
[](https://unity.com/releases/editor/archive)
|
||||||
|
[](https://www.python.org)
|
||||||
|
[](https://modelcontextprotocol.io/introduction)
|
||||||
|

|
||||||
|

|
||||||
|
[](https://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Create your Unity apps with LLMs!**
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/justinpbarnett/unity-mcp/assets/11047284/c279675a-dd58-406b-9613-5b16b5c6bb63"><source media="(prefers-color-scheme: light)" srcset="https://github.com/justinpbarnett/unity-mcp/assets/11047284/b54f891d-961b-4048-a9c4-3af46e2a52fc"><img alt="UnityMCP Workflow" width="100%" style="max-width: 600px; display: block; margin-left: auto; margin-right: auto;"></picture>
|
|
||||||
|
|
||||||
## Key Features 🚀
|
## Key Features 🚀
|
||||||
|
|
||||||
|
|
@ -48,8 +58,6 @@ Unity MCP connects your tools using two components:
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary><strong>Click to view required software...</strong></summary>
|
|
||||||
|
|
||||||
* **Git CLI:** For cloning the server code. [Download Git](https://git-scm.com/downloads)
|
* **Git CLI:** For cloning the server code. [Download Git](https://git-scm.com/downloads)
|
||||||
* **Python:** Version 3.12 or newer. [Download Python](https://www.python.org/downloads/)
|
* **Python:** Version 3.12 or newer. [Download Python](https://www.python.org/downloads/)
|
||||||
|
|
@ -62,8 +70,8 @@ Unity MCP connects your tools using two components:
|
||||||
* **An MCP Client:**
|
* **An MCP Client:**
|
||||||
* [Claude Desktop](https://claude.ai/download)
|
* [Claude Desktop](https://claude.ai/download)
|
||||||
* [Cursor](https://www.cursor.com/en/downloads)
|
* [Cursor](https://www.cursor.com/en/downloads)
|
||||||
|
* [Visual Studio Code Copilot](https://code.visualstudio.com/docs/copilot/overview)
|
||||||
* *(Others may work with manual config)*
|
* *(Others may work with manual config)*
|
||||||
</details>
|
|
||||||
|
|
||||||
### Step 1: Install the Unity Package (Bridge)
|
### Step 1: Install the Unity Package (Bridge)
|
||||||
|
|
||||||
|
|
@ -84,7 +92,7 @@ Connect your MCP Client (Claude, Cursor, etc.) to the Python server you installe
|
||||||
**Option A: Auto-Configure (Recommended for Claude/Cursor)**
|
**Option A: Auto-Configure (Recommended for Claude/Cursor)**
|
||||||
|
|
||||||
1. In Unity, go to `Window > Unity MCP`.
|
1. In Unity, go to `Window > Unity MCP`.
|
||||||
2. Click `Auto Configure Claude` or `Auto Configure Cursor`.
|
2. Click `Auto Configure` on the IDE you uses.
|
||||||
3. Look for a green status indicator 🟢 and "Connected". *(This attempts to modify the MCP Client's config file automatically)*.
|
3. Look for a green status indicator 🟢 and "Connected". *(This attempts to modify the MCP Client's config file automatically)*.
|
||||||
|
|
||||||
**Option B: Manual Configuration**
|
**Option B: Manual Configuration**
|
||||||
|
|
@ -175,6 +183,28 @@ If Auto-Configure fails or you use a different client:
|
||||||
|
|
||||||
Example Prompt: `Create a 3D player controller.`
|
Example Prompt: `Create a 3D player controller.`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## TODOs (Besides PR) 📝
|
||||||
|
### High Priority
|
||||||
|
- [ ] **AssetsGeneration Improvements** - Better server request handling
|
||||||
|
- [ ] **CodeGeneration Improvements** - Better generated code handling
|
||||||
|
- [ ] **Error Handling Improvements** - Better error messages and recovery mechanisms
|
||||||
|
- [ ] **Remote Connection** - Enable remote connection between host and server
|
||||||
|
- [ ] **Documentation Expansion** - Add tutorials on how to add your own tools, and documentation on existing tools and functions
|
||||||
|
|
||||||
|
### Medium Priority
|
||||||
|
- [ ] **Custom Tool Creation** - GUI for users to create their own MCP tools
|
||||||
|
- [ ] **Logging System** - Comprehensive logging for debugging and monitoring
|
||||||
|
|
||||||
|
### Low Priority
|
||||||
|
- [ ] **Mobile Platform Support** - Extended tools for mobile development workflows
|
||||||
|
- [ ] **Easier Setup**
|
||||||
|
|
||||||
|
### Research & Exploration
|
||||||
|
- [ ] **AI-Powered Asset Generation** - Integration with AI tools for automatic asset creation
|
||||||
|
- [ ] **Real-time Collaboration** - Live editing sessions between multiple developers (Currently ongoing)
|
||||||
|
- [ ] **Analytics Dashboard** - Usage analytics and project insights
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -227,7 +257,7 @@ Help make Unity MCP better!
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
Still stuck? [Open an Issue](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fjustinpbarnett%2Funity-mcp%2Fissues).
|
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)!
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -239,7 +269,8 @@ MIT License. See [LICENSE](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithu
|
||||||
|
|
||||||
## Contact 👋
|
## Contact 👋
|
||||||
|
|
||||||
- **X/Twitter:** [@justinpbarnett](https://www.google.com/url?sa=E&q=https%3A%2F%2Fx.com%2Fjustinpbarnett)
|
- **justinpbarnett:** [X/Twitter](https://www.google.com/url?sa=E&q=https%3A%2F%2Fx.com%2Fjustinpbarnett)
|
||||||
|
- **scriptwonder**: [Email](mailto:swu85@ur.rochester.edu), [LinkedIn](https://www.linkedin.com/in/shutong-wu-214043172/)
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
@ -247,3 +278,8 @@ MIT License. See [LICENSE](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithu
|
||||||
## Acknowledgments 🙏
|
## Acknowledgments 🙏
|
||||||
|
|
||||||
Thanks to the contributors and the Unity team.
|
Thanks to the contributors and the Unity team.
|
||||||
|
|
||||||
|
|
||||||
|
## Star History
|
||||||
|
|
||||||
|
[](https://www.star-history.com/#unity-mcp/unity-mcp&justinpbarnett/unity-mcp&Date)
|
||||||
|
|
|
||||||
|
|
@ -907,9 +907,9 @@ namespace UnityMcpBridge.Editor.Tools
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (properties["_Color"] is JArray colorArr) //Current Prevention for systems that use _Color instead of color
|
} else if (properties["color"] is JArray colorArr) //Use color now with examples set in manage_asset.py
|
||||||
{
|
{
|
||||||
string propName = "_Color"; // Default main color
|
string propName = "_Color";
|
||||||
try {
|
try {
|
||||||
if (colorArr.Count >= 3)
|
if (colorArr.Count >= 3)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue