
A universal Dear ImGui hook for DirectX 12/11/10/9, OpenGL, and Vulkan (英语). 与Windows,Linux,和Steam Deck相兼容,通过命名Pipe实现游戏调试和控制,以集成MCP为特色.
概览
一个亲爱的 ImGui 覆盖,将您的界面画入另一个应用程序中,无论它使用的图形 API,让一个像 Claude Code 这样的AI 助手通过 MCP 在本地命名的管子或 Unix socket 上看到和玩游戏. 运行时检测出 API: 构建一次,在任何地方注入. 在Wine或质子下运行的Windows游戏使用Windows DLL. - :后端取自第一个呈现框架的API. 在游戏开始之前或之后注入其图形. -:通过MCP和一个当地命名的管子(Windows)或Unix socket(Linux),克劳德代码等助手看到游戏,在游戏上给玩家写信并按下其键. - :INSERT,或称控制器上L3+R3,打开菜单;F11去掉上覆并卸下DLL. 键是实例/config.cpp中的设置. 在菜单打开时,游戏没有看到键盘,鼠标或控制器输入(Windows),一个X输入控制器会导航菜单.
概述(AI 翻译)
一个亲爱的 ImGui 覆盖,将您的界面画入另一个应用程序中,无论它使用的图形 API,让一个像 Claude Code 这样的AI 助手通过 MCP 在本地命名的管子或 Unix socket 上看到和玩游戏. 运行时检测出 API: 构建一次,在任何地方注入.
^ API ^ Windows (x86, x64) ^ Linux (x86-64, ARM64) ^ | – – – – – – – – – – – – –
-=YTET -伊甸园字幕组=- 翻译: Vulkan : 白色 检查 标记: : 白色 检查 标记: : ++ OpenGL 3.0++ ++: white check mark : (WGL)++:white check mark : (GLX, EGL)++:
在Wine或质子下运行的Windows游戏使用Windows DLL.
□ 目录
- 特征
- 快开始
- 用法:Windows、Linux、设置、菜单,作为一个库
- 由AI助理进行遥控
- API (英语)
- 如何运作
- 大楼
- 测试
- 贡献
- 限制
- 支助
点击时以 QQ 标记的段落展开 。
□ 特性
- 每个API一个库:后端取自第一个呈现框架的API. 在游戏开始之前或之后注入其图形.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Universal-Dear-ImGui-Hook
A Dear ImGui overlay that draws your interface inside another application, whatever graphics API it uses, and lets an AI assistant such as Claude Code see and play the game through MCP over a local named pipe or Unix socket. The API is detected at runtime: build once, inject anywhere.
| API | Windows (x86, x64) | Linux (x86-64, ARM64) |
|---|---|---|
| Direct3D 9, 9Ex | :white_check_mark: | NOT REQUIRED |
| Direct3D 10, 11, 12 | :white_check_mark: | NOT REQUIRED |
| Vulkan | :white_check_mark: | :white_check_mark: |
| OpenGL 3.0+ | :white_check_mark: (WGL) | :white_check_mark: (GLX, EGL) |
Windows games running under Wine or Proton use the Windows DLL.
Contents
- Features
- Quick start
- Usage: Windows, Linux, settings, your menu, as a library
- Remote control by an AI assistant
- API
- How it works
- Building
- Tests
- Contributing
- Limitations
- Support
Sections marked with ▶ unfold on click.
Features
- One library for every API: the backend is picked from the first API that presents a frame. Inject before or after the game initializes its graphics.
- Remote control by an AI assistant: through MCP and a local named pipe (Windows) or Unix socket (Linux), an assistant such as Claude Code sees the game, writes to the player over it and presses its keys.
- Menu input:
INSERT, or L3 + R3 on a controller, opens the menu;F11removes the overlay and unloads the DLL. The keys are settings inexample/config.cpp. While the menu is open the game sees no keyboard, mouse or controller input (Windows), and an XInput controller navigates the menu. - No crash from the overlay (Windows, MSVC builds): an exception in the overlay, from a renderer backend or the menu code, removes it instead of taking the game down; the menu key brings it back.
- Images and frame capture:
uih::CreateTexture()turns RGBA pixels into an image forImGui::Image(), anduih::CaptureFrame()copies what the game draws, without the overlay, on every backend. - Several windows: when the game presents to more than one window or swap chain, the overlay stays on one of them and follows the focus.
- Readable on any display: the interface follows the DPI of the game window, or a fixed scale, with correct colors on sRGB and floating-point back buffers.
- No injector needed: the DLL can be loaded as
dinput8.dll, and the Linux library withLD_PRELOAD.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"game": { "command": "python", "args": ["C:/path/to/Universal-Dear-ImGui-Hook/remote/uih_mcp.py"] }
}
}