[!NOTE] This branch targets Unreal Engine 5.9 (
masterand5-9). UE 5.9 is still in preview, so expect rough edges and report problems as issues. For Unreal Engine 5.8, use the5-8branch.
VibeUE, AI-Powered Unreal Engine Development
🧩 MCP Expansion + AI Editor Toolset for Unreal Engine 5.9+
VibeUE is the MCP Expansion + AI Editor Toolset for Unreal Engine 5.9+. Unreal 5.8 added a
built-in MCP server and AI toolsets; VibeUE is an MCP Expansion that plugs straight into them and
adds a deep AI Editor Toolset, a library of editor capabilities the engine's own toolsets
don't reach: landscape, foliage, animation, Niagara, StateTree bindings, enhanced input, UVs,
performance/profiling, real-world terrain, and more, registered into the engine's own
ToolsetRegistry and ModelContextProtocol server, plus rich domain skills served through
Unreal's native AgentSkill system. Any MCP-capable agent (Claude Code, Cursor, Copilot, …) drives
your editor through Unreal's standard MCP endpoint.
⚠️ VibeUE requires Unreal's native MCP to be set up first, enable the Unreal MCP plugin (which auto-enables Toolset Registry), then start the MCP server. Enabling VibeUE pulls in Editor Tools and the other engine toolsets its skills use. Follow Epic's guide: Unreal MCP in the Unreal Editor. VibeUE then expands that endpoint, no separate server and no in-editor chat. A free API key (set in Editor Preferences → Plugins → VibeUE) unlocks the real-world terrain tools; everything else works without one.
✨ What VibeUE adds
Unreal 5.9 ships its own AI toolsets (Blueprints, materials, actors, assets, meshes, data tables, …). VibeUE complements them, it focuses on the domains and depth the engine doesn't cover:
- Terrain & world, Landscape sculpting/heightmaps/splines, landscape auto-materials + RVT,
Foliage, procedural FPS Map Blockout, and real-world terrain from GPS coordinates.
The
terrain_dataactions arepreview_elevation,generate_heightmap,get_ortho_image,get_feature_masks,get_map_features,get_water_features,generate_vista_heightmap,get_map_imageandlist_styles. - Audio, SoundCue graph authoring.
- Animation assets, AnimSequence keyframe editing, AnimMontage authoring, AnimBP state machines, Skeleton bone/socket/retarget/blend-profile editing.
- FX depth, Niagara emitter colour/curve authoring and Custom-HLSL scratch-pad modules.
- UI, the UMG work Epic's
WidgetStaticAnalysisToolset/WidgetAnimationToolset/MVVMToolsetdon't reach. Those own widget inspection, animation and view-model binding now; VibeUE keeps the remainder. - Higher-order Blueprint authoring, timelines, event dispatchers, delegates, custom-event pins
and comment boxes. Variables, components, interfaces, compile and node CRUD are Epic's
BlueprintToolsets.BlueprintToolset. - AI behavior repair -- Behavior Tree and EQS authoring is Epic's
AIModuleToolset; VibeUE adds only what it lacks: rebuilding a BT or EQS graph that has gone sparse while the runtime data is intact, renaming a blackboard key with BT selector fix-ups, sweeping a key's references, and running an EQS query (Epic's EQS tools author and inspect, but never run). - StateTree, Epic's
StateTreeToolsetowns states, tasks, conditions and node data. VibeUE keeps property binding (24 tools), asset creation, node-type discovery, theme colours and root parameters, seeSkills/state-trees/. - Editor safety --
TransactionServiceexposes the undo/redo stepping (undo / redo / multiple / can-undo / reset) that neither Python nor the engine toolsets expose; history reading is Epic'sUndoHistoryToolsetand scoping isunreal.ScopedEditorTransaction. - Build manifest,
WorkflowService.get_environmentreports engine version, build config and toolchain in one authoritative call. - Performance & profiling, the parts Epic's 5.9 profiling toolsets still don't cover: see below.
- Web research, search / fetch / geocode for in-context research and terrain workflows.
- Fab, seen,
FabPreviewServiceshows Fab content as real images next to Epic'sFabToolset:ListingImageSheettiles the pictures of a whole search page into one numbered contact sheet (and flags the blurred placeholders Fab serves for delisted listings),PackSheetshows what an installed pack holds, with its asset count by class and size on disk (a blank saved thumbnail is rendered again, not trusted), andRefreshThumbnailsre-renders and saves the blank ones. SeeSkills/fab-content/.
It deliberately does not duplicate the engine's general tools (basic asset/actor/blueprint/material CRUD, screenshots, logs, PIE), agents use Unreal's native toolsets for those.
⚡ Performance & Profiling
UE 5.9 added real profiling toolsets of its own, PerfToolset (StatsToolset.GetFrameTimings),
CsvProfilerToolset, GpuProfilerToolset and RewindDebuggerToolset, so start there:
call_tool GetFrameTimings {} # FrameMs + Game/Render/RHI thread + GPU split
The verdict is arithmetic you do yourself: the largest of the thread/GPU figures gates the frame and
should sit near FrameMs. If none of them comes near FrameMs, that is the signature of a cap
rather than a bottleneck, see Skills/frame-rate/.
PerformanceService now covers only what that surface still can't do:
analyse(), reads a finished.utraceand the log back and returns a perf summary (frame stats, worst frames, hitches, notable log lines). Nothing in Epic's surface parses a trace file. Capture the trace with the engine's ownTrace.*console commands viaConsoleToolset.RunConsoleCommand.- Trace-attached
start_standalone/stop_standalone/get_standalone_status, profile a representative out-of-process standalone build. Epic'sEditorAppToolset.StartPIEdowngrades standalone play modes to in-viewport PIE, which is not what you want to measure. set_background_throttling(), registers theShouldDisableCPUThrottlingDelegatesoverride. ClearingbThrottleCPUWhenNotForegroundis not enough:UEditorEngine::ShouldThrottleCPUUsagefalls through toAreAllWindowsHidden(), so a minimized editor throttles anyway. This is the one that matters for unattended runs.force_hitch(), inject a deliberate stall to validate that your capture and analysis pipeline actually catches one.
import unreal
print(unreal.PerformanceService.analyse("both", ""))
🏗️ Architecture
VibeUE plugs into three native UE 5.9+ systems:
- Toolsets (
ToolsetRegistry), VibeUE's services register asUToolsetDefinitions, so their methods become AICallable tools on the MCP endpoint. They're alsoBlueprintCallable, so the same methods are callable from Python asunreal.<Name>Service.<method>(). - MCP server (
ModelContextProtocol), only two VibeUE utility tools are registered directly on the endpoint, both things the engine has no tool for:deep_researchandterrain_data. Python execution and API discovery are engine-native in 5.9 (editor_toolset.toolsets.python_scripting.PythonScriptingTools:execute_python,read_me,search_symbols,get_symbol), so VibeUE no longer ships its own. - Skills (
AgentSkillToolset), 34 markdown skill packs underSkills/(counting thevibeueindex), discovered natively by 5.9 (<Plugin>/Skills/**/SKILL.md), listed byListSkillsand loaded lazily viaGetSkills, alongside the engine's own skills.
Efficient usage (for agents): the engine's execute_python is the workhorse, it batches a whole
multi-step task into one round-trip and reaches every VibeUE service plus the full unreal.* API. Use
call_tool only for skills and the few engine toolsets with no Python path (screenshots, etc.). See
Content/samples/AGENTS.md.sample for the full agent guide.
🚀 Installation & setup
Requirements: Unreal Engine 5.9+ · Git
Step 1, Set up Unreal's native MCP (do this FIRST)
VibeUE is an expansion of Unreal's built-in MCP support, so enable that first. Full details in Epic's guide: Unreal MCP in the Unreal Editor.
- Edit → Plugins → enable Unreal MCP (this auto-enables Toolset Registry). It is Experimental. Restart when prompted. You do not need to hunt down Editor Tools or the other engine toolsets by hand: VibeUE declares the eighteen its skills route to, so enabling VibeUE in Step 2 switches them on. None of them is enabled by default on a stock engine, which is exactly why VibeUE declares them.
- Edit → Editor Preferences → General → Model Context Protocol → enable Auto Start Server
(or run the console command
ModelContextProtocol.StartServer). Default endpointhttp://127.0.0.1:8000/mcp(port/path configurable). Enabling Tool Search keeps an agent's context small, it seeslist_toolsets/describe_toolset/call_tooland loads tools on demand.
Step 2, Install VibeUE
cd /path/to/YourProject/Plugins
git clone https://github.com/kevinpbuckley/VibeUE.git
Build with the project script:
Plugins/VibeUE/BuildAndLaunchGame.ps1 # builds + launches the editor
Plugins/VibeUE/BuildAndLaunchGame.ps1 -StrictRebuild # full recompile (warnings-as-errors)
Plugins/VibeUE/BuildAndLaunchGame.ps1 -Map /Game/Maps/MyMap # open a specific map (issue #554)
Plugins/VibeUE/BuildAndLaunchGame.ps1 -AllUnrealProcesses # also close other projects' editors (old behaviour)
Plugins/VibeUE/BuildAndLaunchGame.ps1 -SkipBuild -Port 8011 -Muted -WaitForIdle # second editor, silent, wait until idle
Plugins/VibeUE/BuildAndLaunchGame.ps1 -NoLaunch # build only ("does it compile?"); no editor is started
A running editor of the project is asked to quit over MCP and exits by itself; if it has unsaved packages the
script stops and lists them (-Force closes it anyway). Old logs move to Saved/Logs/Previous. Details and every
switch: Build & launch script.
The Windows script closes only the editors of THIS project (their command line names its .uproject); an
editor of another project on the same machine keeps running. Because UBT's Live Coding guard is keyed on the
engine's UnrealEditor.exe, not the project, the script then builds with -NoHotReloadFromIDE so that
editor's Live Coding session does not fail the build ("Unable to build while Live Coding is active").
On Linux or macOS, use the platform-detecting shell script:
Plugins/VibeUE/BuildAndLaunchGame.sh --engine /path/to/UE5
Plugins/VibeUE/BuildAndLaunchGame.sh --engine /path/to/UE5 --strict-rebuild
Plugins/VibeUE/BuildAndLaunchGame.sh --engine /path/to/UE5 --map /Game/Maps/MyMap
Plugins/VibeUE/BuildAndLaunchGame.sh --engine /path/to/UE5 --stop-editor # close this project's editor without asking
Plugins/VibeUE/BuildAndLaunchGame.sh --engine /path/to/UE5 --no-launch # build only
If an editor of this project is running, the shell script asks it over MCP (curl) to quit when nothing is
unsaved and stops with the list when something is (--force closes it anyway). Only an editor that cannot be asked
gets the old treatment: the script asks on a terminal and refuses when there is none (an agent, CI);
--stop-editor gives that consent up front. A Blueprint-only project (no
Source/*Editor.Target.cs) is built through the engine's UnrealEditor target with -Project=, which
compiles the project's plugins, so it works with the Epic binary install as well as a source build.
Then Edit → Plugins → enable VibeUE and restart. Its services, tools, and skills now register
onto the same endpoint, alongside the engine's own.
On NixOS (or any Linux with Nix), the optional flake.nix builds the plugin inside an FHS environment with the
libraries the Epic Linux build loads, against an engine you unpacked yourself; Unreal is not packaged:
cd Plugins/VibeUE
UE_ENGINE_ROOT=/path/to/UE5 nix run . -- /tmp/VibeUE-Linux # RunUAT BuildPlugin into that folder
nix run .#shell # a shell for BuildAndLaunchGame.sh or the editor
Step 3, Connect your agent
Two console commands from the editor (open the console with `):
1. Write the MCP server config (.mcp.json at the project root):
ModelContextProtocol.GenerateClientConfig ClaudeCode
(supports ClaudeCode, Cursor, VSCode, Gemini, Codex, or All.)
2. Write VibeUE's agent guide so the assistant uses the efficient patterns:
VibeUE.GenerateAgentConfig ClaudeCode
This writes the guide to the correct file for your agent, CLAUDE.md (Claude Code), GEMINI.md
(Gemini), AGENTS.md (Codex / Hermes / Cursor), or .github/copilot-instructions.md (Copilot), or pass
All to write CLAUDE.md + GEMINI.md + AGENTS.md at once. It resolves the plugin location
automatically, so it works whether VibeUE was installed from FAB or Git. The guide goes in a
managed block, so re-run any time to refresh without disturbing your own notes. Pass import to link
the guide with a one-line @import instead of copying it (Claude Code / Gemini only, other agents
don't resolve imports, so they always get a copy).
The MCP server is loopback-only with no authentication, same-machine use only (per Epic's docs).
The guide teaches: discover before you call (get_symbol / search_symbols), batch with execute_python,
load skills via ListSkills/GetSkills, and when to reach for deep_research / terrain_data.
🎯 Skills
Skills are lazy-loaded domain knowledge (workflows, gotchas, property formats) served by Unreal's
native AgentSkillToolset:
# discover (summaries only, cheap)
call_tool(tool_name="ListSkills", toolset_name="ToolsetRegistry.AgentSkillToolset")
# load the packs you need (full markdown, lazy)
call_tool(tool_name="GetSkills", toolset_name="ToolsetRegistry.AgentSkillToolset",
arguments={"skillPaths": ["/Skills/VibeUE/blueprints"]})
ListSkills is the live source of truth for what's available (it reads each pack's SKILL.md).
Skills tell you what to do and why; use get_symbol('unreal.<Name>Service')
for exact signatures before writing code.
🔧 Plugin dependencies
Native engine prerequisites (enable in Step 1, Epic's MCP stack):
| Plugin | Purpose |
|---|---|
Unreal MCP (ModelContextProtocol) |
The native MCP server endpoint |
Toolset Registry (ToolsetRegistry) |
Native AI toolset + AgentSkill registration (auto-enabled by Unreal MCP) |
Enabled automatically by VibeUE. Enabling VibeUE pulls in ToolsetRegistry and
ModelContextProtocol, PythonScriptPlugin (the unreal.* API), EditorScriptingUtilities, the
domain plugins its services need (Niagara, EnhancedInput, ModelViewViewModel, StateTree,
MeshModelingToolset, GameplayTagsEditor, EnvironmentQueryEditor), and the engine toolsets
VibeUE's skills route to:
EditorToolset · BlueprintToolsets · ConsoleToolset · ConfigSettingsToolset ·
FileSystemToolset · StateTreeToolset · AIModuleToolset · NiagaraToolsets · MVVMToolset ·
WidgetStaticAnalysisToolset · WidgetAnimationToolset · SlateInspectorToolset ·
SceneCaptureToolset · PerfToolset · InputToolset · GameplayTagsToolset ·
AutomationTestToolset · GASToolsets
Those eighteen matter more than they look. None of Epic's toolset plugins is enabled by default,
FPlugin::IsEnabledByDefaultdisables an engine plugin whoseEnabledByDefaultis absent, not just one that sets it tofalse, and VibeUE's skills now deliberately send you to them for everything the engine does better. Without them enabled, those calls just are not there. They are declaredOptional, so a future engine version renaming or dropping an experimental toolset cannot stop VibeUE loading; if one is missing you simply lose that domain's engine tools.A handful of toolsets the skills mention only in passing (
RewindDebuggerToolset,CommonUIToolset,NavMeshToolset,PCGToolset,PluginToolset,GameFeaturesToolset,MediaToolset,ChaosClothAssetToolset,LiveCodingToolset) are not declared, to avoid switching on a pile of experimental plugins nobody asked for. Enable those yourself if you want them.
🛠️ Build & launch script
BuildAndLaunchGame.ps1 (project root or Plugins/VibeUE/) closes the running editor, builds, and
relaunches:
-StrictRebuild, full plugin recompile under warnings-as-errors-Clean, wipe intermediate/binaries first-SkipBuild, relaunch only-NoLaunch(alias-BuildOnly), build only, see "Build only and the build lease" below-Map /Game/Maps/MyMap, open that level (the readiness signal'scurrentMapis checked against it)-Mode DebugGameetc., build configuration (defaultDevelopment)-AllUnrealProcesses, also close other projects' editors (by default only editors whose command line names this.uprojectare closed)
Closing the running editor. Each editor of the project is asked over MCP (execute_python) for its unsaved
packages. With none, it is told to quit (unreal.SystemLibrary.quit_editor()) and exits by itself: no kill, so its
log is complete. With unsaved packages the script stops (exit 5) and lists them; save or discard them, or pass
-Force to close it anyway and lose them. The script waits (-QuitTimeoutSec, default 120) while the editor runs a
slow task or shows a modal dialog. The Python checks its own process id first, so a wrong port never closes another
editor. An editor that cannot be asked (no MCP, wedged) gets the old main-window close, which lets the editor ask
about unsaved work itself; if it is still running after 15 s the script refuses (exit 5) unless -Force, which
kills it.
Logs. The files in Saved/Logs (and Saved/Logs/AgentConversations) move to
Saved/Logs/Previous/<yyyyMMdd-HHmmss>/ instead of being deleted, so the log of a session that just crashed
survives the relaunch; the newest -LogGenerations (default 5) folders are kept. -KeepLogs leaves Saved/Logs
alone.
Port. -Port 8011 passes -ModelContextProtocolPort=8011 to the editor and warns when the editor reports
another port. A second editor on the machine needs its own port (every editor defaults to 8000).
Waiting. -WaitForReady returns once VibeUE's readiness signal is written (exit 0; 2 timed out, 3 the editor
exited first). It gives up only after -ReadyTimeoutSec (default 180) seconds WITHOUT a sign of life (the
editor's CPU time, its log and its health file all unchanged), or after -ReadyMaxSec (default 3600) in all, so a
cold start after a reboot is not reported as a failure. -WaitForIdle then also waits for the health file to show
no slow task, no modal dialog, no shader jobs and no assets compiling (textures, meshes, distance fields, Lumen
cards) on two heartbeats in a row (exit 6 after -IdleTimeoutSec, default 3600).
Muted. -Muted mutes the editor's Windows audio session(s) through Core Audio (ISimpleAudioVolume), from a
hidden watcher that keeps them muted for the editor's lifetime (log Saved/VibeUE/audio-session-<pid>.log). The
engine still renders audio, so recording a submix and au.DumpActiveSounds keep working; only the speakers are
silent. Windows remembers a session's mute per executable: after a -Muted run, an editor started from the same
UnrealEditor.exe (any project, also from the launcher) starts muted too. The script records what it muted in
%LOCALAPPDATA%\VibeUE\muted-editor-executables.txt, and its next launch without -Muted un-mutes the new editor
once and clears the record; otherwise un-mute it in the Windows Volume Mixer.
Build only and the build lease (issue #721). -NoLaunch (alias -BuildOnly) closes this project's editor only
if one runs (with the unsaved-work refusal above, exit 5), builds, and exits 0 (succeeded) or 1 (failed) without
starting an editor. With no editor of the project running it touches nothing else: no helper process is closed and
Saved/Logs stays as it is. Use it for "does it compile?" instead of calling Build.bat yourself, which skips the
editor check, the Live Coding handling and the lease.
Every build holds a lease. Saved/VibeUE/Signals/build.json (UTF-8 JSON, replaced atomically) says what is happening:
{"schema":"vibeue.buildlease.v1","status":"running","phase":"compiling","pid":33876,"host":"BUILDBOX",
"project":"C:\\Projects\\MyGame\\MyGame.uproject","target":"MyGameEditor","platform":"Win64","config":"Development",
"launch":false,"startedUtc":"2026-11-29T16:15:42.5Z","finishedUtc":null,"seconds":null,"exitCode":null,"result":"",
"errorCount":0,"errorsKind":"none","errorsTail":[],"diagnostic":"",
"outputLog":"C:\\Projects\\MyGame\\Saved\\VibeUE\\build-output.log"}
status is running (phase closing-editors, then compiling), then succeeded, failed, refused (a running
editor had unsaved work: nothing was built) or cancelled (the invocation stopped before its build ended). result
is UBT's Result: text (Succeeded, Failed (OtherCompilationError)), errorsTail the first 20 compiler errors
(errorsKind compiler), or the last lines of UBT's output when a build failed without one (outputTail). The full
output of the last build is in Saved/VibeUE/build-output.log, written as it comes. The lock itself is
Signals/build.lock, held open by the building invocation; Windows releases it when that process ends, so a killed
invocation never blocks the next one (its build.json still says running: the editor's health file and
vibeue_client.py build report that as abandoned). last-build.json (what WorkflowService.get_environment()
reports) still records only the last real build.
A second invocation (an agent in another shell, a teammate) waits for the lease (-LeaseTimeoutSec, default 3600,
then exit 7) instead of starting a second UBT. When the build it waited on finished meanwhile, for the same target and
configuration, and no build input (*.cpp, *.h, *.cs, .uplugin, .uproject under the project's and its
plugins' Source) changed after that build started, it reports that build's result and exits with it (-NoLaunch)
or launches on it; otherwise it builds itself. -SkipBuild also waits for a running build before launching.
Each build ends with lines in a fixed form, written to the output stream:
BUILD-RESULT: status=failed exit=6 target=MyGameEditor config=Development seconds=8.1 errors=1 reused=false builtBy=53800 ubt="Failed (OtherCompilationError)" lease="C:\Projects\MyGame\Saved\VibeUE\Signals\build.json" log="C:\Projects\MyGame\Saved\VibeUE\build-output.log"
BUILD-ERROR: C:\Projects\MyGame\Source\MyGame\Foo.cpp(4,31): error C2065: 'Bar': undeclared identifier
reused=true means this invocation reports another one's build (builtBy is that invocation's pid).
BUILD-OUTPUT: lines replace BUILD-ERROR: lines when a failed build printed no compiler error. Without an editor,
read the lease with python scripts/vibeue_client.py --project <ProjectDir> build; with one, its health file carries
it as build (section "Editor readiness and health" of the vibeue skill). Tests: scripts/tests/build_lease_launcher_test.ps1
and .sh run both scripts offline against a fake engine (one UBT run for two invocations, errors, an edit during a
build, timeouts); scripts/tests/build_lease_regression.py checks the health file's build field in a live editor.
Exit codes: 0 done (built, with -NoLaunch), 1 build or setup failure, 2 not ready in time, 3 the editor exited
before it was ready, 4 invalid -Map, 5 refused to close a running editor, 6 not idle in time, 7 another
invocation's build lease was not released within -LeaseTimeoutSec.
BuildAndLaunchGame.sh (Linux, macOS) has the same behaviour with --force, --port, --keep-logs,
--log-generations, --wait-for-ready, --ready-timeout, --ready-max, --wait-for-idle, --idle-timeout,
--quit-timeout, --no-launch (--build-only), --lease-timeout (--help lists them). It asks the editor over MCP
with curl. Its lease is the same build.json; the lock is the directory Signals/build.lock.d holding its owner's
pid (mkdir is atomic everywhere, flock is not on macOS), taken over when that process is gone. --muted works on Linux through
pactl (PulseAudio or PipeWire; their stream-restore remembers the mute per application too, handled the same way);
macOS has no per-application mute, so there it only prints a note. Without --wait-for-ready the .sh still waits
for the editor to exit, as before.
📚 The live API
VibeUE intentionally keeps no static method catalog in this README, the surface evolves with the engine. The authoritative, always-current references are:
ListSkills→ which domains exist and when to use them.get_symbol('unreal.<Name>Service')→ exact method signatures (engine-native).describe_toolset('VibeUE.<Name>Service')→ the toolset's tools + JSON schemas (token-heavy; prefer skills + discovery).
License
MIT, see LICENSE. Project home: https://www.vibeue.com/