Python CLI + UE 插件,可让 Claude 代码 (AI 编码代理) 实时控制 Unreal Engine。创建角色、编辑蓝图、调用函数、截取屏幕
Python CLI + UE 插件,可让 Claude 代码 (AI 编码代理) 实时控制 Unreal Engine。创建角色、编辑蓝图、调用函数、截取屏幕
Built and maintained by a solo developer. Support this project if it saves you time.
Control Unreal Engine 5 from your AI agent or terminal. soft-ue-cli gives any LLM -- via MCP server or CLI -- 120+ commands and tools to spawn actors, edit Blueprints, inspect materials and MetaSounds, build UMG screens, read and patch UE config files, run Play-In-Editor sessions, capture token-efficient screenshots, profile performance, and inspect local Unreal assets.
Two connection paths. One package. Bridge tools when Unreal is running, offline tools when it is not, and a command catalog that tells agents which command families are supported, which runtime/editor requirements apply, and which optional Unreal plugins are required.
LLM client / shell / CI
|
v
soft-ue-cli (CLI or MCP server)
|
+-- Live bridge path ----------------------------------------------+
| HTTP / JSON-RPC
| -> SoftUEBridge plugin inside UE editor / PIE / dev build
| -> Actor, Blueprint, material, widget, PIE, profiling tools
|
+-- Offline local path --------------------------------------------+
Direct local parsing
-> .uasset / .uexp / .ini / .uproject / BuildConfiguration.xml
-> asset inspect-file, asset diff-file, config tree/get/diff/audit, skillsmcp-serve) for Claude Desktop, Cursor, Windsurf, and other MCP clients, or as a standard CLI for Claude Code, shell scripts, and CI/CD. Same 120+ tool surface either way.session family gives them a shared roster derived from bridge traffic, so one agent stops rebuilding the editor out from under another's PIE test. Advisory only: it informs, it never blocks.umg, capture, mutable, statetree, metasound, anim, asset, and blueprint.soft-ue-cli commands --json reports bridge/editor/PIE requirements plus optional Unreal plugin dependencies, and bridge tools return structured plugin_unavailable errors when a plugin is missing..ini, BuildConfiguration.xml, and .uproject data from one config command group.httpx and Pillow. Add [mcp] extra for MCP server mode.SOFT_UE_BRIDGE environment variable means only developers who need the bridge get it compiled in.Recent releases moved soft-ue-cli from a flat list of one-off bridge calls toward a discoverable automation surface for agents:
commands is the source of truth for command status, replacement names, runtime requirements, optional plugin requirements, and examples.umg, capture, mutable, statetree, metasound, anim, asset, blueprint) are the supported public command surface.plugin_unavailable diagnostics.Legacy cloth apply-weightmap accepts every weight-map target exposed by the active Chaos clothing runtime, including tether, drag/lift, stiffness, pressure, and flatness targets. For a merged cloth asset, repeat --section-index or pass comma-separated indices to update only those source sections; weights outside the selection are preserved.
soft-ue-cli cloth apply-weightmap /Game/Characters/SK_Cape --asset-name CapeCloth \
--target edge-stiffness --rule constant --value 0.75 \
--section-index 1,3 --section-index 5 --saveAnimGraph property-path failures from blueprint node property and blueprint node add now identify the node class, searched inner struct, unresolved field, available fields, and settable pins. Invalid array indices are rejected with a focused error.
cloth query keeps its existing response fields and adds binding_warnings plus binding_warning_count when imported section clothing metadata is malformed or unsupported.
find-references node rejects results that may be incomplete while Find in Blueprints is still indexing or has failed cache entries and no complete fallback traversal is possible. Intentional --limit truncation remains valid.
Multi-client PIE state is discoverable through pie-session get-state, which adds worlds and world_count while keeping the first world's legacy top-level fields. Target one PIE client and one of its local players explicitly when executing a console command:
soft-ue-cli pie-session get-state
soft-ue-cli exec-console-command --pie-instance 1 --player-index 0 stat netUE 5.8 official MCP is preferred when it covers native execution for the workflow you need.
UE 5.8 is adding first-party Unreal MCP support. Use it when you want an Epic-managed, UE 5.8-native MCP endpoint and it already covers the workflow you need.
soft-ue-cli's main development target is now Unreal Engine 5.8. UE 5.7 compatibility remains maintained, so fixes and bridge code should continue to compile and run on UE 5.7 unless a release note explicitly says otherwise.
soft-ue-cli is intentionally a different layer rather than a replacement for first-party MCP:
.uasset, .uexp, .ini, .uproject, .uplugin, and BuildConfiguration.xml files, even when the editor is closed.test-tools smoke workflow for repeatable agent execution, not just raw editor operations.The two can coexist: use UE's first-party MCP for native UE 5.8 editor coverage when it fits, and use soft-ue-cli for UE 5.7 projects, cooked Development/DebugGame builds, CLI/CI automation, offline inspection, curated workflows, visual capture transforms, optional plugin diagnostics, and bridge tools that move independently of engine releases.
Run soft-ue-cli mcp-surface-status inside a project workspace to probe the local UE 5.8 official MCP endpoint and SoftUEBridge health endpoint. It reports official-only, bridge-only, both, or neither, plus a recommendation without executing editor mutations.
Private soft-ue-expert Pro distribution is separate from this public package. Expert Packs provide skills, cases, rules, agents, and verification through local owner operation; hosted Pro is deferred.
pip install soft-ue-cli # CLI only
pip install soft-ue-cli[mcp] # CLI + MCP serverRun the setup command inside your LLM client (Claude Code, Cursor, etc.) ??it outputs step-by-step instructions that the AI agent will follow to copy the plugin, edit your .uproject, and configure itself:
soft-ue-cli setup /path/to/YourProjectIf you're running manually (not via an LLM), follow the printed instructions yourself: copy the plugin directory, add the "Plugins" entry to your .uproject, and create the CLAUDE.md snippet.
After regenerating project files and rebuilding, launch the editor. Look for this log line to confirm the bridge is running:
LogSoftUEBridge: Bridge server started on port 8080soft-ue-cli check-setupYou should see all checks pass:
[OK] Plugin files found.
[OK] SoftUEBridge enabled in YourGame.uproject.
[OK] Bridge server reachable.Add to your MCP client config (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"soft-ue-cli": {
"command": "soft-ue-cli",
"args": ["mcp-serve"]
}
}
}The AI editor now has direct access to 120+ UE tools and skill prompts -- no terminal needed.
soft-ue-cli command
|
+-- Bridge-backed commands ----------------------------------------+
| HTTP / JSON-RPC
| -> SoftUEBridge plugin (UGameInstanceSubsystem inside UE)
| -> UE APIs on the game thread
| -> Runtime/editor operations such as spawn-actor, PIE, query-level
|
+-- Offline commands ----------------------------------------------+
Local parsers and file readers
-> Package tables / tagged properties / config hierarchy
-> asset inspect-file, asset diff-file, config *, skills get/listThe SoftUEBridge plugin is a lightweight C++ UGameInstanceSubsystem that starts an embedded HTTP server on port 8080 when UE launches. Bridge-backed commands send JSON-RPC requests to this server, and the plugin executes the corresponding UE operations on the game thread, returning structured JSON responses. Offline commands bypass the bridge entirely and operate directly on local files.
Automation commands return structured JSON to stdout (except get-logs --raw). Discovery and support commands use human-readable output by default where that is more useful, and expose --json where applicable. Exit code 0 means success, 1 means error.
LLM client (Claude Code, Cursor, etc.)
|
| soft-ue-cli skills get
v
Skill file (markdown shipped with CLI pip package)
|
| LLM reads instructions, type mappings, pre-filled commands
v
LLM executes soft暂无开放 Issues,或尚未同步最近议题。