Integrations
Supports containerized deployment of the MCP server, allowing the Unity tools to be run in an isolated environment with proper project mounting.
Offers integration through the repository hosting, with the server code available at a GitHub repository (unity-smithery-mcp).
Built on Node.js as a runtime environment, requiring Node.js 16+ to operate.
Unity MCP サーバー
Unity ゲーム開発用のモデルコンテキストプロトコル (MCP) サーバー。AI アシスタントが一連の専用ツールを通じて Unity プロジェクトと対話できるようになります。
概要
Unity MCPサーバーは、AIアシスタント(Cursor AIやClaudeなど)とUnityプロジェクト間の橋渡し機能を提供します。以下のツールを提供します。
- Unity プロジェクトでのファイルの読み取りと検索
- Unityシーンとプレハブの解析
- C#コードの解析とエラーの検出
- バッチモードでの自動テストの実行
- テンプレートからスクリプトを生成する
- シェーダーの検証
- さらに…
サーバーは Unity でバッチ モードで実行するように設計されており、エディター GUI を必要とせずに Unity エンジンを必要とする操作を可能にします。
インストール
前提条件
- Node.js 16以上
- Unity 2022.3 LTS 以降(推奨)
設定
- このリポジトリをクローンします:Copy
- 依存関係をインストールします:Copy
- プロジェクトをビルドします。Copy
構成
サーバーは設定にconfig
パッケージを使用します。設定を調整するには、 config/default.json
を編集してください。
使用法
サーバーの起動
Smithery モードで実行するには:
AIアシスタントと併用する
このサーバーは、MCP仕様で定義されたツールを介してAIアシスタントと連携するために主に設計されています。CursorまたはSmithery.aiとの統合については、それぞれのドキュメントに従ってこのMCPサーバーに接続してください。
利用可能なツール
ツール名 | 説明 |
---|---|
open_file | Unityプロジェクト内のファイルの内容を読み取ります |
search_files | プロジェクトファイル内のテキストパターンを検索します |
list_assets | 特定のタイプまたはフォルダ内のプロジェクトアセットを一覧表示します |
get_project_info | Unityプロジェクトに関する高レベルの情報を取得します |
parse_scene | Unityシーンファイルを解析してゲームオブジェクトの階層を抽出します |
parse_prefab | Unityプレハブファイルを解析してコンポーネントを抽出します |
find_in_scenes | 特定のゲームオブジェクトまたはコンポーネントを含むシーンを検索します |
analyze_cs_code | C# コードをコンパイルしてコンパイラエラーを検出します |
find_references | C#クラスまたはメソッドへの参照を検索します |
generate_script | テンプレートから新しい C# スクリプト ファイルを作成します |
validate_shader | シェーダをコンパイルし、エラーを報告します |
inspect_yaml | YAMLアセットファイルを検査する |
run_tests | Unityの自動テストをバッチモードで実行します |
simulate_playmode | 実験的 - 短時間、再生モードでシーンを実行します |
Docker サポート
コンテナ化されたデプロイメント用のDockerfileが含まれています。Dockerイメージをビルドします。
コンテナを実行します。
Smithery.ai 統合
このサーバーは、提供されているsmithery.yaml
構成を使用して Smithery.ai にデプロイできます。
ライセンス
マサチューセッツ工科大学
貢献
貢献を歓迎します!問題を報告したり、プルリクエストを送信してください。
This server cannot be installed
AI アシスタントと Unity プロジェクトを橋渡しするプロトコル サーバー。専用のツールを使用してコードの分析、シーンの解析、スクリプトの生成、その他の Unity 操作を実行できます。
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that connects Claude and other AI assistants to your Notion workspace, allowing AIs to interact with databases, pages, and blocks.Last updated -12647JavaScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.Last updated -1Python
- -securityAlicense-qualityA Unity Master Control Protocol implementation that allows AI agents to control and interact with Unity, enabling them to execute code, query editor state, modify GameObjects, and capture screenshots through a WebSocket-based communication system.Last updated -7MIT License
- -securityAlicense-qualityA server that enables AI assistants to understand and interact with Unity projects in real-time, providing access to scene hierarchy, project settings, and the ability to execute code directly in the Unity Editor.Last updated -40MIT License