Skip to content

Editor setup and development

For a no-editor first run, start with the catalog CLI.

Check the editor plugin

Use Unreal Engine 5.8 (the version declared by the test project), an Unreal C++ project, and the platform's Unreal C++ build toolchain. The command below is for macOS. You need Python 3.11+ to run the standalone health check.

  1. Copy the contents of unreal-plugin/ to <YourProject>/Plugins/BiomeMCP/. The checkout also includes uetestproject/ with the plugin already enabled and a copy of its source.
  2. Build the project's Editor target. On macOS, for the bundled test project and with UNREAL_ENGINE_ROOT pointing to your UE 5.8 installation:
"$UNREAL_ENGINE_ROOT/Engine/Build/BatchFiles/RunUBT.sh" uetestprojectEditor Mac Development \
  -Project="$(pwd -P)/uetestproject/uetestproject.uproject" -NoUBA
  1. Open the project in Unreal Editor, enable BiomeMCP if needed, and restart the editor if prompted. Look for [BiomeMCP] in the Output Log. The default TCP port is 9800. Use the actual port from the log if the plugin picked another one.

On Apple Silicon, use a native Editor when loading an arm64 build. If you launch a universal Editor from a Rosetta shell, prefix its executable with /usr/bin/arch -arm64. The build command above resolves the physical project path so macOS can find the built libraries even from a checkout reached through a symlink. 4. Send a framed ping directly to the running plugin. Change the port below if needed. This example uses only Python's standard library.

python3 - 9800 <<'PY'
import json
import socket
import struct
import sys

request = json.dumps({"id": "quick-check", "cmd": "ping"}).encode("utf-8")
with socket.create_connection(("127.0.0.1", int(sys.argv[1])), timeout=5) as conn:
    conn.sendall(struct.pack(">I", len(request)) + request)
    with conn.makefile("rb") as stream:
        size = struct.unpack(">I", stream.read(4))[0]
        reply = json.loads(stream.read(size))

if not reply.get("ok") or reply.get("data") != "pong":
    raise SystemExit(f"Unexpected plugin reply: {reply}")
print(reply["data"])
PY

Expected output is pong. This verifies the editor listener, not the stdio MCP server.

Architecture

The intended path is MCP client → Python stdio server → loopback TCP → C++ editor plugin. On the TCP leg, each UTF-8 JSON message is prefixed by a four-byte big-endian length. Socket workers handle ping directly. Other commands are queued for the game thread.

The plugin tries port 9800 first by default and scans for an available port if needed. The Python bridge reads UNREAL_MCP_HOST (default 127.0.0.1), UNREAL_MCP_PORT (default 9800), and UNREAL_MCP_CONNECT_TIMEOUT (default 5 seconds). It does not discover the fallback port automatically.

Current limitations

  • The stdio entry point calls register_all(). The generated wrappers call bridge.send() without first connecting that bridge. Do not treat successful tool discovery as a live connection or configure a client expecting these tool calls to work.
  • The server manifest refers to a sibling biome-mcp checkout and to biome-game-engine-core-mcp for the optional core extra. With the current public sibling checkouts, uv sync reports a conflict between the local biome-mcp path and the Git dependency declared by biome-editor-core. The catalog-only setup skips this resolution.
  • The CLI's doctor calls a missing doctor.run_checks() and raises AttributeError. Use the direct plugin check above. The python -m unreal_mcp.doctor module, if its dependencies are installed, checks a TCP connection but does not execute an MCP tool.
  • Python CI runs lint, Python tests, and DSL freshness checks. Check the linked workflow for the branch's current status.

Generated sources

The catalog originates in dsl/unreal-tools.biome. The generator needs Python, Node.js 22+ with npm, and sibling checkouts of biome-game-engine-core-mcp (shared generator and constructs) and biome-dsl (compiler). The full check requires the TOOLCHAIN revision declared in dsl/biome.project. Build the compiler with npm ci && npm run build from its implementations/typescript directory. The shared core checkout must contain dsl/product_codegen.py. The CONSTRUCTS … AT revision pins the constructs, not the checkout for the Python generator. With those dependencies in place, run from the Unreal repository root:

python3 dsl/generate.py --check

python3 dsl/generate.py --native --check checks the native outputs only, but still uses the DSL compiler to read the tool catalog. Do not edit generated output by hand.