unity-skill-create

Generate a Unity MCP tool .cs file from supplied C# code.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill unity-skill-create-ivanmurzak
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-skill-create
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/unity-skill-create
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill unity-skill-create-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a new MCP tool skill by generating a .cs file and wiring it for Unity compilation, ensuring it follows the required decorators and naming conventions.

Core Features & Use Cases

  • Generates a .cs skeleton for MCP tools with [McpPluginToolType] and [McpPluginTool] attributes.
  • Enforces class name matching the file name and MainThread usage for Unity API calls.
  • Provides a ready-to-compile template and sample usage.

Quick Start

Provide the target path and the C# code; Unity-MCP will generate the .cs file in your Unity project and prepare it for compilation.

Frequently Asked Questions about unity-skill-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate Unity MCP tools from C# code?▼

To auto-generate Unity MCP tools from C# code, provide the target path and code snippet to generate a .cs file configured with [McpPluginToolType] and [McpPluginTool] attributes. This creates a ready-to-compile skeleton in an assembly-compatible folder.

Why does my Unity MCP plugin require MainThread for API calls?▼

Unity MCP plugin tools require MainThread for API calls to ensure deterministic execution within the Unity engine. Auto-generating the .cs file skeleton routes all Unity API calls through MainThread, preventing threading errors during plugin development.

What is the best way to create a Unity-ready MCP tool skeleton?▼

The best way to create a Unity-ready MCP tool skeleton is to supply C# code and a target path. The generated file automatically matches the class name to the file name and applies the required decorators for immediate Unity compilation.

Do I need to manually wire [McpPluginTool] attributes when generating MCP skills?▼

You do not need to manually wire [McpPluginTool] attributes. Supplying the C# code automatically generates the .cs file with [McpPluginToolType] and [McpPluginTool] decorators applied, ensuring the Unity-ready tool follows required naming conventions.

Can I use this C# generation tool for existing Unity assembly folders?▼

Yes, you can generate MCP tools for existing Unity assembly folders by specifying the target path. The generated .cs file is placed directly in the assembly-compatible folder, preparing the Unity-ready tool for immediate compilation.