SkillAgentSearch skills...

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/UnityVibeBridge

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

71/100

Category

Security

Supported Platforms

Claude Code
Claude Desktop

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.

Substance
30/30
Structure
13/20
Description
15/15
Adoption
3/20
Freshness
11/15

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.

SkillScoreStarsUpdatedFormat
UnityVibeBridge (this skill)by B-A-M-N7137mo agoMCP Server
Agent-Reachby Panniantong100106.4k5d agoCLAUDE.md
headroomby headroomlabs-ai10078.3ktodayCLAUDE.md
CowAgentby zhayujie10047.7ktodayCLAUDE.md
Scraplingby D4Vinci10090.4ktodayMCP 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.

🌌 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:

  1. Intent Plane (MCP Server): A Python-based server that receives high-level commands from AI agents. It audits these commands via the SecurityGate and queues them in vibe_queue/inbox.
  2. 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.
  3. Audit Plane (Write-Ahead Log): Every transaction is logged to logs/vibe_audit.jsonl and 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:
    1. Mechanical: Hard engine guards (No mutations during compile).
    2. Contextual: Force-feeding WAL hashes and monotonic ticks into every response.
    3. 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_errors force the agent to verify reality against intent in a closed feedback loop.

⚡ What you can do in 5 minutes

  1. Install: Drag the unity-package/ folder into your Unity project's Assets/.
  2. Initialize: Wait for compilation. The Kernel starts automatically on port 8085.
  3. Connect: Point your AI agent (Claude Desktop, Goose, etc.) to the bridge using scripts/python mcp-server/server.py.
  4. Create: Ask the AI: "Spawn a red cube at the origin and name it 'TestCube'."
  5. 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)

  1. Install Unity Packages: Run the automation script from your Unity project root:
    python /path/to/UnityVibeBridge/scripts/setup_unity_deps.py
    
    This adds UniTask and MemoryPack to your project via Git URL.
  2. Install VibeBridge: Copy the unity-package/ directory into your project's Assets/ folder.
  3. Initialize: Wait for Unity to compile. The Kernel starts automatically on port 8085.
  4. Handshake: Point your MCP-compatible AI agent (e.g., Goose, Claude Desktop) to the bridge.
  5. 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.

  1. Pentest Suite: We include a security_tests/pentest_suite.py that tests for 48 known attack vectors.
  2. Forensic Ledger: Every mutation is logged to an immutable, cryptographically chained audit log (vibe_audit.jsonl).
  3. Human Kill-Switch: The Kernel includes a mechanical system/veto tool 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 sessionNonce tracking).

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:

  1. AST Auditing: All incoming tool calls are audited by scripts/security_gate.py for forbidden patterns.
  2. Token Authentication: Port 8085 requires an X-Vibe-Token matching the current session.
  3. Iron Box Protocol: Every mutation is wrapped in atomic Undo groups. One AI Request = One Undo Step.
  4. The Guard: The bridge physically disables mutations if vibe_status.json is not "Ready".

📘 User Guides & Philosophy


🌐 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

View on GitHub
GitHub Stars3
CategorySecurity
Updated6mo ago
Forks0

Languages

Python

Trust signals

86/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

2 low