QU

quazaai/unitymcpintegration

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

156 stars 34 forks Качество 67 Тренд 16MIT

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)

  1. Открыть менеджер пакетов Unity (Window > Package Manager)
  2. Нажмите кнопку + и выберите Add package from git URL...
  3. Введите URL репозитория: https://github.com/quazaai/UnityMCPIntegration.git
  4. Кликни 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)

  1. Open the Unity Package Manager (Window > Package Manager)
  2. Click the + button and select Add package from git URL...
  3. Enter the repository URL: https://github.com/quazaai/UnityMCPIntegration.git
  4. Click Add

Option B: Import Custom Package

  1. Clone this repository or download it as a unityPackage
  2. In Unity, go to Assets > Import Package > Custom Package
  3. Select the UnityMCPIntegration.unitypackage file

2. Set up the MCP Server

You have two options to run the MCP server:

Option A: Run the server directly

Открыть полный README на GitHub

Установка

npx -y @smithery/cli install @quazaai/unitymcpintegration --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "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" } } } }