# Unreal MCP in 5.8 Cause an Unreal Automation Crash Hidden Behind HTTP 502 Code

**URL:** <https://forums.unrealengine.com/t/unreal-mcp-in-5-8-cause-an-unreal-automation-crash-hidden-behind-http-502-code/2735582>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, CPP, epic-for-indies\
**Created:** [July 14, 2026, 8:50am UTC](https://forums.unrealengine.com/t/unreal-mcp-in-5-8-cause-an-unreal-automation-crash-hidden-behind-http-502-code/2735582 "2026-07-14T08:50:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexqvqq](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexqvqq/32/1189748_2.png) [@Alexqvqq](https://forums.unrealengine.com/u/Alexqvqq)\
**Post date:** [July 14, 2026, 8:50am UTC](https://forums.unrealengine.com/t/unreal-mcp-in-5-8-cause-an-unreal-automation-crash-hidden-behind-http-502-code/2735582/1 "2026-07-14T08:50:44Z")

</div>

While running Unreal Automation tests through an MCP integration, the runner returned HTTP 502 and never produced a structured test result.

The actual failure was caused by a wrong Automation test. A test fixture used:

```cpp
Rows.Add(Rows[0]);

```

`Rows[0]` references memory inside the same `TArray`. If `Add` reallocates the array, that reference becomes invalid. UE 5.8 detected this container self-reference and triggered an assertion, crashing the Editor.

Because the MCP server runs inside the Unreal Editor process, it also stopped responding after the crash. The external MCP gateway could only report a generic HTTP 502.

This caused a problem that AI-agent couldn’t detect the Unreal Editor crash automatically by itself.

When the AI-agent finally noticed the problem, it diagnosed that by checking:

- the Editor PID and responsiveness;
- the Automation log;
- the last test started;
- the fact that an earlier EMS round-trip test had already passed.

After rebuilding and restarting the Editor, the test completed normally.

The main lesson is that an MCP HTTP 502 may be a secondary symptom of an Editor crash. An external automation supervisor that tracks the Editor process, last test name, crash artifacts, and run status would make this much easier to diagnose.
