DesyncedMCP
Enables AI assistants to develop Desynced mods by providing direct access to the game's Lua API reference, base-game source, live logs, and installed mods, plus live control via a debugger link for evaluating and reloading Lua in the running game.
README
DesyncedMCP
MCP server for Desynced mod development. Gives an AI assistant (Claude Code or any MCP client) direct access to the game's Lua API reference, base-game source, live game logs and installed mods.
Tools
Static (filesystem)
| Tool | Purpose |
|---|---|
search_lua_api |
Search the official Lua API reference (vendored in docs/lua-api.txt) |
search_game_source |
Regex search over base game (main/) + mods Lua/JSON in the workspace |
get_game_logs |
Tail a game log file if one exists (see -abslog note below) |
list_mods |
List mods the game will load vs. mods in the workspace |
read_game_file |
Read any workspace source file by relative path with line range |
Live (lrdb debugger link, game running with -moddev)
| Tool | Purpose |
|---|---|
game_status |
Live snapshot: tick, player faction, entity count, active mod settings |
game_logs |
Output captured live (print/errors/BOOT); survives crashes up to the moment of death |
game_eval |
Execute arbitrary Lua inside the running game and return the result |
game_reload |
Debug.Reload() — hot reload all mod Lua, exactly like pressing F7 |
The link speaks the satoren lrdb protocol (newline-delimited JSON-RPC, no
init) against 127.0.0.1:21110. The game's debug server takes commands
from a single client: while this server is linked, the in-game log console
goes silent (output is redirected to the link) and VS Code cannot attach.
The VM answers eval only while executing Lua, so an idle menu can time out.
Simulation bridge (companion mod)
game_eval runs in the game's UI Lua VM, where simulation mutations are
blocked. Controlling the game (move, deploy, mine, construct...) requires
the companion mod Desynced MCP Bridge on the Steam Workshop,
which exposes
FactionAction.MCPSimCmd into the simulation context. This server works
without it for read-only tools (logs, status, eval reads, hot reload).
Setup
npm install
npm test # smoke test
Register in Claude Code (project scope):
claude mcp add desynced --scope project -- node <path-to>/DesyncedMCP/server.js
Configuration (env vars)
| Var | Default |
|---|---|
DESYNCED_WORKSPACE |
current working directory — point it at the folder holding your mod sources |
DESYNCED_GAME_MODS |
C:/Program Files (x86)/Steam/steamapps/common/Desynced/Desynced/Content/mods — set it if Steam lives elsewhere (custom library folder) |
DESYNCED_SAVED |
%LOCALAPPDATA%/Desynced/Saved |
Searching the base game (optional)
The game ships its entire base game as main.zip inside the mods folder
and always loads it zipped — it is never extracted in a normal install. To
let search_game_source and read_game_file see the base-game Lua, unzip
main.zip into a main/ folder inside your workspace with any zip tool.
This is purely a development convenience; the game neither needs nor uses
the extracted copy.
Game-side requirements
The server itself runs outside the game — nothing to install in the game. For logs to exist, launch Desynced with these Steam launch options:
-moddev -log
-moddev enables the mod developer mode (hot reload with F7, strict data checks, log console); -log writes the log file this server reads.
Roadmap
deploy_mod: copy a workspace mod into the game mods dir (replacing the manual copy step)- Live bridge over the lrdb debug protocol (
localhost:21110in-moddev): eval Lua in the running game, inspect entities/factions, triggerDebug.Reload() - Workshop publishing via DesyncedModUploader
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。