
quazaai/unitymcpintegration
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
quazaai/unitymcpintegration — это кандидат MCP-сервера, импортированный из https://github.com/quazaai/unitymcpintegration.
Обзор
quazaai/unitymcpintegration — это кандидат MCP-сервера, импортированный из https://github.com/quazaai/unitymcpintegration.
Обзор (машинный перевод)
Этот пакет обеспечивает бесшовную интеграцию между протоколом Model Context Protocol (MCP) и редактором Unity, позволяя ассистентам AI понимать и взаимодействовать с вашими проектами Unity в реальном времени. Благодаря этой интеграции AI-ассистенты могут получать доступ к информации о вашей иерархии сцен, настройках проекта и выполнять код непосредственно в контексте Unity Editor.
📚 Особенности
- Прямое просматривание и обработка проектных файлов
- Доступ к информации в реальном времени о вашем проекте Unity
- Понять иерархию сцен и игровые объекты
- Выполнять код на C# напрямую в редакторе Unity
- Мониторинг журналов и ошибок
- Управление режимом игры редактора
- Ожидание выполнения кода
🚀 Начало
Требования
- Unity 2021.3 или позже
- Node.js 18+ (для запуска MCP-сервера)
Установка
1. Установка пакета Unity
У вас есть несколько вариантов установки пакета Unity:
Вариант A: Менеджер пакетов (URL Git)
- Открыть менеджер пакетов Unity (
Window > Package Manager) - Нажмите кнопку
+и выберитеAdd package from git URL... - Введите URL репозитория:
https://github.com/quazaai/UnityMCPIntegration.git - Кликни
Add
Вариант B: Импорт пользовательского пакета 1.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
🚀 Advacned Unity MCP Integration
This package provides a seamless integration between Model Context Protocol (MCP) and Unity Editor, allowing AI assistants to understand and interact with your Unity projects in real-time. With this integration, AI assistants can access information about your scene hierarchy, project settings, and execute code directly in the Unity Editor context.
📚 Features
- Browse and manipulate project files directly
- Access real-time information about your Unity project
- Understand your scene hierarchy and game objects
- Execute C# code directly in the Unity Editor
- Monitor logs and errors
- Control the Editor’s play mode
- Wait For Code Execution
🚀 Getting Started
Prerequisites
- Unity 2021.3 or later
- Node.js 18+ (for running the MCP server)
Installation
1. Install Unity Package
You have several options to install the Unity package:
Option A: Package Manager (Git URL)
- Open the Unity Package Manager (
Window > Package Manager) - Click the
+button and selectAdd package from git URL... - Enter the repository URL:
https://github.com/quazaai/UnityMCPIntegration.git - Click
Add
Option B: Import Custom Package
- Clone this repository or download it as a unityPackage
- In Unity, go to
Assets > Import Package > Custom Package - Select the
UnityMCPIntegration.unitypackagefile
2. Set up the MCP Server
You have two options to run the MCP server:
Option A: Run the server directly
Установка
npx -y @smithery/cli install @quazaai/unitymcpintegration --client claudeКонфигурация
{
"mcpServers": {
"unity-mcp-server": {
"command": "node",
"args": [
"path-to-project>\\Library\\PackageCache\\com.quaza.unitymcp@d2b8f1260bca\\mcpServer\\mcpServer\\build\\index.js"
],
"env": {
"MCP_WEBSOCKET_PORT": "5010"
}
}
}
}