UnityVibeBridge
A security minded, Unity engine MCP server, enabling mechanistic vibe coding edits for Unity to enable VR Avatar and World Creation and Editing
Install / Use
claude mcp add B-A-M-N -- npx -y github:B-A-M-N/UnityVibeBridgeIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of UnityVibeBridge
UnityVibeBridge scores 71/100 on our quality scale, 1045th of 1,105 Security skills we index.
Its MCP Server is 14 KB long, well organised into 23 sections and no code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 7 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under AGPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 86/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
UnityVibeBridge compared with similar skills
All 4 of these similar skills score higher than UnityVibeBridge; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| UnityVibeBridge (this skill)by B-A-M-N | 71 | 3 | 7mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.4k | 5d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 90.4k | today | MCP Server |
Frequently asked questions
- How do I install UnityVibeBridge?
- Run
claude mcp add B-A-M-N -- npx -y github:B-A-M-N/UnityVibeBridge. The install tabs above show the steps for each supported agent. - Which AI agents does UnityVibeBridge work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is UnityVibeBridge safe to use?
- It is AGPL-3.0-licensed and scores 86/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is UnityVibeBridge still maintained?
- The repository was last updated about 7 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHub🌌 UnityVibeBridge
A Unity Editor extension that enables secure, deterministic AI-assisted scene creation and editing by constraining intent execution through a guarded control kernel.
[!WARNING] EXPERIMENTAL & IN-DEVELOPMENT
This project is currently an active research prototype. APIs, security protocols, and core logic are subject to rapid, breaking changes. This software performs mutations on the Asset Database and Scene; MANDATORY BACKUPS are required before use.
The "One-Click" Technical Director for Unity Editor Mastery
A production-grade AI control interface for deterministic, undo-safe Unity Editor operations.
UnityVibeBridge is a professional-grade intelligent interface that transforms the Unity Editor into a Governed Creation Kernel. It allows AI agents to interact safely, deterministically, and artistically with Unity’s core engine—turning natural language intents into professional production operations.
🏛️ Project Architecture (Textual Description)
The UnityVibeBridge operates as a Split-Plane Kernel:
- Intent Plane (MCP Server): A Python-based server that receives high-level commands from AI agents. It audits these commands via the
SecurityGateand queues them invibe_queue/inbox. - Execution Plane (Unity Editor): A C# kernel inside Unity that polls the queue. It uses a Hardened Async Kernel (
UniTask) for non-blocking operations and Zero-Reflection IPC (MemoryPack) for secure, high-speed data transfer. - Audit Plane (Write-Ahead Log): Every transaction is logged to
logs/vibe_audit.jsonland bracketed by a Git-safety snapshot for forensic verification.
[!IMPORTANT] Dynamic Path Resolution: To maintain portability across different developer environments, all scripts MUST use dynamic path resolution (e.g.,
os.path.abspath(os.path.dirname(__file__))). Hardcoded home directory paths are strictly forbidden.
⚠️ Read This First (Why This Exists)
UnityVibeBridge is not a toy, a prompt wrapper, or a "magic AI button."
It is a reference implementation of AI-assisted systems design in a high-fidelity, stateful environment. It allows Large Language Models (LLMs) to safely operate inside Unity without risking project corruption, infinite import loops, or runaway execution.
This project answers a critical engineering question:
How do you let an AI act inside a complex, stateful application—without trusting it?
The answer is: You don’t. You constrain it.
| Capability | Feature |
| :--- | :--- |
| 🛡️ Iron Box | Zero-trust security via the Kernel Guard, Token-Auth, and AST-validated IPC. |
| ⚛️ Kernel Integrity | Real-time invariant enforcement (No mutations during domain reloads, atomic transactions). |
| 📦 LFS Anchored | High-scale binary assets (.fbx, .png) tracked via Git LFS for stable state hashing. |
| 🧪 Triple-Order Invariance | Layered reality (1st), causal (2nd), and epistemic (3rd) constraints preventing drift. |
| 🛰️ Single-Agent Determinism | Unified control model with strict state enforcement and air-gapped context sandboxing. |
| 🏃 Stable Lifecycle | Time-budgeted main-loop dispatching (5ms slices) ensuring a smooth 60+ FPS. |
| 🧠 Epistemic Control | Truth-reconciliation tools (telemetry, vibe_status) that prevent AI hallucinations. |
🧠 What This Project Demonstrates (Technical Audit)
If you are evaluating this project as an engineer or hiring manager, this repository is a working demonstration of AI Systems Engineering:
- Control-Plane vs. Execution-Plane Separation: LLMs generate intent (Mechanistic Intents), never raw code execution.
- Adversarial Security: Hardened via local binding, session-token authentication, and Recursive AST Auditing of Python payloads.
- Triple-Order Invariance: Implements a "Triple-Lock" system:
- Mechanical: Hard engine guards (No mutations during compile).
- Contextual: Force-feeding WAL hashes and monotonic ticks into every response.
- Semantic: Mandatory "Proof of Work" (Rationale + State Hash) required for every commit.
- Single-Agent Control: Unified orchestration where the agent manages the engine kernel via filtered, engine-agnostic IPC, ensuring a single point of truth and atomic state transitions.
- Transactional State Mutation: Every operation is wrapped in undo-safe, atomic blocks. One AI request = One Undo step.
- Performance Budgeting: Implements 5ms Main-Thread Time Budgeting and adheres to the Unity Freeze-Proof Guide to ensure the Unity Editor maintains 60+ FPS even during heavy AI automation.
- Forensic Audit Trail (Git Logging): Every mutation is logged to a cryptographically chained Write-Ahead Log (WAL). For local setup, we recommend configuring Git to track the
logs/directory as a secondary immutable ledger (see Setup). - Truth Reconciliation Loop: Tools like
get_telemetry_errorsforce the agent to verify reality against intent in a closed feedback loop.
⚡ What you can do in 5 minutes
- Install: Drag the
unity-package/folder into your Unity project'sAssets/. - Initialize: Wait for compilation. The Kernel starts automatically on port
8085. - Connect: Point your AI agent (Claude Desktop, Goose, etc.) to the bridge using
scripts/python mcp-server/server.py. - Create: Ask the AI: "Spawn a red cube at the origin and name it 'TestCube'."
- Audit: Ask the AI: "Run a mesh audit on my selected object and tell me the polycount."
Requirements:
- Unity: 2019.4 LTS or newer.
- OS: Windows, Linux, or macOS.
- Unity Dependencies: UniTask, MemoryPack, and Editor Coroutines are required for the hardened async kernel.
🚀 Quick Start (Detailed Installation)
- Install Unity Packages:
Run the automation script from your Unity project root:
This adds UniTask and MemoryPack to your project via Git URL.python /path/to/UnityVibeBridge/scripts/setup_unity_deps.py - Install VibeBridge: Copy the
unity-package/directory into your project'sAssets/folder. - Initialize: Wait for Unity to compile. The Kernel starts automatically on port
8085. - Handshake: Point your MCP-compatible AI agent (e.g., Goose, Claude Desktop) to the bridge.
- Monitor: Open http://localhost:22005 to view the live System Pulse and Chained Audit Trail.
🔰 FOR BEGINNERS
New to AI development in Unity? Start here to understand the philosophy, safety mechanisms, and how to avoid common pitfalls like "AI Psychosis".
👉 Read the Comprehensive Guide for Beginners
🛠️ Common AI Intents (Examples)
The AI interacts with Unity via Mechanistic Tools. Below are typical requests the agent can execute autonomously once connected:
| Intent | Tool Call | Result |
| :--- | :--- | :--- |
| Placement | world/spawn(asset="path/to.prefab", pos="0,1,0") | Spawns object at coordinates with Undo registration. |
| Rig Check | audit/avatar(path="sem:MainBody") | Returns mesh, vertex, and material report for the target. |
| Automation | texture/crush(path="root", maxSize=512) | Batch-downscales all textures in a single 5ms frame slice. |
| Visual Fix | material/set-color(path="sem:Face", index=0, color="1,0,0,1") | Safely changes material properties via SerializedObjects. |
| Logic Batch | system/execute-recipe(tools_json="...") | Executes multiple tools in one atomic, reversible transaction. |
🛡️ Verifiable Security & Safety
Unlike standard script-bridges, UnityVibeBridge treats the AI as an untrusted operator.
- Pentest Suite: We include a
security_tests/pentest_suite.pythat tests for 48 known attack vectors. - Forensic Ledger: Every mutation is logged to an immutable, cryptographically chained audit log (
vibe_audit.jsonl). - Human Kill-Switch: The Kernel includes a mechanical
system/vetotool that instantly locks the creation perimeter.
🛠️ Complete Tool Reference (Exhaustive)
1. 🧠 Epistemic & Cognitive Governance (Anti-Hallucination)
inspect_object: Forces the agent to verify its assumptions about components and state.get_telemetry_errors: Streams the last 50 console logs to the agent for "Truth Loop" verification.list_available_tools: Dynamic discovery of installed Payloads and capabilities.- Stale Session Guard: Automatically invalidates beliefs if Unity restarts (via
sessionNoncetracking).
2. 🛡️ Kernel & Integrity (The Guardrails)
transaction_begin/commit: Atomic Undo-Group management.system/veto: Physical stop-button for all creation primitives.- Kernel Guard: Blocks mutations during Compilation or Play Mode.
- Time-Budgeting: Kernel-level enforcement of 5ms execution windows per frame.
3. 🏗️ Scene Manipulation & Strategic Intent
get_hierarchy: Recursive dump of InstanceIDs and names for scene mapping.system/search: High-performance Regex and Layer-based discovery for massive scenes.rename_object/reparent_object: Precise transform and identity adjustments.clone_object/delete_object: Managed lifecycle for GameObjects with Undo support.select_object: Focus-aware "Stealth Framing" that respects the user's active viewport.
4. 🎨 Technical Art, surafcing & Optimization
object/set-value: Safe, reflection-based mutation of public fields and properties.vram_footprint: Numerical analysis of GPU memory usage by textures.texture_crush: Batch-downscales textures with hardware safety caps (8k max).swap_to_quest_shaders: Automated material transition to mobile-safe shaders.opt/fork: Creates non-destructive optimization variants with isolated material clones.
5. 🔗 Pipeline & Infrastructure
world/spawn: Safe instantiation of prefabs from the project database.asset/rename/move: Safe filesystem operations without breaking GUID links.export/validate: Checks for scale sanity, non-zero rotations, and missing scripts.view/screenshot: High-speed visual feedback via Port 8085.
🛡️ Iron Box Security
The bridge is hardened via four distinct layers:
- AST Auditing: All incoming tool calls are audited by
scripts/security_gate.pyfor forbidden patterns. - Token Authentication: Port 8085 requires an
X-Vibe-Tokenmatching the current session. - Iron Box Protocol: Every mutation is wrapped in atomic
Undogroups. One AI Request = One Undo Step. - The Guard: The bridge physically disables mutations if
vibe_status.jsonis not "Ready".
📘 User Guides & Philosophy
- Full Feature Manifest: Authoritative list of all functional abilities and roadmap.
- Technical Installation & Engineering: Deep dive into the Kernel architecture, security, and advanced setup.
- AI Philosophy & Safety: Learn how to manage AI behavior and prevent "AI Psychosis."
🌐 The VibeBridge Ecosystem
UnityVibeBridge is part of a trinity of tools designed for seamless AI-assisted creation:
- BlenderVibeBridge: The companion kernel for high-fidelity 3D modeling and rigging.
- VibeSync: The orchestration layer that synchronizes state between Unity and Blender.
🤝 Community & Softening the "Iron Box"
While our "Iron Box" security model is strict, it is designed to empower creators, not restrict them. The guardrails exist so you can experiment freely without fe
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
106.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.7kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
90.4k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
