enginewright-unreal-mcp

mcp
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 10 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

In-editor MCP server for Unreal Engine: strict, verified, undoable tool calls for AI agents. No Python/Node required. Early preview.

README.md

Enginewright

Build it. Play it. Prove it.

Version
Unreal Engine
Platform
License: MIT

An Unreal Engine editor plugin that runs a Model Context Protocol (MCP) server inside the editor, so AI coding agents (Claude Code, Codex, Cursor, VS Code, Hermes or any MCP client) can read and edit your project, play it and check what is on screen. Every write is validated first and read back after.

An agent builds a menu widget, checks it with widget_render, opens it in Play In Editor and clicks its buttons

Above: an agent calls Enginewright tools on a fresh UE 5.8 project. It creates a menu widget and checks each change with widget_render, starts Play In Editor, opens the menu, reads the buttons with ui_state, clicks Play, and gets COVERED when it tries a button that another widget draws over.

Early preview (v0.5). One maintainer, APIs may change before 1.0. Use it on a project under version control and review what it changes. Changes: CHANGELOG.md. Supported Unreal features: docs/SUPPORT.md.

What's new in 0.5

  • text_overflow_audit finds UI text that does not fit its slot, per language and screen size. In the editor it measures the translated game text.
  • datatable_import brings a CSV or JSON file into a DataTable with a diff and dryRun; level_audit lists hidden, idle and placeholder actors.
  • Every new tool was used on a real game project before the release; the problems found there are fixed (stringtable_compare, asset_rename, datatable_import).
  • The server refuses requests from web pages of other sites (Origin check).
  • Use it together with Epic's MCP server: both in one editor, one agent.
  • Reliability round: all 132 tools were called on a real game project (996 checked calls); two editor crashes and 12 other problems were fixed, see docs/RELIABILITY_0.5.md.

Changes: CHANGELOG.md.

In 0.4.0

  • Localization loop: loc_gather takes a target through gather, compile and check while the editor is open, stringtable_compare reads .po and .locres files, game_run takes a culture, and font_coverage plus game_run glyphMisses find characters that would show as empty boxes.
  • Game testing: ui_key, pie_walk_to and pie_travel drive a running game, ui_state shows only what the player can use, and ui_prompts with input_map_list compares the on-screen hints with the real bindings.
  • Game runs and images: game_run takes shotNames, cvars and variants, and image_stats reports the brightness, histogram and difference of each screenshot.
  • Save games: savegame_get and savegame_set read and write a slot by reflection, and a slot with a game checksum is refused unless the game's own save function is passed.
  • Scene tools: scene_dress places hundreds of meshes in one undo step, and actor_preview photographs an actor class without Play In Editor.
  • MVVM: viewmodel_* tools edit view models and bindings, in an optional plugin.
  • Reliability sweep: every tool was run on a real game project with 11 fixes, see docs/RELIABILITY_0.4.md.

actor_preview: the same actor class with BeginPlay off and on, photographed without Play In Editor and put side by side by image_compose

Above: actor_preview builds an actor class like the game does (constructor, then BeginPlay and a few ticks) in a preview world and photographs it. Left: constructor only. Right: after BeginPlay the actor placed its own props. No Play In Editor, nothing left in the level.

The panel now shows the version, with buttons to the roadmap and the changelog on GitHub:

Enginewright panel 0.4.0 with the What's new / Roadmap and Changelog buttons

Full notes: v0.4.0 release notes.

Why

The focus is on edits you can trust:

  • Nothing extra to install. One native C++ editor plugin. No Python, Node, proxy process or Epic's experimental MCP plugin.
  • Strict validation. Unknown arguments, unknown properties or struct fields, wrong types and bad enum names are errors with a suggestion. They are never ignored.
  • All or nothing. If one value in a call is bad, nothing is written. Each write is one undo step and is read back and compared.
  • Rollback. batch runs several steps in one call; if a step fails, the earlier steps are undone.
  • Safe by default. Asset edits are refused while Play In Editor runs. Deleting an asset that is still used is refused, and the reply lists who uses it. A click on a button that another widget covers is refused. The server listens on localhost only, needs a per-project token and refuses requests from web pages of other sites.

