G
Godot Opencode MCP
作者 @chen9916
a version of godot which intergrates mcp for opencode
创建于 2/27/2026
更新于 about 3 hours ago
README
Repository documentation and setup instructions
Godot OpenCode MCP Fork
This repo is a Godot engine fork focused on built-in MCP workflows for OpenCode.
It includes:
- Godot editor-side MCP server under
editor/debugger/opencode_mcp - Expanded MCP tools for scene, node, script, resource, signal, shader, theme, and project operations
- OpenCode stdio bridge under
misc/opencode_mcp_bridge - OpenCode config installer command that upserts
mcp.godot-opencode
Quick setup
- Build Godot editor from this fork (run from repo root):
python -m pip install "scons>=4.0"
scons platform=windows target=editor dev_mode=yes
For other platforms, swap platform=windows for linuxbsd or macos.
Built editor binaries are written to bin/.
- Build the bridge package:
cd misc/opencode_mcp_bridge
npm ci
npm run build
- Install OpenCode MCP config:
node dist/main.js --install-opencode-config --project-root "<path-to-godot-project>"
- Restart OpenCode.
- In Godot Editor Settings, enable
network/opencode_mcp/enabled. - If needed, click
Refresh MCP Sessionundernetwork/opencode_mcp.
Docs
- Engine MCP protocol docs:
editor/debugger/opencode_mcp/README.md - Bridge docs and troubleshooting:
misc/opencode_mcp_bridge/README.md
Upstream Godot
This branch is based on Godot. For upstream engine documentation and general project info, see:
- https://github.com/godotengine/godot
- https://docs.godotengine.org
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/chen9916/godot-opencode-mcp
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"chen9916-godot-opencode-mcp": {
"command": "git",
"args": [
"clone",
"https://github.com/chen9916/godot-opencode-mcp"
]
}
}
}