godot-bridge
DSH (DeepSeek Harness) plugin: launch and drive a running Godot 4.x game through its in-game TCP interaction server — replaces the godot-mcp MCP server with native agent tools.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Smalldy/godot-bridge说明文档
阅读完整 README ↗English | 中文
godot-bridge
原生 DeepSeek Harness (DSH) 插件:通过游戏内置的 TCP 交互服务器,启动并操控运行中的 Godot 4.x 游戏——用一等公民的 Agent 工具取代 godot-mcp MCP 服务器。
无需 MCP 协议、无需 Python 服务器、无需编辑器插件。游戏侧零改动:McpInteractionServer(mcp_interaction_server.gd autoload)本就在 127.0.0.1:9090 监听并说换行分隔 JSON——godot-bridge 在 DSH host 内部原生说同一种协议。
工具
| 工具 | 取代 (godot-mcp) | 用途 |
|---|---|---|
godot_run_project | run_project | 以调试模式启动项目(godot -d --path …),等待 9090 就绪 |
godot_stop_project | stop_project | 终止游戏进程(tree-scoped kill) |
godot_get_debug_output | get_debug_output | 增量读取已启动进程的 stdout/stderr |
godot_command | 全部 game_*(约 130 个) | 发送任意交互服务器命令:get_scene_tree、get_ui_elements、eval、get/set_property、call_method、click、key_press、screenshot、raycast、serialize_state、ui_*…… |
godot_screenshot | game_screenshot | 视口截图(base64 PNG) |
godot_ping | — | 探测游戏是否在 9090 应答 |
godot_headless_op | read_scene、modify_scene_node、remove_scene_node、attach_script、create_resource、save_scene、create_scene、add_node、get_uid、manage_scene_signals…… | headless 静态操作(godot --headless --script godot_operations.gd):16 个操作,无需运行游戏 |
godot_validate_script | validate_script | headless GDScript 编译检查()→ |