install
source · Clone the upstream repo
git clone https://github.com/IvanMurzak/Unity-MCP
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/IvanMurzak/Unity-MCP "$T" && mkdir -p ~/.claude/skills && cp -r "$T/Unity-MCP-Plugin/.claude/skills/unity-skill-create" ~/.claude/skills/ivanmurzak-unity-mcp-unity-skill-create && rm -rf "$T"
manifest:
Unity-MCP-Plugin/.claude/skills/unity-skill-create/SKILL.mdsource content
Skill (Tool) / Create
How to Call
unity-mcp-cli run-system-tool unity-skill-create --input '{ "path": "string_value", "code": "string_value" }'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-system-tool unity-skill-create --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-system-tool unity-skill-create --input-file - <<'EOF' {"param": "value"} EOF
Troubleshooting
If
unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Input
| Name | Type | Required | Description |
|---|---|---|---|
| | Yes | Path for the C# (.cs) file to be created. Sample: "Assets/Skills/MySkill.cs". |
| CRITICAL — Assembly Definition placement: If the project uses Assembly Definition files (.asmdef), you MUST place the script inside a folder that belongs to an assembly definition which already references all required dependencies (e.g. com.IvanMurzak.McpPlugin, UnityEditor, UnityEngine). Placing the file in the wrong assembly will cause compile errors due to missing type references. Before choosing a path, inspect existing .asmdef files with the assets-find tool to identify the correct assembly folder. | |||
| | Yes | C# code for the skill tool. |
Input JSON Schema
{ "type": "object", "properties": { "path": { "type": "string" }, "code": { "type": "string" } }, "required": [ "path", "code" ] }
Output
This tool does not return structured output.