darkest-dungeon
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
暗黑地牢 1 Agent MCP(Windows)
这是读取本机游戏进程的外置 MCP stdio 程序。Node.js 负责协议、存档与操作编排,C#/.NET 8 组件读取内存并连接注入桥接。v0.4.0 默认按英雄 ID、技能 ID 和目标 ID 调用游戏自身的选择、目标计算与确认函数;普通技能不需要技能栏或目标坐标,不发送键鼠事件。补给、战斗移动和 Boss 牺牲仍使用进程内 SDL 输入。详见 迁移说明。
v0.5.0 已适配当前更新后的 EXE,包括新角色字段、1048 字节增益结构及重新定位的桥接函数。旧 EXE 的固定布局不能混用,详情见 版本适配说明。
当前已校准的是本机 _windows/win64/Darkest.exe,SHA-256:
f9d914ca1d7d9ad3ff4f151a46e4853e532ce1f5f109f700b0c1381a3f7e0d12其他版本、32 位程序不能直接沿用这套布局。版本不符会报错,不继续读未知地址。
Antigravity 本机 HTTP 接入
在游戏所在桌面的 PowerShell 进入项目目录,运行:
Set-Location 'D:\Program Files\Steam\steamapps\common\DarkestDungeon\dd-mcp'
node src/server-http.mjs保持 PowerShell 运行。将启动时打印的 JSON 合并到 Antigravity 的 MCP 配置。如果已有同名 stdio 条目,用打印出的 HTTP 条目完整替换它。刷新 MCP 列表后,直接调用 dd_status({}) 查看 processes[0].window.valid 和桌面信息,再用 dd_get_state({"source":"memory","detail":"agent"}) 只读确认状态。
HTTP 入口只监听 127.0.0.1:17654/mcp,要求启动时生成的 Bearer token。重启入口后,使用新打印的配置。可以通过 DD_MCP_HTTP_PORT 指定其他端口,通过 DD_MCP_HTTP_TOKEN 提供固定的 32–128 字符 URL 安全 token。Antigravity 重连时,只要主桌面服务继续运行,仍使用同一个 Engine 和战斗账本。按 Ctrl+C 停止服务。
Related MCP server: OmniFlow
启动与接入
本机已装有 Node.js 24 和 .NET,native/bin-v11 已编译。开发依赖为 Node.js ≥22、.NET 8 SDK;没有 npm 第三方依赖。
启动游戏,进入战斗,保持游戏窗口在前台,关闭游戏菜单和其它遮挡窗口。
config.json的save_dir已指向本次验证的 Steam 账号465847414、profile_4。换存档时修改该路径。将
mcp.example.json中的darkest-dungeon条目合并到 agent 客户端的 MCP 配置。客户端负责启动服务;不要把调试输出写入服务 stdout。调用
dd_status检查进程,再调用dd_get_state。
也可以在正常 Windows 桌面会话中运行:
node src/cli.mjs doctor
node src/cli.mjs state memory
node src/server.mjsstart.cmd 是服务入口,不是图形界面。双击后等待 MCP 输入是正常现象。仅要查看数据时使用 CLI 的 state 命令。
重新编译和测试:
npm run build:native
node --test
node src/smoke.mjs窗口查询使用 EnumWindows 按 PID 和 SDL_app 窗口类确认唯一游戏窗口。查询失败时 window.valid=false、width/height=null,并返回 error 和会话/桌面上下文;不会把失败伪装成 0×0。真实桌面隔离或不同会话仍需在与游戏相同的交互桌面启动 MCP;程序不会自动切换桌面或焦点。详见 窗口读取修复。
Native 默认由 dotnet native/bin-v11/DDNative.dll 启动(v0.5.1)。DD_NATIVE_EXE 可指定 DLL 或直接 EXE;DLL 的宿主可用 DD_NATIVE_HOST 指定,默认为 PATH 中的 dotnet。路径含空格时不要在环境变量值中加入额外引号。MCP Server 与 start.cmd 均沿用该默认设置,子进程继承环境;显式指向旧 EXE 的客户端配置需要改成 DLL。详见 Native 宿主修复。
v0.4.3 修复 input_ready 全零时 actor_id 为 null 的问题:改为重复读取当前战斗行动者、选中英雄及阶段,并与已验证单位和剩余行动队列核对;旧字节保留为诊断。详见 行动者修复。若客户端显式指定 DD_NATIVE_EXE,需要同步改为 native/bin-v11/DDNative.dll,再重启 MCP。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Remote MCP learning coach for coding agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform low-level Windows process memory research, including process attachment, memory scanning, reading/writing, pointer chasing, remote code execution, and inline hooking via MCP tools and Lua scripting.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to automate Windows desktop applications through window manipulation, image recognition, OCR, keyboard/mouse simulation, and memory operations via the MCP protocol.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to execute Lua code, inspect scripts, spy on remotes, and interact with a running Roblox game client through an MCP interface.42266 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI to directly control Cheat Engine for process attachment, memory scanning, reading/writing, address list management, speed hack, Lua/Auto Assembler execution, and CT file management via the MCP protocol.6MIT