Logo vun Unity MCP Template

Unity MCP Template

Communautéit
HuntNight

AI + Unity3D integration via Model Context Protocol — real-time Unity Editor control, C# code execution, automated screenshots, scene analysis, system diagnostics, and Hot Reload modules.

EditeurHuntNight
Repositoryunity-mcp-advanced
SproochC#
Forks
6
Stären
17
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Unity MCP Template stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    17 Stären an 6 Forks aus dem verlinkte Repository.

Unity MCP Advanced

unity-mcp-advanced is a Unity Editor bridge for MCP clients such as Cursor. It exposes scene inspection, screenshots, Play Mode control, and controlled C# execution through a small Node MCP server plus a Unity Editor HTTP bridge.

What changed in this refactor

  • One MCP entrypoint at unity-mcp/index.js.
  • One transport path from MCP to Unity.
  • Unified response contract: success, messages, data, logs, meta.
  • Explicit scene scopes for queries: active_scene, all_loaded_scenes, dont_destroy_on_load, all_loaded_objects.
  • New smoke and inspection tools: unity_health, unity_list_scenes, unity_find_objects, unity_inspect_object.
  • Direct edit tools for runtime workflows: unity_set_transform, unity_set_light, unity_set_camera, unity_set_active.
  • unity_camera_screenshot can now render from an existing preview camera.
  • unity_execute now respects safe_mode, reports structured error codes, and resolves more runtime assemblies before execution.

Layout

text
unity-mcp-advanced/
├── unity-mcp/
│   ├── docs/
│   ├── index.js
│   ├── tools/
│   │   ├── unity.js
│   │   └── terminal.js
│   ├── utils/
│   └── tools/unity-bridge/unity-extension/Editor/
└── README.md

Setup

  1. Install Node.js 18+.
  2. Run npm install in unity-mcp/.
  3. Open the Unity project and install the Unity package from unity-mcp/tools/unity-bridge/unity-extension/package.json.
  4. Open Window -> Unity Bridge in Unity and start the server.
  5. Point Cursor MCP config to unity-mcp/index.js.

Example MCP config:

json
{
  "mcpServers": {
    "unity-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/unity-mcp/index.js"
      ]
    }
  }
}

Main tools

  • unity_health: connectivity and bridge diagnostics.
  • unity_list_scenes: loaded scenes plus DontDestroyOnLoad.
  • unity_find_objects: lookup by name, path, component, tag, instance id.
  • unity_inspect_object: details for one object, with optional curated component values.
  • unity_set_transform, unity_set_light, unity_set_camera, unity_set_active: direct scene edits without snippets.
  • unity_scene_hierarchy: scoped hierarchy traversal.
  • unity_scene_grep: DSL query over the same scoped source.
  • unity_scene_radius: spatial query within the selected scope.
  • unity_execute: compile or execute a C# snippet inside the editor.
  • unity_screenshot and unity_camera_screenshot: visual verification, including existing camera capture.

Notes

  • Scene tools no longer silently search only the active scene unless scope is explicitly set that way.
  • DontDestroyOnLoad objects are discoverable without using unity_execute.
  • Errors now come back as regular diagnostic responses with structured errorCode values.

Installatioun

TypingMind
{
  "mcpServers": {
    "unity-mcp-advanced": {
      "command": "node",
      "args": [
        "/path/to/your/project/advanced-mcp/index.js"
      ]
    }
  }
}

Unity MCP Template MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Unity MCP Template verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Unity MCP Template als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Unity MCP Template an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "unity-mcp-advanced": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Unity MCP Template. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Unity MCP Template.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Unity MCP Template?
Unity MCP Template
Jo. Ech hunn et gelies.
Dat hunn ech mat Unity MCP Template fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Unity MCP Template benotzt?

Unity MCP Template ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Unity MCP Template MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Unity MCP Template mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Unity MCP Template MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Unity MCP Template verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Unity MCP Template MCP mat TypingMind?

Unity MCP Template leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Unity MCP Template MCP an TypingMind zur Verfügung?

Unity MCP Template stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Unity MCP Template MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Unity MCP Template eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