ue-mcp-native-cpp
Skill by db-lyon
ue-mcp-native-cpp guides an AI assistant through writing native C++ UCLASSes in Unreal Engine projects with ue-mcp. It covers class creation, file edits, full builds, Live Coding and module dependencies. It is written for developers who want agents to author Unreal C++.
Install ue-mcp-native-cpp
Built from the published package, never by AI.
git clone --depth 1 https://github.com/db-lyon/ue-mcp /tmp/ue-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/ue-mcp/skills/ue-mcp-native-cpp ~/.claude/skills/ue-mcp-native-cppRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/db-lyon/ue-mcp /tmp/ue-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ue-mcp/skills/ue-mcp-native-cpp ~/.gemini/antigravity-cli/skills/ue-mcp-native-cppAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through writing and modifying native C++ UCLASSes in an Unreal Engine project through the ue-mcp project tool. It describes a loop: create a class with create_cpp_class, read the generated files, append declarations and bodies with write_cpp_file, then compile. The project tool wraps GameProjectUtils::AddCodeToProject and ILiveCodingModule so agents can work end to end without Python or the editor UI.
The skill explains when to run a full build instead of Live Coding, such as after adding a new UCLASS, and how to add module dependencies to a Build.cs file with add_module_dependency. It also covers engine source lookup tools and common pitfalls. It is aimed at developers using ue-mcp who want an AI assistant to write native Unreal C++ and test the resulting class in the editor.
Written from the project's SKILL.md and checked against it.
What it can do
- create_cpp_classWrites a .h and .cpp pair using the same template as File, New C++ Class.
- write_cpp_fileWrites full file contents to the Source/ tree for .h, .cpp, .inl and .cs files.
- read_cpp_headerReads a generated header file so the assistant can inspect it before editing.
- read_cpp_sourceReads a generated source file so the assistant can inspect it before editing.
- list_project_modulesLists the project's native modules with their name, host type and source path.
- live_coding_compileHot-patches method bodies in existing UCLASSes without restarting the editor.
- add_module_dependencyAdds a module to a Build.cs file and avoids duplicates, creating the AddRange block if needed.
- read_engine_headerParses a header from Engine/Source to show how Unreal implements a feature.
- find_engine_symbolSearches engine runtime headers for a given symbol.
- search_engine_cppSearches engine .h, .cpp and .inl files in chosen engine trees for a query.
What you need
- An Unreal Engine project
- ue-mcp with the project tool
- UnrealBuildTool on the host
- MSVC or Clang on the host
Try asking
- Create a new native UCLASS called BotSpawner in my Unreal project
- Add a UPROPERTY and a UFUNCTION to my existing C++ class
- Add the Engine module dependency to my project's Build.cs file
Good to know
- Live Coding does not reliably register brand-new UCLASSes, so a full build and editor restart are needed.
- write_cpp_file only writes inside Source/ and only .h, .cpp, .inl and .cs files.
- Intermediate/ and Binaries/ are regenerated and should not be edited.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/ue-mcp-native-cpp/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to ue-mcp-native-cpp
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
ue-mcp-native-cpp: common questions
When should I use a full build instead of Live Coding?
Use a full build with project(action="build") for new UCLASSes. The skill also says UFUNCTION reflection macros and UPROPERTY annotations usually need a full build.
Can the assistant write files anywhere in my project?
No. write_cpp_file refuses writes outside the Source/ tree and rejects extensions other than .h, .cpp, .inl and .cs.
How do I check that Unreal sees my new class?
The skill suggests asset read_properties or reflection reflect_class with the class name. It also suggests blueprint create with a parentClass path to subclass it.
How do I install ue-mcp-native-cpp?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ue-mcp-native-cpp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ue-mcp-native-cpp safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ue-mcp-native-cpp?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
