Unity Code
@hackerzhuli
About Unity Code
Enables AI agents to compile code and run tests in Unity Editor.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"unity-code": {
"command": "/path/to/unity-code-mcp",
"env": {
"UNITY_PROJECT_PATH": "/path/to/your/unity/project"
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Unity Code?
Unity Code is an MCP server that provides two tools—Asset Database Refresh and Test Execution—for autonomous AI-driven Unity code development. It is designed for developers using Unity 6.0 or higher who want AI agents to write, compile, and test code without human intervention.
How to use Unity Code?
Install the Visual Studio Code Editor Unity package, obtain the binary (download a release for Windows or build from source with Rust), then configure your AI assistant (e.g., Claude Desktop, Cursor, Trae, or VS Code with MCP extension) by adding a JSON entry with the unity-code command and the UNITY_PROJECT_PATH environment variable set to the absolute path of your Unity project.
Key features of Unity Code?
- Refreshes Unity asset database and returns compile errors
- Runs EditMode and PlayMode tests with detailed stack traces
- Handles Unity domain reload gracefully
- Supports fully autonomous AI agent development workflows
- Requires Unity 6.0 or higher
- Cross-platform code (only Windows tested)
Use cases of Unity Code?
- An AI agent creates a player controller with WASD movement and jumping, then writes and runs tests to ensure all pass.
- A developer iterates quickly by having the AI fix compilation errors and re-run tests automatically.
- Automated test execution and failure analysis in CI pipelines for Unity projects.
- AI-driven bug fixing: the agent detects test failures, analyzes logs, and applies corrections without manual input.
FAQ from Unity Code
What tools does the server provide?
Two tools: refresh_asset_database (triggers Unity compilation and returns non-compile errors) and run_tests (executes tests with comprehensive reporting for both EditMode and PlayMode).
What are the prerequisites?
Unity 6.0 or higher, the Rust toolchain (to build from source), and CMake with a C compiler (for building dependencies). A pre-built binary is available for Windows.
Which platforms are supported?
The code is cross-platform, but only Windows has been built and tested.
Frequently asked questions
What tools does the server provide?
Two tools: `refresh_asset_database` (triggers Unity compilation and returns non-compile errors) and `run_tests` (executes tests with comprehensive reporting for both EditMode and PlayMode).
What are the prerequisites?
Unity 6.0 or higher, the Rust toolchain (to build from source), and CMake with a C compiler (for building dependencies). A pre-built binary is available for Windows.
Which platforms are supported?
The code is cross-platform, but only Windows has been built and tested.
Basic information
More Developer Tools MCP servers

Perfex CRM
themesicTurn Perfex CRM into an AI-ready workspace. This MCP server exposes your full REST API to Claude, ChatGPT and any AI agent, so leads, invoices and tasks are one prompt away.

CircleCI MCP Server
CircleCIManage CI/CD pipelines, debug failed builds, and optimize test suites directly from your AI agents - no terminal required. The CircleCI MCP Server is a remote server hosted by CircleCI that connects AI tools and agents

Routebase
RoutebaseRoutebase keeps your API's design, docs, contract tests, mocks and monitoring in one living OpenAPI spec so they can't drift apart. Agents work on that same source of truth, under your team's permissions.

Apiosk
obcraftAI-native payments for tools and APIs. Discover, pay for, execute, and publish monetized APIs directly from your agent, settled per call in USDC over x402, through the Model Context Protocol. payments · finance · x402 ·

Repo Test Architect
RepoAssayLocal-first, read-only MCP server for evidence-backed repository test architecture audits and test planning.
Comments