SU

swax/unitymcp-vrc

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

73 stars 10 forks 品質 71 トレンド 8NOASSERTION

swax/unitymcp-vrc は [https://github.com/swax/unitymcp-vrc.] からインポートされた MCP サーバー候補です

概要

swax/unitymcp-vrc は [https://github.com/swax/unitymcp-vrc.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

UnityエディタをClaude(またはMCPクライアント)から動かします。 Unityエディタpluginホスト エディタ内の小さな HTTP サーバと、小さな MCP サーバー (Node/TypeScript) が送信される リクエストツールコールごとに 1 つ、Claude にツールを expose します。エディタで C# を実行します。 エディタ/シーンの状態、およびUnityコンソールログをプルします。

Arodoid/UnityMCP からフォークし、広く Refactored、Claudeを使用してVRChat / UdonSharpとBasisをビルドすることに焦点を当てた ほとんどの人が通常のUnity開発にも機能しています。 Unity 上で実行 2022.3 から Unity 6 (コマンドサンドボックスは、プロジェクトごとにコンパイルバックエンドをピックアップします。) お問い合わせ [take_screenshot と get_object_details] のツールは、 setohima/UnityMCP-VRC およびこれに合わせられる プロジェクトの接続モデル。

Debug Window — プラグインの HTTP サーバ、Editor の内部でリスニング (各インスタンスのポート)。

##ハイライト

  • 多くの編集者、多くのクロードセッション。 各エディタのプラグインは、独自のHTTPサーバーをホストする ダイナミックポートと共有レジストリにそれ自体を公開するので、いくつかのプロジェクトを実行することができます Claude セッションが同じエディタをドライブしている間、名前でそれぞれに1回とアドレスを合わせます。 なし

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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_command runs LLM-authored C# (its own usings, 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 csc on .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_state returns scene/project state on demand, capped so a big project can’t blow up the context window.
  • See what it’s doing. take_screenshot renders the Scene or game camera back to Claude as an image, and get_object_details dumps 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.
GitHub で README 全文を見る

インストール

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