Purpose
ue5-automation is designed to let AI agents (or scripts) actually control Unreal Editor, rather than stopping at the demo level. Most attempts at "AI controlling Unreal" hit the same wall: Python cannot reach UEdGraph, so node-level graph authoring, reliable wiring, and "did the operation actually take effect" are difficult to achieve. This toolchain solves these problems through a C++ bridge plugin and verification discipline.
Main Capabilities
- C++ bridge plugin: Provides 59 editor UFUNCTIONs, supporting node creation, GUID-based pin and connection editing, widget tree authoring, material expression enumeration, and other operations that Python cannot perform inside the engine.
- Verification discipline: Every write operation is re-read and compared (failure raises an error, never fakes success); connections are verified against live topology; compilation results are read back and log patterns are scanned.
- Runtime behavior checks: Start PIE, read live Actor state, teleport and read back, to prove that logic actually runs, not just that it compiles.
- Security model: Local-only binding, token authentication, a 72-command whitelist (no arbitrary code execution), transaction log, rollback, and scoped-only saving (never save the entire project).
Environment Requirements
The host must have Python 3.10+ installed, with the Python Editor Script Plugin enabled in the editor and Remote Execution turned on.
Usage
Via AI (MCP)
The toolchain itself is an MCP server, and any MCP client can be pointed at it:
- UE 5.1–5.5:http://127.0.0.1:8889/mcp(本仓库提供该端点;桥接在首次写入时自动启动,或参见 skill/ue5-automation/docs/MCP-ACCESS.md)
- UE 5.8: The engine's official MCP server is located at http://127.0.0.1:8000/mcp — enable it in Project Settings (bAutoStartServer=True) and install bridge/ue58-extras/ (8 tools; with the precompiled bridge, node-level graph tools are also available)
- stdio clients (Claude Desktop, etc.): Start the built-in stdio proxy — it provides the full tool catalog locally and forwards tool calls to the in-editor bridge (automatically reading the token), so clients that cannot set HTTP headers work out of the box: {"mcpServers":{"ue5-automation":{"command":"python","args":["C:/path/to/ue5-automation/skill/ue5-automation/scripts/ue5_mcp_stdio.py"]}}}
After that, you can directly tell the agent: "Create a pickup item blueprint with a collision sphere, then verify the pickup logic in PIE." For client configuration (ZCode / Claude Desktop / Cursor / raw JSON) and the full tool catalog, see MCP-ACCESS.md.
Via Command Line
The toolchain also supports command-line usage.
Execution Chain (What the Agent Actually Executes)
Every write is read back and compared, and a mismatch raises an obvious error. The tool treats "returning true but doing nothing" as the number one taboo of editor automation.
Installation
3 steps in total. For the full guide, see README.zh-CN.md (Chinese) and skill/ue5-automation/DEPLOY.md.
Status and Testing
- Offline regression: 473 passed / 0 failed (98 skipped = online tests requiring a live editor)
- Live end-to-end verification has been completed on UE 5.1.1 and UE 5.8.2 (editor → official MCP → toolset → C++ bridge → live PIE state)
- See CHANGELOG.md for per-version summaries
Use Cases
Suitable for development andWorkflow, especially suitable for teams with requirements for reliability and auditability.
Limitations and Notes
- Requires a Python 3.10+ host environment, with the Python Editor Script Plugin and Remote Execution enabled.
- If using the official UE 5.8 MCP server, it must be enabled and the extension installed in Project Settings.
- Licensed under Apache-2.0; see LICENSE for details.
- Unreal® Engine is a trademark of Epic Games, Inc.; this project is an independent developer tool and is neither affiliated with nor endorsed by Epic Games.
- The project is built on top of the UE Editor's Python and remote execution interfaces, and integrates the official ModelContextProtocol plugin (5.8+).
Repository Structure
The repository contains folders and files used to organize the bridge, skills, scripts, and documentation.