5 months ago
Enables AI agents to compile code and run tests in Unity Editor.
Overview
Description
Unity Code MCP is a coding focused Model Context Protocol (MCP) server that enables AI agents to write Unity code autonomously.
🎯 Why Unity Code MCP?
Unity Code MCP is a high-performance, coding-focused MCP server built in Rust. It handles Unity's compilation cycles gracefully while providing only the essential tools needed for autonomous code development: compilation feedback and test execution.
This MCP server enables AI agents to develop Unity code autonomously with exceptional speed and reliability - write code, compile, fix compile errors, test, fix bugs, repeat, just like how a human would.
✨ Key Features
- 🤖 Coding-Optimized: Streamlined tools designed for efficient AI agent coding workflows
- ⚡ High Performance: Built in Rust for exceptional speed, minimal memory usage, and lightning-fast response times
- 🎯 Efficient Communication: Minimal token usage with essential operations, only returns relevant information
- 🧪 Test-Driven: Comprehensive test execution and reporting capabilities
- 📦 Self-Contained: Single binary with no runtime dependencies (no Node.js, Python, or .NET required)
Server Config
{
"mcpServers": {
"unity-code": {
"command": "/path/to/unity-code-mcp",
"env": {
"UNITY_PROJECT_PATH": "/path/to/your/unity/project"
}
}
}
}