Skip to main content
Glama
ascent-unreal-mcp

ascent-unreal-mcp

ascent-unreal-mcp v2.1

Project-specific MCP server for operating Ascent's Unreal project through headless commandlets — small named tools, not arbitrary editor mutation.

v2 is a field-hardened rewrite after the 2026-08-31 aurora/blizzard night: every lesson that cost an hour is now a default.

Tools

  • unreal_run_python_script — run a repo scripts/*.py through a commandlet, with args (reach the script via sys.argv) and an outputFilter regex.

  • unreal_probe_actor — read-only: load a map, read actor properties by editor display name ("Use Auroras", "Ultra Dynamic Weather"). The tool shape that found both of tonight's dead wires.

  • unreal_set_actor_properties — set display-name properties on matching actors and save (python literals via pyValue; booleans work).

  • unreal_duplicate_map — duplicate a /Game/... map asset.

  • unreal_apply_material_to_actor — assign a material slot on a named actor.

  • uds_inspect_level — read-only sky/weather report: aurora/space switches, the sky→UDW reference, snow/rain state, manual-override pins.

  • uds_apply_preset — editor-time lookdev presets. Runtime phase profiles (DA_TOD_*) override these every tick in-game — look checks only.

  • ascent_unreal_status — paths, editor-running state, housekeeping.

v2.1 world-building suite

  • unreal_list_assets — asset-registry discovery (path + class/name filters).

  • unreal_asset_probe / unreal_set_asset_properties — read/write properties on ANY asset (DataAssets, meshes, materials) or a Blueprint's class defaults. Struct/array writes are out of scope — script those.

  • unreal_spawn_actors — batch placement (mesh/BP/class sources, transforms, tags, clearTag idempotency). Headless has no physics: supply Z.

  • unreal_import_assets — batch FBX/texture/audio import; textureType configures normal/mask compression. Chunk big texture batches.

  • unreal_import_animation — anim-only FBX onto an existing skeleton with the Trekker pipeline settings.

  • unreal_create_material_instance — MI from parent + scalar/vector/texture params, verified by readback (UE 5.7's MEL setters return false even on success).

  • unreal_snapshot_level — regenerates .claude/level-snapshot.md.

  • unreal_screenshot — the eyes: launch -game, BugItGo vantages, console commands, screen captures, PNG paths back. Targets the game strictly by PID and never sends a keystroke unless the game verifiably holds foreground focus.

Related MCP server: unreal-ai-connection

Behavior contract (what v2 guarantees)

  • Commandlet flags: -stdout -Unattended -NoSplash -NoLogTimes -SCCProvider=None always. Without -stdout, unreal.log lines never reach the caller; without -Unattended, one modal dialog eats the timeout.

  • Exit codes are checked: failures return isError with the log tail — never a success-shaped blob.

  • Output is filtered: marker lines (default MCP |LogPython) + a short tail on failure. Raw multi-MB UE logs never reach the model.

  • Runs are serialized behind a mutex; two commandlets never race the project.

  • Editor detection: mutating tools refuse while UnrealEditor.exe runs (commandlet saves lose to editor file locks, silently) unless allowWithEditorOpen: true. Read-only tools allow it by default.

  • Timeouts kill the whole process tree (taskkill /T /F), not just the root — no orphaned ShaderCompileWorkers.

  • Saves use save_map plus save_dirty_packages(True, True) — World Partition OFPA actors don't flush on save_map alone.

  • dryRun defaults to true on mutating tools and returns the exact command line; generated scripts are pruned (newest 100 kept).

Setup

cd tools/ascent-unreal-mcp
npm install
npm test    # build + unit tests (node:test) + stdio smoke test — no Unreal needed

The repo .mcp.json registers this server as ascent_unreal. It launches dist/index.js, so rebuild after editing.

Environment

  • ASCENT_ROOT: repository root (default: cwd/../..).

  • ASCENT_UPROJECT: project path (default: ASCENT_ROOT/Ascent/Ascent.uproject).

  • UNREAL_EDITOR_CMD: commandlet executable (default: UE 5.7 Program Files).

Design rules

  • Generated python goes to scripts/generated/mcp/; local scripts must live under scripts/; asset paths must be /Game/... with no traversal.

  • Prefer unreal_probe_actor before believing any push-side log: the aurora was "pushed" for a week to a feature whose master switch was off.

  • Never drive in-editor map switches through the UnrealClaude script queue (editor crash + boot re-run loop); map-switching batch work belongs here, headless, with editors closed.

Available Tools

20 tools
anim_audit_assetsA

READ-ONLY animation audit for a skeleton: every AnimSequence (play length, rate scale, additive), BlendSpace (sample positions + which sequence at which speed), Montage, and AnimBlueprint under a search path, plus which assets the AnimBP actually references (orphan detection via the asset registry). The state-machine GRAPH itself is Blueprint territory — audit that via the live UnrealClaude plugin, not headless.

Inputs: skeleton (required), dryRun, searchPath, timeoutSeconds, +1 more.

ascent_apply_then_verifyB

Run a repo script, then — in the SAME commandlet boot — probe an actor or asset and check expectations against the read-back values. The whole call fails unless the script succeeds AND every expectation passes. 'Probe before you believe', as infrastructure: a mutation that can't prove itself didn't happen.

Inputs: expect (required), script (required), verify (required), args, +3 more.

ascent_unreal_statusA

Server/environment status: paths, whether an Unreal editor is currently running (file-lock risk for mutating tools), and generated-script housekeeping.

Inputs: no named parameters.

uds_apply_presetA

Apply a named editor-time UDS lookdev preset to the sky actor and save the map. WARNING: runtime phase profiles (DA_TOD_*) override these every tick in-game — this is for in-editor look checks only. Mutating: refuses while an editor is open unless allowWithEditorOpen.

Inputs: map (required), preset (required), dryRun, actorLabel, +2 more.

uds_inspect_levelA

READ-ONLY: report the sky (UDS) and weather (UDW) actors in a map with the fields that have actually burned us: aurora/space master switches, the sky->UDW reference, snow/rain state, manual-override pins, time of day. Returns one MCP INSPECT_JSON line.

Inputs: map (required), dryRun, timeoutSeconds, allowWithEditorOpen.

unreal_apply_material_to_actorA

Assign a material to a slot on a named actor's static mesh component in one map, then save. Mutating: refuses while an editor is open unless allowWithEditorOpen.

Inputs: map (required), material (required), actorLabel (required), slot, +3 more.

unreal_asset_probeA

READ-ONLY: read properties by display name off ANY asset — DataAssets (e.g. TOD profiles), meshes, materials — or a Blueprint's class defaults (classDefaults: true). The asset-side sibling of unreal_probe_actor.

Inputs: asset (required), props (required), dryRun, classDefaults, +2 more.

unreal_create_material_instanceB

Create (or update) a MaterialInstanceConstant from a parent material and set scalar/vector/texture parameters, then save.

Inputs: name (required), parent (required), destination (required), dryRun, +5 more.

unreal_duplicate_mapB

Duplicate a /Game/... map asset. Mutating: refuses while an editor is open unless allowWithEditorOpen.

Inputs: sourceMap (required), targetMap (required), dryRun, overwrite, +2 more.

unreal_import_animationA

Import an animation-only FBX onto an EXISTING skeleton (the Trekker pipeline: no mesh, exported-time length, no default sample rate). Post-tune the sequence with unreal_set_asset_properties if needed.

Inputs: file (required), skeleton (required), destination (required), name, +3 more.

unreal_import_assetsA

Batch-import files (FBX meshes, PNG/JPG textures, WAV) into /Game destinations via AssetImportTask. textureType configures compression: 'normal' (TC_Normalmap, sRGB off), 'mask' (sRGB off), 'color' (default). Files must live inside the repo. Big texture batches can exhaust headless memory — chunk them.

Inputs: files (required), dryRun, timeoutSeconds, allowWithEditorOpen.

unreal_list_assetsA

READ-ONLY: query the asset registry under a /Game path, optionally filtering by class-name and asset-name substrings. Cheap discovery before probe/set tools.

Inputs: path, limit, dryRun, nameContains, +3 more.

unreal_probe_actorA

READ-ONLY: load a map and read actor properties by their editor display names (e.g. 'Use Auroras', 'Ultra Dynamic Weather'). Matches actors whose label OR class contains actorMatch (case-insensitive). This is the tool shape that found the dead aurora switch and the null sky->weather reference — read back the ACTUAL state instead of trusting push logs.

Inputs: map (required), props (required), actorMatch (required), dryRun, +3 more.

unreal_run_python_scriptA

Run an existing python script from the repo scripts/ folder through a headless commandlet. Optional args reach the script via sys.argv (no whitespace in an arg). Output is filtered to marker lines (default: 'MCP |LogPython') — have your script unreal.log() what matters.

Inputs: script (required), args, dryRun, outputFilter, +2 more.

unreal_screenshotA

THE EYES: launch a -game instance of a map, wait for it to settle, teleport through vantages (BugItGo) and/or run console commands, screen-capture each, kill the game, return PNG paths. This is the pattern every visual verification this project ever did was built on. Windows-only; steals foreground focus while capturing. Serialized with all other runs.

Inputs: map (required), resX, resY, dryRun, +3 more.

unreal_set_actor_propertiesB

Set editor-display-name properties on matching actors in a map, then SAVE the map. Values are converted to python literals safely (booleans included). Mutating: refuses while an editor is open unless allowWithEditorOpen.

Inputs: map (required), actorMatch (required), properties (required), dryRun, +3 more.

unreal_set_asset_propertiesA

Set simple-valued properties (number/bool/string; a /Game/... string is auto-loaded as an object reference) on an asset or a Blueprint's class defaults, then save the asset. Struct/array properties are NOT supported — use unreal_run_python_script for those.

Inputs: asset (required), properties (required), dryRun, classDefaults, +2 more.

unreal_snapshot_levelA

Regenerate the level snapshot markdown (label, class, transform, tags for every actor) that CLAUDE.md declares the authoritative source of level truth. Writes inside the repo.

Inputs: map (required), dryRun, outFile, timeoutSeconds, +1 more.

unreal_spawn_actorsA

Batch-spawn actors into a map and save. Each entry: source (a /Game static mesh or Blueprint asset, or a /Script/Module.Class), label, location, optional rotation/scale/tags. clearTag first deletes every actor carrying that tag (idempotent re-runs). NOTE: headless commandlets have no physics scene — no ground traces; supply explicit Z.

Inputs: map (required), actors (required), dryRun, clearTag, +2 more.

weather_capture_phase_stillsA

One-call arc verification: set a TOD profile's driver to a fast FixedTimer, launch the map in -game, detect the run start from the log, capture a screenshot as each PHASE becomes active (named by phase), kill the game, and restore the original driver. Needs the machine idle-ish: captures are focus-verified and report NOFOCUS if you're typing elsewhere.

Inputs: map (required), profile (required), resX, resY, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools are cleanly separated by resource and action: actor probes/setters, asset probes/setters, imports, screenshots, and UDS/weather tools. The only likely confusion is between the generic unreal_probe_actor and the UDS-specialized uds_inspect_level for sky/weather actors, and between unreal_screenshot and weather_capture_phase_stills; detailed descriptions minimize misselection.

    Naming Consistency3/5

    The set is consistently snake_case and mostly uses an action-first pattern with an unreal_ prefix. However prefixes vary (uds_, ascent_, weather_, anim_), 'unreal_asset_probe' reverses the verb-noun order of 'unreal_probe_actor', and 'unreal_screenshot'/'ascent_unreal_status' are noun-like rather than verb-first, making the pattern readable but not uniform.

    Tool Count3/5

    20 tools is at the high end for an MCP server and feels heavy, but the surface spans several subdomains: asset registry, actor editing, import pipeline, UDS/weather, screenshots, and animation audit. The count is defensible but borderline.

    Completeness4/5

    The set covers the main asset and actor lifecycles: discover, probe, set, spawn/import, create material instances, duplicate maps, snapshot levels, and verify mutations. Gaps like generic asset/actor deletion and new-map creation exist, but tag-based cleanup and the script/verify escape hatches make them workable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to control and automate Unreal Engine through a native C++ Automation Bridge plugin. It supports a comprehensive range of tasks including asset management, actor manipulation, editor control, and blueprint graph editing.
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Drive the Unreal Engine 5.7 editor from any MCP client over a local TCP socket - 105 editor-automation tools (72 native C++ handlers + 33 bridge-side): actors, levels, materials, Blueprints, sequencer, rendering, asset import, editor Python. Native C++ plugin + thin Python bridge, ~50ms round-trips. MIT.
      100
      9
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Enables natural language interaction with Unreal Engine, providing 127 tools across 16 subsystems for tasks like actor manipulation, asset management, blueprint creation, and more, using built-in Python and Remote Control plugins.
      100
      8
      MIT