Where to look first
| What | Where |
|---|---|
| Is the plugin loaded? | The status bar at the bottom right of the level editor. MCP off: loaded, native HTTP off. MCP :3000 (N): native HTTP on with N clients. No indicator: the plugin didn’t load. |
| Plugin log | Window › Output Log, filtered by LogEngineWire and LogMcp. The native HTTP server logs as LogMcpNativeTransport, one line per call naming the internal tool and action it ran. The same lines are in <YourProject>/Saved/Logs/<YourProject>.log. |
| stdio server log | stderr, shown in your client’s MCP log. Claude Desktop: %APPDATA%\Claude\logs\ or ~/Library/Logs/Claude/. Claude Code: claude --debug or /mcp. Set LOG_LEVEL=debug for connection details. |
| The failing call | The reply’s errorCode, message and nextCall. Send the nextCall, adjusted, instead of guessing. |
The plugin doesn't build or load
| You see | Fix |
|---|---|
| “Missing Modules … Engine modules cannot be compiled at runtime. Please build through your IDE.” | Generate project files, build the Editor target in Visual Studio, Rider or Xcode, then open the project. |
| “The following modules are missing or built with a different engine version: EngineWire” | Answer Yes to rebuild. Binaries built for another engine minor or platform won’t load; rebuild from source for your engine (reported in #195 and #166). |
| No way to compile at all | The project is Blueprint-only. Install the prebuilt plugin from Fab, add a C++ class (Tools › New C++ Class), or use prebuilt binaries. |
| “Plugin ’EngineWire’ failed to load” on the first open | Close the editor and open the project again; it loads once the build has finished. |
| Compile errors after an update | Delete Plugins/EngineWire/Binaries and Intermediate, then rebuild. Make sure the plugin folder was replaced, not merged with the old one. Upgrading from 0.6.0-beta-e or earlier, remove the old Plugins/McpAutomationBridge/ folder: its settings still load into EngineWire. |
| Compile errors on your engine version | Open an issue with the engine version and the first errors from the build log. Known version issues are on engine versions. |
| The build runs out of memory | The plugin has many source files. Close other programs, or lower UnrealBuildTool’s parallel job count. |
| A capability says its engine plugin is missing | Enable that engine plugin. PCG support is compiled in only when the project itself enables PCG: enable it and rebuild. |
A native HTTP client can't connect
Work down the list:
- Is the editor running with the project open? The native server lives inside the editor, so a client started first simply fails. Reconnect it once the editor is up (in Claude Code, through
/mcp), or use the stdio route, which keeps the session so the client never has to reconnect. - Does the status bar read
MCP :3000? If it readsMCP off, tick Enable Native MCP Server and restart the editor. The Fab build ships with it off. - Is the port free?
Failed to start Native MCP server on port 3000in the Output Log means another program holds it. Change Native MCP Port (or setMCP_NATIVE_PORTfor the editor process) and update the client URL. - Is the URL right?
http://127.0.0.1:3000/mcp, including/mcp, using the client’s Streamable HTTP transport (Claude Code calls ithttp). Clients limited to the old SSE-only transport won’t work.
Then match the HTTP status:
| Status | Meaning | Fix |
|---|---|---|
401 Invalid capability token | The X-MCP-Capability-Token header is missing or wrong | Copy Saved/MCP/capability-token again, without a trailing newline. Deleting the file or changing Capability Token changes the token. |
401 Capability token does not match this session | The token changed mid-session | Reconnect the client |
| 400 | Unsupported MCP protocol version | Update the client, or use the stdio route |
403 Invalid Origin | The request came from a web page | Browser origins are accepted only while token auth is on |
| 503 | More than 32 simultaneous connections | Close clients you don’t use |
The native server keeps at most 16 sessions. When all are taken, one idle for two minutes gives up its slot, and any session expires after an hour without activity. Reconnect after an expiry.
Every call answers NOT_CONNECTED
The stdio server starts without the editor and relays to it on each call, so the tool appears even when nothing is running. Calls then answer NOT_CONNECTED: the Unreal Editor is not running (nothing answers at http://127.0.0.1:3000/mcp).
- Start the editor with the plugin and check that the status bar reads
MCP :3000.MCP offmeans the native server is off: tick Enable Native MCP Server and restart the editor (the Fab build ships with it off). - Check the URL. The server dials
UNREAL_MCP_URL, elsehttp://127.0.0.1:3000/mcp. If you changed Native MCP Port, setUNREAL_MCP_URLto match. - Was the token refused? A
NOT_CONNECTEDthat ends ininitialize answered HTTP 401means the server sent no token or the wrong one. PointUE_PROJECT_PATHat the project that’s open, or setMCP_AUTOMATION_CAPABILITY_TOKEN.
Running the stdio server in Docker? The editor’s native server listens on 127.0.0.1, so the container needs host networking (practical on Linux) and the token passed as MCP_AUTOMATION_CAPABILITY_TOKEN. Use -i without -t: a TTY corrupts the MCP stream.
The wrong tools show up
- 23 tools instead of
unreal: that’s a 0.5.x plugin or server. Update the plugin to 0.6; ifnpxstill runs a cached 0.5.30, useunreal-engine-mcp-server@latestonce. unreallisted twice: the client has both routes configured. Keep one.- The stdio server doesn’t start:
node --versionmust be 20.19 or later. On Windows, launch throughcmd:"command": "cmd","args": ["/c", "npx", "-y", "unreal-engine-mcp-server"].
Calls fail or run long
| Code | Why | Fix |
|---|---|---|
UNKNOWN_CAPABILITY, UNDECLARED_PARAMETER (repeatedly) | The model guesses names instead of following the workflow | Add to your prompt or project instructions: “Use the unreal tool: search, then describe, then execute, and copy each nextCall.” |
CONSENT_REQUIRED | Expected for deletes and some writes | The model sends the consentGrant from describe back as consent |
PATH_NOT_PERMITTED | The path is outside /Game, /Engine, /Script, /Temp, /Niagara and the content mounts the connected editor reports | Use a path under the project’s mounts |
COMMAND_BLOCKED | A chained or blocked console command | Send one command per call |
RESULT_TOO_LARGE | A reply over about 100,000 characters (6,000,000 for images) | Narrow it with a filter, a folder or limit |
EDITOR_BLOCKED | The game thread hasn’t ticked for 15+ seconds, almost always a modal dialog | Dismiss the dialog in the editor and retry |
Long operations such as lighting builds, imports, packaging and renders: a call still open after 27 seconds answers anyway, with a taskId and state: "running". The work goes on. Read its result once the editor is done:
{ "operation": "configure", "action": "get_task_result", "params": { "taskId": "num:12" } }
A call sent with an idempotencyKey can also be repeated with the same key once it is done, and answers with the real result instead of running twice.
Slow editor or Play In Editor at a few frames per second? Unreal throttles a background editor. Turn off Editor Preferences › General › Performance › Use Less CPU when in Background, and don’t minimise the editor.
Questions
What should I include when asking for help?
LogEngineWire and LogMcp lines. Remove your capability token from anything you paste. Post in Issues or Discussions.