About this project

Nexus Unity provides a bridge between the Unity Editor and external automation tools, specifically optimized for AI agents. It implements a local JSON-RPC server that exposes a wide range of editor capabilities via a public API or an MCP (Model Context Protocol) bridge. Key capabilities include: - Scene & Hierarchy Management: Creating, opening, and saving scenes, as well as manipulating GameObjects (transform, duplicate, parent, etc.). - Asset & Component Control: Searching and managing prefab assets, adding/updating components, and creating materials. - Code Automation: Writing C# scripts with integrated compilation and error reporting. - Editor Control: Managing Play Mode, undo/redo operations, accessing logs, and polling test results. - UI Automation: Querying and operating Unity Editor UI Toolkit windows. The package includes a Python-based MCP bridge to integrate with AI clients such as Claude Desktop, Claude Code, Cursor, Windsurf, and VS Code (Cline/Roo). It features built-in security measures, including session token authentication, loopback host validation, and confirmation gates for destructive operations like script writes or PlayerPrefs deletion.