Skip to content

Troubleshooting

The bridge couldn’t reach the editor. Check that:

  • The editor is open and the Direktor plugin is enabled (Edit → Plugins).
  • The setup panel (Window → Direktor) shows the server listening. The port is 13579 unless another editor already held it (see Several editors on one machine).

You don’t need to restart your AI client. Start the editor and retry the call. The bridge reconnects on its own and refreshes the tool list.

”Unreal Editor did not answer within N s”

Section titled “”Unreal Editor did not answer within N s””

This is not the same as “not running”. The editor took the call but is busy: a long Python script, a shader compile, or a dialog waiting for you. The call may still complete, so check whether it already happened before you retry it. See The editor is busy, hung or crashed.

When something is going on in the editor, a tool result ends with a line that starts with [editor]. It reports compiles, progress tasks, open dialogs, new errors, Message Log changes, and whether a screenshot can be trusted. When the bridge has something to add, the line starts with [editor] Note:. The same data is in the result’s _meta.editor_notice. An idle editor adds nothing, so a missing line means there was nothing to report.

My client doesn’t show Direktor’s tools

Section titled “My client doesn’t show Direktor’s tools”
  • Confirm the config snippet is in the right file for your client (see Quick Setup) and that the JSON is valid.
  • Fully restart or reload the client so it re-reads its MCP config.
  • Make sure Node.js 18 or newer is installed and on your PATH — the bridge runs through npx. Test it directly with npx -y unreal-direktor-mcp in a terminal; it should start and wait for input.
  • Re-check Edit → Plugins for Direktor and make sure it’s enabled.
  • Restart the editor after enabling — the module loads at editor startup.

If every call stops responding with no error, a modal dialog in the editor is probably blocking the game thread (an unsaved-changes prompt, an import dialog, a confirmation box). Bring the editor to the foreground, dismiss the dialog, and the calls resume. Suspect this before assuming a crash.

Through the bridge, a call made while a dialog is open is held back rather than queued: the error says a dialog is waiting and carries call_sent: false, so retrying it after you close the dialog can’t run it twice.

Through the bridge, the assistant can also read the open dialog with editor(action="dialogs") and press one of its buttons with editor(action="respond_dialog"). A button that could lose work needs allow_destructive: true, so the assistant should ask you first. A call that the dialog held back is answered early, and its result comes back once, through respond_dialog or editor(action="released_call").

Have the assistant call these to find out which:

  • editor(action="status") shows what the editor is doing now: compiles, a progress task, an open dialog, PIE and the current level. blocks_calls and queued say whether calls are waiting. When the editor can’t answer, the bridge answers from the files the editor writes.
  • editor(action="wait_idle") checks once whether the editor is idle, and finish: true waits for every queued asset and shader compile. Through the bridge, timeout_s (up to 300) keeps checking for up to that many seconds and stops early if the editor crashes, exits or shows a dialog.
  • editor(action="diagnostics") lists crash reports from the project’s crash folders, and on UE 5.3+ this editor’s stalls.

If the editor crashed and the crash reporter is holding it open, or it has already exited, the bridge’s editor_recover tool can force-close it and relaunch the same project. With allow_hung: true it also handles an editor that has made no progress for 10 minutes. It loses unsaved work and runs only with confirm: true and the editor’s pid, so the assistant should ask you first. It refuses while the editor is busy, showing a dialog or responding, and it never touches another project’s editor or an automation run.

Each editor needs its own port. If 13579 is taken, Direktor listens on the next free port instead, trying up to 13588. An editor notification and the setup panel name the port that was taken.

The bridge finds the right editor by project, not by port. It binds to a project in this order:

  1. --project <value> in the bridge’s arguments.
  2. The DIREKTOR_PROJECT environment variable.
  3. The first folder holding a .uproject, walking up at most six folders from the bridge’s working directory.

With none of these, the bridge is not bound and follows the first editor it reaches. The value can be a .uproject path, a folder holding one, or the project name. A bound bridge reaches its project’s editor on whatever port it uses, and refuses a call that would reach another project’s editor (wrong_project). If two editors of the same project are open, it refuses and lists them: close the extra one, or set DIREKTOR_URL to the one you want.

Global client configs, such as Claude Desktop’s, don’t start in a project folder. With several editors open, add the project to that config:

{
"mcpServers": {
"direktor": {
"command": "npx",
"args": ["-y", "unreal-direktor-mcp"],
"env": { "DIREKTOR_PROJECT": "MyProject" }
}
}
}

Clients that connect to the URL directly, without the bridge, reach whichever editor holds that port. Point them at the port the setup panel shows for the editor you want.

In the editor, plain quit and exit are rejected, and in a play session they only end the session. To close the editor, use run_console_command with quit_editor. Through the bridge, the reply waits up to 60 seconds and says whether the editor exited, crashed or stopped on a dialog such as Save Changes.

viewport(action="screenshot") waits for shaders, materials and a queued sky light capture to finish, up to wait_timeout_s (15 seconds by default). Its render field says whether the frame was final, so check it before trusting the image. A stale file is never returned as new: you get SCREENSHOT_NOT_REPLACED instead.

SCREENSHOT_NOT_WRITTEN means the editor window is minimized. Restore it, or have the assistant call viewport(action="focus"), and retry.

A tool says it needs a plugin or a newer engine

Section titled “A tool says it needs a plugin or a newer engine”

Some tools depend on optional plugins or a minimum engine version:

  • gas needs the GameplayAbilities plugin enabled.
  • pcg needs the PCG plugin (UE 5.4+).
  • geometry / skeletal_mesh need GeometryScripting (UE 5.4+).
  • niagara and behavior_tree authoring are UE 5.3+.

Enable the named plugin (Edit → Plugins, then restart) or use a supported engine version. Version-gated tools return a guided message on older engines rather than failing silently.

Most mutating calls are a single undo step. Use Ctrl+Z, or have the assistant call editor(action="undo"). Use editor(action="history") to see the stack newest-first and confirm the top entry is yours before undoing. asset tool calls, level loads and saves, and run_python side effects are not undoable, which is why a version-controlled project is the real safety net.

On UE 5.3 and newer, Blueprint compiles happen outside the undo step. Undoing an edit leaves the Blueprint needing a compile, and play refuses with UNCOMPILED_BLUEPRINTS until it is compiled. Compile it, or start play with compile_blueprints: true.

The plugin ships its own docs — ask your AI client to call docs(action="search", query="..."), or browse them from the docs tool. For anything else, reach out through the support contact on the Fab listing.