godot-devtool
by wangdiandao·★ 42·综合分 45
一个为 Godot 4 提供 AI 辅助项目检查、编辑、验证和运行时自动化的 MCP 服务器。
概述
godot-devtool 是一个全面的 MCP 服务器,通过多种传输路线让 AI 助手能够与 Godot 4 项目进行交互。它提供原生、无头、编辑器和运行时路线,支持项目设置、实时编辑、运行时测试和多实例管理等各种工作流程。服务器使用 stdio 通信,并可选 WebSocket 桥接来实现高级编辑器和运行时功能。它通过项目路径、上下文和会话标识符维护连接状态,允许多个 MCP 客户端高效共享桥接端口。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您使用 Godot 4 并希望 AI 助手帮助处理游戏开发任务(如调试、场景编辑和运行时自动化),请选择 godot-devtool。
什么时候不要选它
如果您不使用 Godot 4,请避免使用此服务器,因为它专门为 Godot 游戏开发设计,不适用于其他游戏引擎。
此 server 暴露的工具
从 README 抽取出 12 个工具get_godot_versionGet the installed Godot engine version
get_capabilitiesGet available tools and their schemas with optional filtering
plugin_installInstall the godot-devtool plugin in a Godot project
plugin_statusCheck the installation status of the godot-devtool plugin
get_project_infoRetrieve metadata about a Godot project
run_projectRun the Godot project and capture output
stop_projectStop the currently running Godot project
list_projectsList Godot projects in a directory
project_get_settingsRead Godot project.godot settings by section or section/key list
project_set_settingUpdate Godot project.godot settings with dry-run preview
run_project_checksRun stable project checks for CI, review, and release workflows
browser_visualizer_startStart a local read-only dashboard for bridge status and visualization
可对比工具
安装
安装
从本地构建
- 解压已发布的 zip 文件到稳定路径
- 确认服务器入口存在于
build/index.js - 将此 MCP 服务器添加到您的客户端配置中:
{
"mcpServers": {
"godot-devtool": {
"command": "node",
"args": ["E:/godot-devtool/build/index.js"],
"env": {
"GODOT_PATH": "D:/Program Files/Godot/Godot_v4.x.exe",
"GODOT_DEVTOOL_WS_PORT": "8766"
}
}
}
}从源码构建
git clone https://github.com/wangdiandao/godot-devtool.git
cd godot-devtool
npm install
npm run build- 使用
plugin_install工具安装 Godot 插件
FAQ
- 桥接的默认 WebSocket 端口是什么?
- 默认 WebSocket 端口是 8766,可以通过 GODOT_DEVTOOL_WS_PORT 环境变量配置。
- 这个 MCP 服务器是否需要 Godot 编辑器运行?
- 不需要,它既支持不需要编辑器的原生/无头路线,也支持需要编辑器或游戏运行的编辑器/运行时路线。
godot-devtool 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。