Compared with Epic's MCP toolset in UE 5.8

UE 5.8 ships an experimental MCP toolset with a larger tool catalog than Enginewright. Enginewright makes a different trade-off. In our use of the 5.8 toolset, some writes reported success while a misspelled key was silently ignored, and some asset lookups gave misleading results during Play In Editor. Enginewright rejects those cases with an error. Epic's toolset exists only in 5.8; Enginewright does not depend on it. You can run both in the same editor: docs/WITH_EPIC_MCP.md.

Screenshots

Fresh install: doctor reports a healthy editor widget_render: a Widget Blueprint rendered to PNG without Play In Editor
Fresh install. The prebuilt zip in a blank UE 5.8 project; doctor reports a healthy editor. widget_render. A Widget Blueprint as a PNG at any resolution, no Play In Editor needed.
ui_click refuses a covered button game_run screenshots at two resolutions, put side by side by image_compose
ui_click in Play In Editor. The click is checked like a real one: a button under another widget is reported as COVERED. game_run + image_compose. The game started with a map URL at two resolutions, its screenshots collected and put side by side.

Supported versions

Unreal Engine Platform Status
5.8 Windows (Win64) Tested (prebuilt zip and source)
Other versions, Mac, Linux — Not tested yet

Install (about 5 minutes)

These steps were run as written on a new, empty UE 5.8 project (no C++ code) with the v0.3.1 zip.

Prebuilt zip (Blueprint or C++ projects, UE 5.8 Win64)

  1. Download Enginewright-<version>-UE5.8-Win64.zip from Releases. Optional: compare its SHA-256 with the one in the release notes (Get-FileHash <zip> in PowerShell).

  2. Close the editor. Unzip into your project's Plugins/ folder (create the folder if it does not exist), so you get <YourProject>/Plugins/Enginewright/Enginewright.uplugin.

  3. Open the project. The plugin is enabled by default; nothing is compiled. The Output Log prints
    Enginewright: MCP server on http://127.0.0.1:3100/mcp (… tools). Client configs: <YourProject>/Saved/Enginewright/clients.

  4. Connect your client. Ready-to-paste configs (URL + token) are in <YourProject>/Saved/Enginewright/clients/:

    Client File What to do
    Claude Code claude-code.txt Run the command once in your project folder (or merge claude-code.mcp.json into .mcp.json).
    Codex codex.toml Append to ~/.codex/config.toml.
    Cursor cursor.mcp.json Merge into .cursor/mcp.json.
    VS Code vscode.mcp.json Merge into .vscode/mcp.json.
    Hermes hermes.yaml Merge under mcp_servers in your Hermes config.yaml.

    The files hold your project's token: do not commit them (Saved/ is normally ignored). An agent that is already connected can print them with the client_config tool.

  5. Ask your agent to call doctor. It reports the engine version, the server, the open level and any problems, each with its fix. On a new project it usually warns that the editor slows down in the background (an Unreal default that makes Play In Editor tests slow); ask the agent to apply the fix it names (settings_set on EditorPerformanceSettings), then doctor reports healthy: true.

  6. Try it: ask the agent to create a Widget Blueprint with a button and show it with widget_render.

From source (C++ projects, or to build it yourself)

  1. Copy Plugins/Enginewright into your project's Plugins/ folder.
  2. Build your project's editor target (or open the .uproject and accept the rebuild prompt).
  3. Continue with step 3 above.

To use another port, change it in the Enginewright panel, or set the ENGINEWRIGHT_PORT environment variable before starting the editor (the variable wins).

The Enginewright panel

The status bar shows Enginewright :3100 (n) at the bottom right: a green dot while the server listens, red when it is off or the port is in use, and the number of clients seen in the last 5 minutes. Click it (or Tools > Enginewright) to open the panel:

Status bar: Enginewright :3100 (1) with a green dot

The Enginewright panel: server, token, client configs, clients, tool categories, read-only mode, log level, recent calls

