MCP.so
登录

Unity Code MCP Server

@hackerzhuli

基本信息

分类

开发工具

传输方式

stdio

作者

hackerzhuli

提交者

hackerzhuli

关于 Unity Code MCP Server

Enables AI agents to compile code and run tests in Unity Editor.

Unity Code MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "unity-code": {
      "command": "/path/to/unity-code-mcp",
      "env": {
        "UNITY_PROJECT_PATH": "/path/to/your/unity/project"
      }
    }
  }
}

Unity Code MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

常见问题

1

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).

2

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.

3

Which platforms are supported?

The code is cross-platform, but only Windows has been built and tested.

评论

开发工具 分类下的更多 MCP 服务器