Claude Code
Unreal + Claude Code toolkit
- Engine
- Unreal Engine 5, C++
- Tools
- Claude Code, MCP (Model Context Protocol), Python
- Type
- Personal R&D project
I wrote an MCP server that connects Claude Code to the Unreal editor, so the agent can do more than write C++. It can inspect the level, spawn and adjust actors, run automation tests and take screenshots. I review and play everything before it counts as done, and I used this setup to build the pieces below.
What I built
- The MCP server itself, which exposes those editor actions to Claude Code as tools.
- Tension Director: a C++ subsystem that turns player state into a 0 to 1 tension value and drives post-process, lights, Niagara and audio together, with a live UMG readout.
- A C++-driven Niagara swarm that reacts to the player, showing frame time and GPU cost on screen, with a quality switch to stay within budget.
- An automated perf capture that moves a camera through set points and writes frame time, draw calls and memory to CSV. It runs from the command line, or the agent can run it through MCP.