跳到正文
cccskills
免费在 GitHub 公开

unity-initial-setup

Provides an initial setup for AI Skills, `unity-mcp-cli` command line tool installation and everything else that is helpful to set up at the start of the project. Essential packages, and basic configurations.

中文简介正在准备中。当前显示原文说明。

集成工具Unity
查看安装方法

包含的文件(1)

  • SKILL.md3.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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:

Use Homebrew:

brew install node@22

Or download the installer from https://nodejs.org/.

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

Permission errors? Use sudo npm install -g unity-mcp-cli or configure npm to use a directory you own:

npm config set prefix ~/.npm-global

Then add ~/.npm-global/bin to your PATH.

Alternative: Run any command without installing globally using npx:

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

CommandDescription
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> --listList 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

build-cli

免费

Build the unity-mcp-cli TypeScript CLI tool and link it globally for terminal use.

中文简介正在准备中。当前显示原文说明。

IvanMurzak/Unity-MCP44952026年10月19日 更新

Review and resolve PR comments from GitHub. Validates each comment, fixes legitimate issues.

中文简介正在准备中。当前显示原文说明。

IvanMurzak/Unity-MCP44952026年10月19日 更新

Install a Unity package from the registry, a Git URL, or a local path. Modifies `manifest.json` and triggers package resolution; may also trigger a domain reload — the final result is delivered after the reload via the request's `requestId`. Use 'package-search' / 'package-list' for discovery first.

中文简介正在准备中。当前显示原文说明。

IvanMurzak/Unity-MCP44952026年10月19日 更新

List all UPM packages installed in the Unity project — name, version, source, description. Optionally filter by source (registry, embedded, local, git, built-in, local tarball), by name/display/description substring, and by direct-dependency-only.

中文简介正在准备中。当前显示原文说明。

IvanMurzak/Unity-MCP44952026年10月19日 更新

Uninstall a UPM package from the Unity project. Modifies `manifest.json` and may trigger a domain reload — the final result is delivered after the reload via the request's `requestId`. Built-in packages and packages that are dependencies of others cannot be removed. Use 'package-list' to list installed packages first.

中文简介正在准备中。当前显示原文说明。

IvanMurzak/Unity-MCP44952026年10月19日 更新

Search Unity's package registry plus locally installed packages (Git, local, embedded sources) by query string. Returns available versions and installation status. Online mode fetches exact matches from the live registry then supplements with cached substring matches.

中文简介正在准备中。当前显示原文说明。

IvanMurzak/Unity-MCP44952026年10月19日 更新

查看 IvanMurzak 的全部技能

报告此技能的问题