Both pictures were taken by the editor_capture tool.

  • turn the server on or off, change the port;
  • show, copy or renew the token; copy a ready config for Claude Code, Codex, Cursor, VS Code or Hermes with one click;
  • see which clients talked to this editor and the last calls with their result and time;
  • turn whole tool categories off, or switch to read-only mode (tools that change the project are refused);
  • set the Output Log level, run doctor.

The same settings are in Project Settings > Plugins > Enginewright, saved per user and project. Agents can read and change them with settings_get / settings_set on EnginewrightSettings, so read-only mode is a guard against accidents, not a security boundary.

Tools

The client sees three meta tools: search (find a tool in plain words), describe (read its arguments) and call (run it). Behind them:

Area Tools
Objects object_get, object_set
Assets asset_find, asset_exists, asset_references, asset_duplicate, asset_rename (updates referencers, removes the redirector, reports text and IDs that still name the old asset; dryRun to preview), asset_delete (refuses assets still in use; says why per asset: which asset references it, open editor, unsaved changes; force explained in the tool text), asset_save, asset_import (texture, sound, font, mesh, while the editor is open; meshes take scale, rotation, translation, meshType)
Types and data enum_create, struct_create, type_info, datatable_create, datatable_get, datatable_set_rows, datatable_remove_rows, datatable_rename_row, datatable_import (CSV or JSON file into a table: upsert, strict field check, dryRun shows added / changed / removed rows first)
Blueprints blueprint_create, blueprint_info (lists inherited C++ components too), blueprint_set_component_defaults (defaults of an inherited or Blueprint component, e.g. the Mesh of a Character; checked, read back, one undo step), blueprint_compile, blueprint_add_variables, blueprint_remove_variables, blueprint_add_component, blueprint_remove_component, blueprint_graph_read, blueprint_add_node, blueprint_connect, blueprint_set_pin, blueprint_remove_node
Materials, meshes, textures material_create, material_info, material_add_expression, material_connect, material_instance_create, material_instance_set, mesh_info (local bounds, pivot offsets, size, without spawning an actor), mesh_set_material, texture_info
Enhanced Input input_action_create, input_context_create, input_map, input_unmap, input_context_info, input_map_list (which keys are bound to which actions, grouped by action and device; from an asset, or live from the Play In Editor player with its applied contexts and priorities, runtime remaps included)
Level level_open, level_save, actor_find, actor_spawn, actor_set_transform, actor_delete, actor_bounds, world_trace, class_measure (size of a class or Blueprint without placing it), scene_dress (set-dress an actor or a point with hundreds of meshes in one undo step: ring or ellipse, line, grid or scatter; several meshes with weights, seed, rotation and scale jitter, ground snapping, overlap and avoid checks; instanced or separate actors; can write the placements into a DataTable such as a game's dressing table), actor_preview (builds an actor class that sets itself up in code, construction script and BeginPlay, in a private preview world or temporarily in the open level, takes a PNG from a framed camera, a given one or the actor's own game camera (same layout as a game_run shot) and cleans up: no Play In Editor, no game_run)
Play In Editor pie_start (1-4 players; standalone, listen or client; waits until every player has a pawn), pie_stop, pie_state, pie_input (synthetic Enhanced Input action or key per player), pie_travel (go to another map with URL options such as ?game=...?listen, checked: the map must exist, options are validated; waits until the new map is loaded and every player has a pawn), pie_walk_to (walks a player's pawn to a world position with movement input; navmesh path when the level has one; reports reached, STUCK or TIMEOUT with the last position), screenshot (what a player sees, UI included, or the editor viewport), screenshot_ab (same view before and after a change, with the share of changed pixels)
Run the game game_run (the game in -game mode or a packaged exe, with a map URL that is passed unchanged and checked against the game's log; one run per resolution; verdict from log patterns; only the log lines you ask for; new PNG files collected with their real size; screenshot runs can end by PNG count; refuses to start the old C++ code after a Live Coding patch; pauses the editor's realtime viewports while the game runs; culture starts the game with -culture=<x>; each run counts the characters Slate could not draw, glyphMisses; shotNames ends the run when the named screenshots exist; cvars and variants run the game with console variables, e.g. exposure, and report image_stats per screenshot), game_run_status (follow or stop a run), image_compose (PNG files side by side in one labelled image, read back), image_stats (mean brightness, luma histogram, saturation, clipped black / white, and the difference to a reference image)
Save games savegame_get (a SaveGame slot's class and field values, or the list of slots; says when the file carries a game checksum or footer), savegame_set (writes fields by reflection, all or nothing, saves and reads back from disk; a slot with a game footer is refused unless you pass the game's own save function, so the checksum is never broken)
Multiplayer pie_actors (what the server and each client see: count, net roles, owner, property values; can wait for replication), pie_net_emulation (lag, loss, duplicates, reordering; profiles off / average / bad)
Readability screen_coverage (how big an actor looks from a player's camera: pixels and share of the screen)
Performance perf_capture (frame, game, render, RHI and GPU times with percentiles, hitches, draw calls; which side bounds the frame), perf_scene (cost census of the world: meshes, lights, shadows, translucency, widgets), perf_gpu_profile (costliest GPU passes of one frame)
Movie Render Queue mrq_render (a Level Sequence to PNG frames, optionally MP4; horizontal, vertical, square or 4k presets), mrq_status (progress of the last render)
UMG widget_create, widget_tree, widget_get, widget_add (widget + properties + slot layout, checked), widget_set, widget_remove, widget_render (a Widget Blueprint or a C++ UserWidget class to PNG at any resolution, no Play In Editor), viewmodel_list, viewmodel_add, viewmodel_bind, viewmodel_unbind, viewmodel_remove (MVVM view models and view bindings of a Widget Blueprint; needs the optional EnginewrightMVVM plugin, see below), text_overflow_audit (which TextBlocks do not fit their slot, per language; Auto Wrap and ScaleBox are not false alarms)
Runtime UI (UMG + CommonUI) ui_state (widgets in a player's viewport, CommonUI activatable widgets and stacks, and the buttons the player can use now: visible, on the top page of its stack, with label (the word, not an icon glyph), every text, tooltip, layer, selected state and rectangle; includeHidden adds the closed or covered ones with the reason), ui_key (a key or mouse button through Slate to the focused widget, for "press any key" panels; can move focus first), ui_click (by name, label, any text inside the button or tooltip, so a gear glyph works; refuses a covered button, or fires the click directly), ui_open / ui_close (show one screen in Play In Editor, or push it onto a running CommonUI stack), ui_input_type (switch a player to gamepad / mouse and keyboard / touch to check glyphs and focus), ui_prompts (compare the hints on screen with what the input is really bound to: CommonUI action widgets, key-like texts, and a check list of {prompt, action} that answers OK / MISMATCH / PROMPT_NOT_SHOWN / ACTION_NOT_BOUND for the current input type), ui_input_audit (CommonUI input wiring: missing action rows, Enhanced Input actions that never fire, duplicate actions, no input data asset). CommonUI is optional: it is used when the project has it.
Localization loc_gather / loc_gather_status (gather, export, import, compile and check a localization target with the GatherText commandlet while the editor is open; verdict from both exit codes and the log), stringtable_list, stringtable_get, stringtable_set (String Table assets), stringtable_compare (source String Table or CSV vs a translation String Table, .po or .locres: missing, extra, empty, untranslated, format argument / rich text tag differences, translations of an older source text, fuzzy entries), font_coverage (characters of a language or a text that a Font asset or a .ttf / .otf cannot draw: empty boxes in the game), loc_culture (preview another language in the editor; a game started by game_run gets its language from game_run's culture)
Gameplay Tags gameplay_tags_list, gameplay_tag_add (to a tag ini, strict names), gameplay_tag_remove (refused while assets use the tag)
Build and tests live_coding_compile, editor_restart (save, close, optionally build C++, reopen), build_status, automation_list, automation_run
Checks validate (compile Blueprints, data validation, broken references, map check), id_audit (IDs used but never defined, and the reverse), key_audit (hard-coded input keys in C++ and Blueprints), asset_search_text, level_audit (hidden actors, visible static meshes that do nothing, placeholder / kit meshes in a map; read-only)
Editor editor_state, console_command, log_read, log_wait (wait for a log line), settings_get, settings_set, doctor, client_config, editor_capture (the editor window or the Enginewright panel to PNG)
Multi-step batch (atomic, rolls back on failure)

Optional: MVVM tools

The viewmodel_* tools edit the view models and view bindings of a Widget Blueprint (Epic's UMG Viewmodel plugin). Their code lives in a second plugin, Plugins/EnginewrightMVVM, so Enginewright itself loads and works in a project that does not use MVVM, and it never turns the MVVM plugin on for you.

  • Without it the tools are still listed, and answer MVVM_NOT_ENABLED with the steps below.
  • To use them: unzip EnginewrightMVVM-<version>-UE5.8-Win64.zip from the release (or copy Plugins/EnginewrightMVVM from this repo) next to Plugins/Enginewright, then enable EnginewrightMVVM (it enables ModelViewViewModel) in Edit > Plugins or in the Plugins list of the .uproject, and restart the editor. A C++ project builds it with the rest.

Optional: compiling while the editor is closed

The editor locks its own DLLs, so a full C++ build of the editor target needs the editor closed. From inside the editor, editor_restart with build: true does that for you (save, close, build, reopen). For agents that work from a shell while the editor is closed, the zip also contains Plugins/Enginewright/Scripts/ewtool.py (Python 3, standard library): build waits for locked DLLs and names the process that holds them, and runs UnrealBuildTool detached, so the build finishes even when the calling process is killed. You do not need Python for anything else. See docs/EWTOOL.md.

Running the tests

The tests in tests/ are plain Python 3 scripts (standard library only; Python is needed for the tests, not for the plugin). They talk to a running editor. Use a separate, empty test project: the suites create and delete assets under /Game/_EWTest and add (then remove) actors in the open level. They create their own fixtures, so a new blank project works. Enable the CommonUI plugin in the test project for the CommonUI checks of the ui suite.

# bash / zsh
export ENGINEWRIGHT_TEST_PROJECT="/path/to/TestProject"
# PowerShell
$env:ENGINEWRIGHT_TEST_PROJECT = "D:\Projects\TestProject"

python tests/run_all.py             # every suite except build
python tests/run_all.py smoke core  # only these suites
python tests/run_all.py build       # Live Coding, automation tests, full C++ rebuild (restarts the editor)

The tests read the token from <project>/Saved/Enginewright/token. If you changed the port, also set ENGINEWRIGHT_URL (default http://127.0.0.1:3100/mcp). tests/smoke.py is read-only and safe on any project.

Building a release zip

python tools/package.py --engine "C:/Program Files/Epic Games/UE_5.8"

It runs RunUAT BuildPlugin for Win64, checks the result (editor DLL present, no debug or intermediate files) and writes dist/Enginewright-<version>-UE5.8-Win64.zip with its SHA-256 (also in <zip>.sha256). tools/make_demo.py records the demo GIF and screenshots above from a running editor (maintainers only; needs Pillow).

Contributing and requesting tools

This is a one-maintainer project in early preview: requests and pull requests are read in order, without promised dates.

Roadmap

Enginewright roadmap: foundations 0.1 to 0.4 done, 0.5 this release, 0.6 next, then toward 1.0

Version Status Main items
0.4 done Localization loop, game testing tools, save games, scene tools, reliability sweep
0.5 this release Text overflow, DataTable import and level audits; fixes from a real game run; Origin check; setup with Epic's MCP server; reliability round on all 132 tools
0.6 next Art pipeline: LOD import, FBX options, material variants, art budget check, capture tools
0.7 - 0.11 planned Scene checks, demo builds and play testing, skeleton and animation, AI testing, gameplay authoring
1.0.0 planned Headless mode, error code reference, API freeze and stability promise, example project

Details and how requests get onto it: docs/ROADMAP.md. Requests come in through the Tool request form.

License

MIT

Yorumlar (0)

Sonuc bulunamadi