MCP Catalogs
首页

unity-mcp-pro-plugin

by youichi-uda·58·综合分 48

Unity MCP Pro 插件通过 WebSocket MCP 连接提供 280+ 个 Unity 开发 AI 工具。

developer-toolsai-llmother
5
Forks
2
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

这是一个全面的 MCP 服务器实现,通过基于 WebSocket 的通信协议将 AI 助手连接到 Unity 游戏编辑器。它支持与 Unity 原生系统的完整撤销/重做集成,具有带心跳和自动重连功能的生产级 WebSocket,并包含智能类型解析,可在字符串输入和 Unity 数据类型之间进行无缝转换。该架构将 Unity 插件与 Node.js MCP 服务器清晰分离,确保域重载安全性和多编辑器支持。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 辅助 Unity 场景中的 GameObject 操控,具有完整的历史记录
:通过直接 MCP 工具调用生成和优化脚本
:通过 AI 助手编辑材质和着色器,实时预览
:支持哪些 Unity 版本?
:有多少工具可用?

什么时候选它

如果您正在 Unity 中开发游戏,并希望将 AI 助手直接集成到工作流程中以实现自动化测试、代码生成和场景操作,请选择 Unity MCP Pro。

什么时候不要选它

如果您需要与非 Unity 引擎的 AI 集成,或者您希望使用一个包含所有功能而不需要单独 MCP 服务器组件的解决方案,请不要选择它。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • create_gameobject

    Create a new GameObject in the Unity scene

  • modify_component

    Modify a component on a GameObject

  • create_script

    Create a new C# script in the project

  • list_scene_objects

    List all objects in the current Unity scene

  • create_material

    Create a new material asset

  • create_prefab

    Create a prefab from a GameObject

  • build_project

    Build the Unity project for target platform

  • run_test

    Execute Unity tests in the project

  • set_lighting

    Modify lighting settings in the scene

  • create_animation

    Create or modify animation clips

  • modify_physics

    Adjust physics settings for objects or scene

  • create_ui_element

    Create UI elements in the scene

说明:Tool names inferred from category descriptions rather than explicit tool documentation. The README mentions 280+ tools across 50 categories but doesn't list specific tool names.

可对比工具

unity-ai-toolsai-for-unitygpt-unity-connectorml-agentsunity-barracuda

安装

安装

Unity 包管理器

  1. 打开 Unity → 窗口 → 包管理器
  2. 点击 + → 从 git URL 添加包...
  3. 输入:https://github.com/youichi-uda/unity-mcp-pro-plugin.git

替代方法

克隆到您的项目或下载并复制到 Packages/com.unity-mcp-pro/

设置

  1. 安装此插件
  2. 从 [unity-mcp.abyo.net](https://unity-mcp.abyo.net/) 获取 MCP 服务器
  3. 构建服务器:cd server && npm install && npm run build
  4. 配置您的 AI 客户端
{
  "mcpServers": {
    "unity-mcp-pro": {
      "command": "node",
      "args": ["/path/to/server/build/index.js"]
    }
  }
}
  1. 打开 Unity - 插件自动连接,检查 窗口 → Unity MCP Pro

FAQ

支持哪些 Unity 版本?
Unity 2021.3 LTS 或更高版本,包括 Unity 2022、2023 和 Unity 6(内置、URP、HDRP)。
有多少工具可用?
50 个类别中的 280+ 个工具,涵盖场景管理、GameObject、脚本、材质、物理、光照、动画、UI 等方面。

unity-mcp-pro-plugin 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。