mcp-server-unreal-engine: Instructions file for Codex

AGENTS.md

mcp-server-unreal-engine AGENTS.md is an instructions file for Codex, OpenCode from andrewkorot/mcp-server-unreal-engine. It costs 1,114 tokens per session, scanned A, a copy of unreal-mcp AGENTS.md, MIT.

Project instructions for an Unreal Engine 5 MCP server: a TypeScript service and a C++ Unreal plugin that work together. MCP is a standard way for AI assistants to call tools provided by another program.

In plain words
What is it for?
Use it when adding or debugging Unreal Engine tools, tracing requests between the TypeScript server and C++ plugin, finding relevant tests, or following the project's structure and conventions.
Why use it?
It gives developers a map of the codebase, including tool definitions, handlers, the bridge between processes, tests, and maintenance scripts.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is andrewkorot/mcp-server-unreal-engine's own configuration. It tells Codex and OpenCode how to work on mcp-server-unreal-engine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-server-unreal-engine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to andrewkorot/mcp-server-unreal-engine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/andrewkorot/mcp-server-unreal-engine/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/andrewkorot/mcp-server-unreal-engine

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-server-unreal-engine AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/andrewkorot/mcp-server-unreal-engine/agents-md.svg)](https://agentmods.dev/instructions/andrewkorot/mcp-server-unreal-engine/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/andrewkorot/mcp-server-unreal-engine/agents-md"><img src="https://agentmods.dev/badge/instructions/andrewkorot/mcp-server-unreal-engine/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,114 This file is loaded in full into every session.
When invoked 1,114 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01114 $0.01114
Opus 5 $0.00557 $0.00557
Sonnet 5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

Measured 8d ago against content hash ff710d226c17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mcp-server-unreal-engine AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to unreal-mcp AGENTS.md — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PROJECT KNOWLEDGE BASE

Generated: 2026-02-24 19:23:00 IST Commit: 02f9b17 Branch: main

OVERVIEW

MCP server for Unreal Engine 5 (5.0-5.7). Dual-process: TypeScript MCP server + C++ Bridge Plugin. 36 consolidated tools with action-based dispatch. Version 0.5.18.

STRUCTURE

./
├── src/                    # TS Server (NodeNext ESM)
│   ├── tools/              # Tool definitions + handlers
│   │   ├── consolidated-tool-definitions.ts  # Action enums + schemas (212KB)
│   │   ├── consolidated-tool-handlers.ts     # Tool routing
│   │   └── handlers/       # Domain handlers (40 files)
│   ├── automation/         # Bridge Client & Handshake (9 files)
│   ├── utils/              # Normalization & Security
├── plugins/               # UE Plugin (C++)
│       ├── Source/         # Native Handlers (56 files) & Subsystem
│       └── Config/         # Plugin Settings
├── tests/                  # Integration + Unit Tests
│   ├── test-runner.mjs     # Custom MCP test runner (1100+ lines)
│   └── mcp-tools/          # Domain-specific test files (core/world/authoring/gameplay/utility)
└── scripts/                # Maintenance & CI Helpers

WHERE TO LOOK

Task Location Notes
Add MCP Tool src/tools/consolidated-tool-definitions.ts Add action enum + schema
Route Tool src/tools/consolidated-tool-handlers.ts Register in registerDefaultHandlers()
Implement Handler src/tools/handlers/*-handlers.ts Call executeAutomationRequest()
Add UE Action plugins/.../Private/*Handlers.cpp Register in Subsystem::InitializeHandlers()
Fix UE Crashes McpAutomationBridgeHelpers.h Use McpSafeAssetSave for 5.7+
Path Handling src/utils/normalize.ts Force /Game/ prefix
CI Workflows .github/workflows/ All actions use commit SHAs (secure)
Version Sync .github/workflows/bump-version.yml Updates 4 files atomically

CONVENTIONS

Dual-Process Flow

  1. TS (MCP): Validates JSON Schema → Executes Tool Handler.
  2. Bridge (WS): TS sends JSON payload → C++ Subsystem dispatches to Game Thread.
  3. Execution: C++ handler performs native UE API calls → Returns JSON result.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 81 lines · 1,114 tokens per session scan A ff710d226c17

Subscribe to this mod's changes

mcp-server-unreal-engine AGENTS.md is an instructions file published in the GitHub repository andrewkorot/mcp-server-unreal-engine (1 stars, last pushed 5mo ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0056 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to unreal-mcp AGENTS.md, differing in 4 lines, and is treated as a copy.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens