unitymcp
Unity Editor integration with Model Context Protocol (MCP) enabling AI assistants like Claude to interact with Unity projects. Features a TypeScript MCP server and C# Unity plugin with extensible command handler architecture, TCP/IP communication, and dynamic plugin discovery.
Configure advanced Unity MCP behavior settings. Learn to control host, port, auto-start, and handlers programmatically or via Preferences using McpSettings.
Performance Optimization Tips for Unity MCP Handlers: 7 Proven TechniquesBoost Unity MCP handler performance with 7 proven techniques. Cache metadata, paginate data, and skip system assemblies for responsive, high-frequency editor operations.
How to Troubleshoot Connection Problems with Unity MCP: Complete Diagnostics GuideTroubleshoot Unity MCP connection problems by verifying TCP ports, enabling UDP discovery, checking firewalls, and inspecting Unity console logs for quick resolution.
Security Considerations When Running Untrusted Handlers in Unity MCP: Architecture and MitigationsLearn Unity MCP security risks from untrusted handlers. Discover architecture vulnerabilities and mitigation strategies to prevent code execution and network threats.
How to Manage Connection and Reconnection in Unity MCP: A Complete GuideMaster Unity MCP connection and reconnection with automatic retries, UDP discovery, and lifecycle management. Explore our complete guide for robust networking.
Unity MCP Configuration Options in Unity Preferences: Complete Settings GuideMaster Unity MCP configuration options in Unity Preferences. Learn to set server host port, UDP discovery, auto start, logging, and command handlers for seamless integration.
How to Create Custom Resource Handlers in Unity MCP: A Complete Implementation GuideLearn to create custom resource handlers in Unity MCP by implementing IMcpResourceHandler. Our guide details automatic registration for seamless integration.
How to Create Custom Command Handlers in Unity MCP: A Complete GuideLearn to create custom command handlers in Unity MCP using TypeScript and C#. Implement advanced command logic for your Unity game server and editor with this complete guide.
How Resources Are Handled in Unity MCP: A Complete Technical GuideDiscover how Unity MCP handles resources with its modular pipeline. Learn about handler discovery, registration, and data transformation for efficient Unity connections
How Commands Are Handled in Unity MCP: A Complete Technical GuideExplore the seven-stage pipeline for Unity MCP command handling. Learn about dynamic discovery, prefix routing, and TCP socket communication with the Unity Editor.
UnityConnection Component in TypeScript MCP: Complete Networking Layer GuideMaster the UnityConnection component in TypeScript MCP. This TCP server guide details client registration, request/response handling, and UDP auto-discovery for seamless Unity and TypeScript communication.
What Is the McpServer Component in Unity C#? A Complete Technical GuideDiscover the McpServer component in Unity C#. Learn how this TCP runtime bridge facilitates Editor and MCP client communication for command dispatch and resource fetching.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →