
swax/unitymcp-vrc
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
swax/unitymcp-vrc - кандидат на сервер MCP, импортированный из https://github.com/swax/unitymcp-vrc.
Обзор
swax/unitymcp-vrc - кандидат на сервер MCP, импортированный из https://github.com/swax/unitymcp-vrc.
Обзор (машинный перевод)
Управляйте редактором Unity от Claude (или любого клиента MCP). Редактор Unity plugin Небольшой HTTP-сервер внутри редактора и небольшой MCP-сервер (Node/TypeScript) один запрос на вызов инструмента и предоставляет инструменты Клоду — запустите C# в редакторе Состояние редактора/сцены и вытаскивание журналов консоли Unity.
Раздвоенный из Arodoid / UnityMCP Рефакторированный, с акцентом на использование Claude для создания VRChat / UdonSharp и Basis Миры — хотя большинство из них работает и для обычного развития Единства. Он работает на ** Единство 2022.3 через Unity 6** (командная песочница выбирает бэкэнд компиляции для проекта — см. ниже). [[Т]] и [[Т1]] были перенесены из Setohima/UnityMCP-VRC и адаптированный для этого Модель подключения проекта.
Debug Window — HTTP-сервер плагина, слушающий внутри редактора (каждый экземпляр на своем порту).
Основные моменты
Многие редакторы, много сессий Клода. Плагин каждого редактора размещает свой собственный HTTP-сервер на динамический порт и публикуется в общем реестре, поэтому вы можете запускать несколько проектов в Интернете. Один раз и адрес каждого по имени, в то время как любое количество сессий Клода ведет один и тот же редактор. Нет
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
UnityMCP-VRC
Drive the Unity Editor from Claude (or any MCP client). A Unity Editor plugin hosts a small HTTP server inside the Editor, and a small MCP server (Node/TypeScript) sends it one request per tool call and exposes the tools to Claude — run C# in the Editor, read editor/scene state, and pull Unity console logs.
Forked from Arodoid/UnityMCP and extensively
refactored, with a focus on using Claude to build VRChat / UdonSharp and Basis
worlds — though most of it works for ordinary Unity development too. It runs on Unity
2022.3 through Unity 6 (the command sandbox picks a compile backend per project — see
below). The take_screenshot and get_object_details tools were ported from
setohima/UnityMCP-VRC and adapted to this
project’s connection model.
The Debug Window — the plugin’s HTTP server, listening inside the Editor (each instance on its own port).
Highlights
- Many Editors, many Claude sessions. Each Editor’s plugin hosts its own HTTP server on a dynamic port and publishes itself to a shared registry, so you can run several projects at once and address each by name — while any number of Claude sessions drive the same Editor. No fixed-port race, no “connected-but-dead” zombie servers.
- Local and authenticated. The Editor endpoint binds only to
127.0.0.1, and every command must carry a cryptographically random per-Editor-session token read from the local instance registry. - Run real C#.
execute_editor_commandruns LLM-authored C# (its ownusings, classes, functions) with assembly references auto-discovered from everything loaded — UnityEngine, packages, VRChat/UdonSharp, Basis, project scripts — no hand-maintained list. - Unity 2022.3 → Unity 6. The command sandbox compiles with Mono’s in-process compiler
on .NET Framework projects (the Unity 2022 / VRChat norm) and automatically falls back to
the Editor’s bundled Roslyn
cscon .NET Standard projects (the Unity 6 default), where the Mono path is unavailable. The fallback is detected once and cached; nothing to configure. Detail: docs/005. - Bounded state.
get_editor_statereturns scene/project state on demand, capped so a big project can’t blow up the context window. - See what it’s doing.
take_screenshotrenders the Scene or game camera back to Claude as an image, andget_object_detailsdumps a GameObject’s components/bounds — so visual iteration and inspection don’t need hand-written C# each time. - Survives recompiles. A domain reload just drops the HTTP listener for a moment — there’s no persistent socket to tear down, so a request sent during one simply retries until the Editor is back.
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"unity": {
"command": "node",
"args": ["C:\\git\\UnityMCP\\unity-mcp-server\\build\\index.js"]
}
}
}