unreal-mcp – skill Agent & Tự động hóa cho agent AI
Tự động hóa cảnh, actor và render trong trình chỉnh sửa Unreal Engine.
Cài skill unreal-mcp bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/unreal-mcp-2eed9.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /unreal-mcp – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/unreal-mcp-2eed9.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $unreal-mcp – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/unreal-mcp-2eed9.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /unreal-mcp – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/unreal-mcp-2eed9.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /unreal-mcp – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Unreal Engine MCP Skill
Companion skill for the unreal-engine entry in the Hermes MCP catalog. The
MCP server (Epic's official, experimental "Unreal MCP" plugin, internal id
ModelContextProtocol) runs INSIDE the Unreal Editor process and exposes
editor functionality as typed tools. This skill teaches how to drive it well:
discovering the live tool surface, sequencing calls safely, translating
plain-English asks into scenes that actually look good, and verifying work
visually. The user should never need to touch the editor beyond launching it.
When to Use
Use when the user wants anything done in Unreal Engine: build or dress a
level, spawn/move/delete actors, set up lighting and atmosphere, create or
tune material instances, frame a camera shot, capture screenshots or renders,
import assets, inspect the scene or UI, run automation tests, or script the
editor. Works for single actions ("make the sun golden hour") and for
complete multi-step projects ("build me a moody forest clearing with a
campfire and render a shot of it").
Don't use for: DCC-style mesh modeling/sculpting (model in Blender and
import the result), or for editing Unreal C++ project source (that's normal
code work — use the terminal; this skill is about the live editor).
Prerequisites
Two halves, in this order: the editor side must be up before Hermes connects.
One-time, editor side
1. Unreal Editor 5.8+ with a project open. (macOS: full Xcode must be
installed and its license accepted — the editor exits on first launch
without it; see pitfalls.)
2. Edit > Plugins — enable Unreal MCP (its Toolset Registry
dependency auto-enables). Restart the editor when prompted.
3. The typed toolsets ship separately from the server: also enable the
AllToolsets plugin in the same Plugins browser. Unreal MCP ships NO
tools itself — AllToolsets provides the shipped toolsets (SceneTools,
ActorTools, MaterialInstanceTools, ObjectTools, …); skip it and the
server connects but the agent has nothing to call.
4. Edit > Editor Preferences > General > Model Context Protocol — enable
Auto Start Server. Default bind is http://127.0.0.1:8000/mcp
(port/path configurable in the same panel; server name is unreal-mcp).
To start manually instead, run ModelContextProtocol.StartServer in the
editor console (backtick key).
One-time, Hermes side
hermes mcp install unreal-engine
This writes the mcp_servers.unreal-engine HTTP entry pointing at
http://127.0.0.1:8000/mcp and probes the live server for its tools. Run it
while the editor + server are up so the probe sees the real surface. If the
user changed port/path in Editor Preferences, edit the url in
~/.hermes/config.yaml under mcp_servers.unreal-engine to match.
Do NOT use ModelContextProtocol.GenerateClientConfig for Hermes — that
writes .mcp.json-style files for Claude Code/Cursor/etc. Hermes connects
from config.yaml via the catalog entry.
Every session
1. Launch Unreal Editor, wait for the project to finish loading; confirm the
server started (Output Log shows the bind address, or run
ModelContextProtocol.StartServer manually).
2. Start the Hermes session. Tools register as mcp_unreal_engine_*. If
they're missing: editor wasn't up first — start it, then open a new
Hermes session.
3. Sanity check: call mcp_unreal_engine_list_toolsets and confirm toolsets
come back.
The Tool Surface: Discovery, Not a Fixed List
By default the plugin runs in tool-search mode: tools/list returns only
three meta-tools, and every real tool is reached through them. Through Hermes
they appear as:
| Hermes tool | Purpose |
|---|---|
| mcp_unreal_engine_list_toolsets | Names + descriptions of every registered toolset |
| mcp_unreal_engine_describe_toolset | Full JSON schemas for one named toolset's tools |
| mcp_unreal_engine_call_tool | Invoke a named tool with arguments, get the result |
The discovery walk, always in this order:
1. list_toolsets → see what capability groups this project actually has
(the surface is project-dependent: enabled plugins, Game Feature Plugins,
and any custom toolsets all contribute). Names come back FULLY QUALIFIED
(editor_toolset.toolsets.scene.SceneTools,
EditorToolset.EditorAppToolset) — use them verbatim as toolset_name.
2. describe_toolset on the group you need → read the real parameter
schemas. Never guess parameter names — schemas are the contract.
3. call_tool with the qualified toolset name, the SHORT tool name
(find_actors, not the dotted form), and arguments matching the schema.
Cache what you learn for the session; re-list only after the editor side
changes (new plugin enabled, toolset authored, RefreshTools run).
The alternative eager mode (Enable Tool Search off in Editor Preferences)
advertises every tool as its own mcp_unreal_engine_{tool} entry. Discovery
then happens at hermes mcp install/configure time instead. Tool-search
mode is the default and what this skill assumes; it also keeps schema tokens
out of every API call, so prefer it.
See references/tool-surface.md for the shipped toolset catalog, authoring
custom toolsets, and the full plugin configuration/console-command reference.
Operating Loop
Every Unreal task follows the same loop:
1. Inspect first. List toolsets, then query the scene/level state before
touching anything. Never assume an empty or default level. In an
unfamiliar project, also check for project-registered Agent Skills
(call_tool → AgentSkillToolset.ListSkills): a matching project skill's
instructions override this skill's generic defaults.
2. Act in small, single-purpose calls. One logical step per call_tool.
The server executes tools serially on the game thread — a big
monolithic operation freezes the editor UI until it finishes and risks
client timeouts. Exception: for loops over 5+ homogeneous operations,
ONE ProgrammaticToolset.execute_tool_script call batches them
server-side without breaking the serial rule
(references/advanced-workflows.md).
3. NEVER issue overlapping calls. Do not batch multiple
mcp_unreal_engine_* calls in one turn — Hermes runs batched calls
concurrently, and parallel calls against the game thread deadlock or
fail. Strictly one call, await result, next call. This overrides the
general parallel-tool-calls guidance.
4. Read every result. Many tools (Blueprint compiles, material edits,
widget creation) report success/failure in the response body with no
protocol-level exception. Anything that isn't an explicit success is a
stop-and-diagnose, not a shrug. After property writes, read the value
back — several write paths silently no-op (see pitfalls).
5. Verify visually and structurally. After each milestone, confirm state
by querying the actors/properties you changed, and capture a viewport
screenshot when composition matters (see references/tool-surface.md for
the capture options; vision_analyze the image — you are the art
director, judge it).
6. Save often. Editor edits are in-memory until packages/levels are
saved; an editor crash loses everything since the last save, and MCP
edits are not reliably undoable. Save before AND after any bulk change,
and after every milestone.
7. Report concretely. Actor labels, asset paths (/Game/...), file
locations of captures/renders.
Rules of the world while you work:
- Units are centimeters; axes are Z-up, X-forward; rotations are
degrees (Rotator: Roll around X, Pitch around Y, Yaw around Z). Human eye
height ≈ 165 cm; a door ≈ 210×90 cm. Full tables in
references/scene-craft.md.
- Content paths use long package names:
/Game/Folder/Asset.Assetfor
project content, /Engine/BasicShapes/Cube.Cube for engine primitives.
- Actor labels (what you see in the Outliner, settable, non-unique) are
not actor names (internal, unique). Prefer resolving actors by
label/class queries, then hold on to whatever handle the tool returns.
- Prefer physically-plausible lighting values (lux/candela/Kelvin) over
arbitrary brightness numbers — but FIRST read the existing sun's
intensity to learn the scene's calibration convention; template worlds
are often calibrated around intensity: 10, and physical values blow
them out (references/scene-craft.md has the numbers,
references/pitfalls.md #12b has the calibration rule).
From Plain English to a Scene
The user gives intent, not specs. Translate before you build:
1. Extract the brief. Subject, mood, time of day, interior/exterior,
style, deliverable (screenshot? render? playable level?). Ask at most one
round of clarifying questions, then commit — you are the technical
director; don't bounce Unreal jargon back at the user.
2. Plan the build order. The order that works: level/environment shell →
blocking (maj
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- fact-check-x-complete – So sánh các khẳng định từ một hoặc nhiều câu trả lời AI, đối chiếu trích dẫn với nguồn…
- faf-expert – Chuyên gia định dạng .faf (Foundational AI-context Format) nâng cao. Đăng ký IANA, cấu…
- fal-workflow – Tạo file JSON workflow để nối chuỗi các mô hình AI
- run-without-you – Giai đoạn 4 của việc xây dựng Claude Managed Agent: làm cho nó chạy mà không cần bạn…
- famulor-skill – Vận hành trợ lý Famulor, lịch sử giao tiếp, chiến dịch, kiến thức, tự động hóa, viễn…
- workflow-orchestration-patterns – Thiết kế workflow bền vững với Temporal cho hệ thống phân tán. Bao gồm tách biệt…
- workflow-patterns – Dùng skill này khi triển khai tác vụ theo quy trình TDD của Conductor, xử lý các điểm…
- find-complementary-founders – Dùng khi chủ sở hữu yêu cầu rõ ràng một đồng sáng lập hoặc đối tác dự án, hoặc nói rõ…