关于 Godot MCP
编辑 Godot 4 场景、节点和脚本;在编辑器中或无头模式下实时运行、测试和调试游戏
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
mcp.json · 通用配置
启动命令
npx -y @shin2344234/godot-mcp需要配置的环境变量
GODOT_PROJECT_PATHFolder of the Godot project (the one containing project.godot). Defaults to the folder the client starts the server in, so set it whenever that is not your project (e.g. in desktop apps).GODOT_PATHFull path of the Godot 4.x executable (GODOT_BIN is accepted too). If unset, the server looks for godot, godot4 or Godot_v4* on PATH. On Windows use the main Godot exe, not the _console.exe launcher.GODOT_MCP_MODEHow tools are exposed: 'full' lists every enabled operation as its own tool (best for clients with tool search); 'compact' lists only core tools plus router tools that reach the rest.GODOT_MCP_TOOLSETSComma-separated tool groups to enable, or 'all' (default). Groups: core, files, scene, node, script, run, editor, signal, resource, visual, anim, world, audio, project, import, export, code, docs, game, debug, test. 'core' is always on.GODOT_MCP_READ_ONLYSet to true to hide every tool that changes something (inspection only).GODOT_MCP_ALLOW_EVALSet to true to let godot_game_eval run GDScript inside the running game. Off by default: evaluated code can do anything the game can (files, OS calls).GODOT_MCP_CONFIRM'elicit' asks the user (through the client's elicitation dialog, when supported) before irreversible operations; 'never' skips asking, for unattended runs where nobody can answer.GODOT_MCP_LOG_LEVELVerbosity of the server's stderr log (use 'debug' when filing a bug report).GODOT_MCP_HEADLESS_TIMEOUT_MSAdvanced: timeout for one headless Godot invocation, in milliseconds.GODOT_MCP_BRIDGE_TIMEOUT_MSAdvanced: timeout for one request to the live editor bridge, in milliseconds.GODOT_MCP_LSP_PORTAdvanced: port of the Godot editor's GDScript language server on 127.0.0.1. Defaults to the port the editor plugin reports, else 6005.GODOT_MCP_LSP_TIMEOUT_MSAdvanced: timeout for one GDScript language server request, in milliseconds.GODOT_MCP_LSP_IDLE_MSAdvanced: stop the private headless language server after this many milliseconds without code tool calls.GODOT_MCP_CACHE_DIRAdvanced: folder for the server's cache (the Godot class docs index). Defaults to the per-user cache folder of the OS.本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。
工具
91收录的工具列表 · 更新于 2 周前
此工具无需参数。
详细介绍
维护者还没有提供详细介绍,可以先查看代码仓库中的 README。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。