Mengine MCP
OfficialAllows launching and interacting with Android game builds, including injecting input, inspecting scenes, capturing frames, and reading logs.
Allows launching and interacting with macOS game builds, including injecting input, inspecting scenes, capturing frames, and reading logs.
Allows inspecting, evaluating, and mutating Python state within the running game, including paused debugger frames.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mengine MCPLaunch the game and inspect the current scene"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mengine MCP
Give your AI agent a live connection to your game. Mengine MCP lets Visual Studio Code launch, inspect, control, debug, and hot-reload Development builds made with the open-source Mengine game engine.
Instead of reasoning from source alone, an agent can click UI, inject touch and keyboard input, inspect the active scene, capture frames, read logs, evaluate Python, stop on script breakpoints, and verify changes inside the running game.
Highlights
Build managed macOS Development profiles into a workspace-local cache.
Launch managed or existing desktop and mobile builds in visible, hidden-render, or headless-logic mode.
Inspect and edit the live scene using generation-safe node handles.
Inject deterministic mouse, keyboard, and multi-touch sequences without moving the system cursor.
Capture frames, read logs and diagnostics, and wait for runtime conditions.
Inspect, evaluate, and mutate Python state, including paused debugger frames.
Explicitly hot-reload Python modules and resource overlays with rollback on failure.
Extend the public tool surface from game-side C++ or Python handlers.
Mengine MCP can incrementally build managed macOS Development profiles. Other platforms can continue to launch artifacts produced by the normal Mengine, IDE, or CI build workflow.
Related MCP server: MCP Chrome Debugger Protocol
Install in Visual Studio Code
Install Mengine MCP from the Visual Studio Marketplace, or install a locally built VSIX:
code --install-extension mengine-mcp-0.3.2.vsixThe VSIX contains both the extension and the STDIO MCP server. Users do not need to install a separate Node.js runtime.
Configure a game
Configure a Development profile with
MCPPluginenabled. The plugin must remain excluded from Master and Release builds.Open the game root in VS Code.
Run
Mengine MCP: Create Configurationfrom the Command Palette.Edit the generated
.mengine/mcp.jsonwith the build or launch profiles and source mappings for the game.Open Chat in agent mode. VS Code automatically discovers
Mengine MCP: <workspace>.
The extension never launches the game when a workspace opens. It only publishes MCP tools; the agent launches an existing Development artifact when a runtime, frame, input, scene, or log check is actually needed.
The descriptor lives at .mengine/mcp.json. Build deploy paths, launch paths, script roots, and asset roots are resolved relative to the game root, not the hidden .mengine directory. A minimal managed macOS profile looks like this:
{
"version": 1,
"apps": [
{
"id": "game",
"name": "My Mengine Game",
"profiles": [
{
"id": "macos-dev",
"platform": "macos",
"build": {
"provider": "mengine",
"configuration": "Debug",
"deployPath": "./Deploy/MacOS"
}
}
],
"scriptRoots": [
{
"path": "./Scripts",
"logicalPrefix": "Scripts"
}
],
"assetRoots": [
{
"path": "./Resources",
"fileGroup": "game"
}
]
}
]
}Managed builds also need a machine-local .mengine/local.json. This file is never committed:
{
"engineRoot": "/local/path/to/Mengine"
}The extension creates .mengine/.gitignore with rules for local.json and .cache/. Each profile reuses exactly one build directory:
.mengine/.cache/build/<profileId>/
├── solution/
├── output/
├── runtime/
├── build.log
└── state.jsonUse app_build for an incremental build and then app_launch. Rebuilding overwrites the same profile cache; Mengine MCP does not retain generations or copies of previous artifacts. A failed rebuild marks the current state as failed while retaining the previous build metadata in lastSuccessful; because the output directory is shared, this is a record rather than an artifact rollback guarantee. For macOS launch, Mengine MCP creates one ad-hoc-signed copy in the local system temporary directory so builds stored on SMB volumes can run despite server-managed extended attributes; it removes that copy on stop, exit, failed launch, rebuild, or clean. app_clean removes only the selected profile directory and any temporary launch copy. Managed builds currently support macOS; the profile-scoped layout reserves separate directories for iOS, iOS Simulator, and Android providers.
See mengine.mcp.example.json for desktop and Android profiles. Android launch profiles receive the listener endpoint and session token as Intent extras, and can use portForwardCommand for adb reverse.
For hidden_render and headless_logic, Mengine MCP passes the existing --cli argument to desktop runtimes. Desktop Mengine hosts translate that argument into Configuration::silentDialog before calling API_MengineCreate; Kernel code and MCPPlugin do not infer dialog policy from MCP endpoint credentials. Visible launches remain interactive.
Automatic Codex connection
When an installed Mengine MCP extension opens a trusted workspace containing .mengine/mcp.json, it also maintains a global Codex MCP server named mengine. No terminal command, project-local server source, .codex/config.toml, or versioned VSIX path is required.
The managed registration launches the server bundled in the currently installed extension through the VS Code runtime. After the first registration, start a new Codex agent or restart the Codex extension if the running agent does not refresh its MCP configuration. Later workspace opens and VSIX updates are reconciled automatically.
An existing mengine registration without the wonderland.mengine-mcp management marker is preserved. Use these Command Palette recovery actions to inspect or explicitly change registration state:
Mengine MCP: Show Codex StatusMengine MCP: Connect CodexMengine MCP: Disconnect Codex
Automatic registration and recovery commands are disabled in untrusted workspaces. Failure to locate Codex does not affect the existing VS Code Chat MCP provider.
Run the STDIO server directly
The server also works with other MCP clients independently of VS Code:
npm ci
npm run build
node dist/mengine-mcp.mjs --config /path/to/game/.mengine/mcp.jsonConfiguration discovery uses this order: explicit --config, MENGINE_MCP_CONFIG, then an upward search for .mengine/mcp.json from the MCP process working directory. Root-level mengine.mcp.json files are not supported. An explicitly missing --config remains an error. Without any discovered descriptor, the server starts normally and publishes only the read-only mengine_status tool, so its global Codex registration does not expose game controls in unrelated projects.
It speaks standard MCP over STDIO and connects to the running game through the authenticated MNCP v1 TCP protocol. It builds only explicit managed profiles and can install or launch only configured applications. It never signs, archives, uploads, deploys, or publishes an application.
Development
npm ci
npm test
npm run packagenpm run package creates a platform-independent VSIX. Tagged v* releases are verified and published by the Release GitHub Actions workflow using the VSCE_PAT repository secret.
Safety
This extension intentionally has powerful Development-only capabilities, including application launch commands and unrestricted Python execution. VS Code therefore disables it in untrusted workspaces. Session tokens are generated per launch and must never be logged or committed.
See SECURITY.md for the complete security boundary.
Related project
Mengine is a multi-platform C++ game engine used to build and ship graphical games across desktop and mobile platforms. Mengine MCP is its AI-agent development companion.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityAmaintenanceAn MCP server and VS Code extension that enables AI clients to interactively debug code using breakpoints, execution control, and state inspection. It is language-agnostic and works with any debugger that supports VS Code's launch.json configurations.Last updated
- Alicense-qualityAmaintenanceMCP server that lets AI coding tools control and observe a running Node.js process through the chrome devtools protocol (CDP), via a lightweight Debug Adapter Protocol (DAP) bridge.Last updated192MIT
- Alicense-qualityCmaintenanceMCP server for AI-assisted Python debugging using debugpy and Debug Adapter Protocol, enabling AI agents to run tests, set breakpoints, and inspect variables via natural language.Last updated8MIT
- Alicense-qualityBmaintenanceEnables AI agents to inspect debug state, control execution, and set breakpoints in VS Code by exposing the Debug Adapter Protocol as an MCP server.Last updatedApache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
MCP server exposing the Backtest360 engine API as tools for AI agents.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/irov/Mengine-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server