build-cli
GitHub用于构建 unity-mcp-cli TypeScript CLI 工具并全局链接,包含安装依赖、编译源码、创建符号链接及版本验证步骤。
触发场景
安装
npx skills add IvanMurzak/Unity-MCP --skill build-cli -g -y
SKILL.md
Frontmatter
{
"name": "build-cli",
"description": "Build the unity-mcp-cli TypeScript CLI tool and link it globally for terminal use.",
"argument-hint": "[optional: --link to also run npm link]",
"disable-model-invocation": true
}
Build CLI
Build the unity-mcp-cli TypeScript project and optionally link it globally.
Step 1 — Install Dependencies
cd cli && npm install
Only needed if node_modules/ is missing or package.json changed.
Step 2 — Build TypeScript
cd cli && npm run build
This compiles src/**/*.ts → dist/**/*.js via tsc.
Step 3 — Link Globally (if $ARGUMENTS contains --link or first time)
cd cli && npm link
This creates a global symlink so unity-mcp-cli is available from any terminal. Only needed once — after that, npm run build alone is sufficient.
Step 4 — Verify
unity-mcp-cli --version
Confirm the CLI is accessible and shows the expected version.
Report
Print the version and confirm success. If any step failed, show the error output.
版本历史
- 0.86.1 当前 2026-07-25 08:50


