跳到主要内容
知仓学习社ZHICANG

unity-initial-setup

|-

不碰外部(只输出文字)无严重或高危命中IvanMurzak/Unity-MCP

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

AI Game Developer — Initial Setup

This guide walks through installing the unity-mcp-cli command-line tool and using it to set

up a Unity project with AI Skills and MCP integration.


Prerequisites

Install Node.js

unity-mcp-cli requires Node.js ^20.19.0 || >=22.12.0 (Node 21.x is not supported). If you don't have Node.js installed:

Download the installer from https://nodejs.org/ and run it, or use a package manager:

winget install OpenJS.NodeJS.LTS

After installation, verify both node and npm are available:

node --version
npm --version

Install unity-mcp-cli Globally

Install the CLI globally so the unity-mcp-cli command is available system-wide:

npm install -g unity-mcp-cli

Verify installation:

unity-mcp-cli --version

> Alternative: Run any command without installing globally using npx:

> ```bash

> npx unity-mcp-cli --help

> ```


Quick Start — Full Project Setup

1. Install the Unity-MCP Plugin

Add the plugin to an existing Unity project:

unity-mcp-cli install-plugin /path/to/unity/project

2. Configure MCP Tools

Enable all tools, prompts, and resources:

unity-mcp-cli configure /path/to/unity/project \
  --enable-all-tools \
  --enable-all-prompts \
  --enable-all-resources

3. Set Up MCP for Your AI Agent

Configure MCP integration for your AI agent (e.g., Claude Code, Cursor, Copilot):

unity-mcp-cli setup-mcp claude-code /path/to/unity/project

List all supported agents:

unity-mcp-cli setup-mcp --list

4. Generate AI Skills

Generate skill files for your AI agent (requires Unity Editor to be running with the plugin):

unity-mcp-cli setup-skills claude-code /path/to/unity/project

5. Open Unity with MCP Connection

unity-mcp-cli open /path/to/unity/project

Common Commands Reference

| Command | Description |

|---|---|

| unity-mcp-cli install-plugin <path> | Install Unity-MCP plugin into a project |

| unity-mcp-cli remove-plugin <path> | Remove Unity-MCP plugin from a project |

| unity-mcp-cli configure <path> --list | List current MCP configuration |

| unity-mcp-cli setup-mcp <agent> <path> | Write MCP config for an AI agent |

| unity-mcp-cli setup-skills <agent> <path> | Generate skill files for an AI agent |

| unity-mcp-cli create-project <path> | Create a new Unity project |

| unity-mcp-cli install-unity <version> | Install a Unity Editor version |

| unity-mcp-cli open <path> | Open a Unity project in the Editor |

| unity-mcp-cli run-tool <tool> <path> | Execute an MCP tool via HTTP API |

Add --verbose to any command for detailed diagnostic output.


Troubleshooting

  • npm not found: Node.js is not installed or not in your PATH. Reinstall Node.js and restart your terminal.
  • Plugin not appearing in Unity: After install-plugin, open the project in Unity Editor. The package manager resolves dependencies on project open.
  • Skills generation fails: Ensure Unity Editor is running with the MCP plugin installed and connected before running setup-skills.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 4,278
本站分层T1
该仓技能数80
原文件路径Unity-MCP-Plugin/.claude/skills/unity-initial-setup/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 80 个技能