io.github.HaD0Yun/gopeak

编码与调试

by had0yun

面向 Godot Engine 的高完整度 MCP server,内置 95+ tools、LSP、DAP 和截图功能。

什么是 io.github.HaD0Yun/gopeak

面向 Godot Engine 的高完整度 MCP server,内置 95+ tools、LSP、DAP 和截图功能。

README

GoPeak

Made with Godot npm

🌐 Languages: English | 한국어 | 日本語 | Deutsch | Português | 简体中文

GoPeak Hero

GoPeak is an MCP server for Godot 4 that gives AI assistants a real edit → run → inspect → fix loop.

It is designed for trusted Godot 4 workflows: small default tool surface, setup-gated advanced capabilities, and explicit compatibility rules for older/legacy tool names.

English is the canonical source of truth. Localized READMEs are concise overviews and may lag behind README.md.

Discord is temporarily unavailable while the invite link is refreshed. Use GitHub Discussions for now.


Quick Start

Requirements

  • Godot 4.x
  • Node.js 18+
  • MCP-compatible client such as Claude Desktop, Cursor, Cline, or OpenCode

1) Run GoPeak

bash
npx -y gopeak

or install globally:

bash
npm install -g gopeak
gopeak

2) Add MCP client config

json
{
  "mcpServers": {
    "godot": {
      "command": "npx",
      "args": ["-y", "gopeak"],
      "env": {
        "GODOT_PATH": "/path/to/godot",
        "GOPEAK_TOOL_PROFILE": "compact"
      }
    }
  }
}

compact is the default profile. It keeps the initial MCP context small and exposes additional setup-gated groups only when requested.

3) Try these prompts

  • "List Godot projects in /your/projects and show project info."
  • "Create scenes/Player.tscn with a CharacterBody2D root and a movement script."
  • "Run the project, read the debug output, and fix the top error."
  • "Use tool.catalog to find animation tools, then activate the right group."

What You Get

WorkflowWhat GoPeak can do
Project controlFind projects, launch the editor, run/stop the game, collect debug output.
Scene + script editingCreate scenes, add nodes, edit typed properties, create/modify GDScript.
Resource workflowsWork with resources, materials, shaders, imports, and export-related checks.
DebuggingUse logs, Godot LSP diagnostics, DAP breakpoints/stack traces, and runtime inspection when configured.
Runtime testingCapture screenshots, inspect live trees, inject input, and call runtime methods through the addon.
Tool discoveryKeep the default surface compact, then activate capability groups with tool.catalog or tool.groups.

Setup gates

Some capabilities require extra Godot-side services. GoPeak labels these instead of pretending everything is always available:

CapabilityRequires
Editor bridge scene/resource editsgodot_mcp_editor plugin enabled in the Godot project.
Runtime inspection, screenshots, input injectionRuntime addon/socket, default port 7777.
GDScript LSP toolsGodot LSP enabled on port 6005.
DAP debugging toolsGodot DAP enabled on port 6006.
Asset store/provider toolsNetwork access and provider availability.

Add the Godot Plugins

Install from your Godot project folder:

bash
curl -sL https://raw.githubusercontent.com/HaD0Yun/Gopeak-godot-mcp/main/install-addon.sh | bash

PowerShell:

powershell
iwr https://raw.githubusercontent.com/HaD0Yun/Gopeak-godot-mcp/main/install-addon.ps1 -UseBasicParsing | iex

Then enable plugins in Project Settings → Plugins:

  • godot_mcp_editor for bridge-backed scene/resource tools
  • godot_mcp_runtime for runtime inspection, screenshots, and input workflows

Optional shell hooks for update notifications are opt-in:

bash
gopeak setup

gopeak setup only modifies supported bash/zsh rc files when you run it explicitly. npm install does not install shell hooks automatically.


Tool Profiles

GoPeak supports three exposure profiles:

ProfileUse when
compactDefault. Trusted core tools plus dynamic groups activated on demand.
fullCompatibility/audit mode for the full legacy surface.
legacyOlder config alias with the same exposed behavior as full.

Set either GOPEAK_TOOL_PROFILE or the fallback alias MCP_TOOL_PROFILE.

Dynamic groups

In compact mode, search with tool.catalog; matching groups auto-activate. You can also manage groups directly with tool.groups.

Common groups:

GroupStatusNotes
runtimeoptional-runtimeLive scene tree, properties, method calls, metrics. Requires runtime addon/socket.
testingoptional-runtimeScreenshots, viewport capture, input injection. Requires runtime/editor setup.
lspoptional-lspDiagnostics, completion, hover, symbols. Requires Godot LSP on port 6005.
dapoptional-dapBreakpoints, stepping, stack traces. Requires Godot DAP on port 6006.
asset_storeoptional-networkExternal CC0 asset search/download. Network/provider dependent.
class_advancedtrusted-staticClassDB/inheritance discovery backed by static engine metadata.
tilemapaudit-requiredMust account for Godot 4.3+ TileMapLayer behavior before promotion.
mutation groupsaudit-requiredScene/resource/script/settings/signal/autoload/import/audio/navigation/theme/animation groups need fixture evidence before being marketed as fully trusted.
intent_trackingworkflow-layerWorkflow memory/handoff helpers, not a Godot engine primitive. Keep opt-in.

If your MCP client does not refresh after activation, reconnect the client or call the newly activated tool once to force a fresh tools/list round-trip.

GoPeak also uses cursor-based pagination for tools/list so large profiles are not dumped into context at once. Tune it with GOPEAK_TOOLS_PAGE_SIZE when needed.


Typed Godot Values

Bridge-backed scene tools such as add_node and set_node_properties accept common vector payloads for typed properties:

json
{
  "position": { "type": "Vector2", "x": 100, "y": 200 },
  "scale": { "type": "Vector2", "x": 2, "y": 2 }
}

Plain { "x": 100, "y": 200 } and [100, 200] are also coerced for common Vector2 fields, but tagged values are safest across tools.


Useful Commands

bash
# run from npm
npx -y gopeak

# install globally
npm install -g gopeak

# run from source
git clone https://github.com/HaD0Yun/Gopeak-godot-mcp.git
cd Gopeak-godot-mcp
npm install
npm run build
node build/index.js

# local verification
npm run ci
npm run test:dynamic-groups
npm run test:metadata
npm run test:packaging

CLI bin names:

  • gopeak
  • godot-mcp

Environment & Ports

NamePurposeDefault
GOPEAK_TOOL_PROFILETool exposure profile: compact, full, legacycompact
MCP_TOOL_PROFILEFallback profile env aliascompact
GODOT_PATHExplicit Godot executable pathauto-detect
GODOT_BRIDGE_PORTBridge/Visualizer HTTP+WS port override6505
GOPEAK_BRIDGE_HOSTBridge/Visualizer bind host127.0.0.1
GOPEAK_TOOLS_PAGE_SIZENumber of tools per tools/list page33
GOPEAK_RUNTIME_TIMEOUT_MSRuntime addon command timeout in milliseconds10000
DEBUGEnable server debug logsfalse
LOG_MODERecording mode: lite or fulllite
PortService
6505Unified Godot Bridge + Visualizer server on loopback by default.
6005Godot LSP.
6006Godot DAP.
7777Runtime addon command socket.

Runtime screenshot tools (capture_screenshot, capture_viewport) use a GoPeak-managed temporary PNG file when the runtime addon supports output_path, then return normal MCP image content. Older runtime addons that do not receive an output_path continue to return inline base64 screenshots.


Troubleshooting

  • Godot not found → set GODOT_PATH.
  • No MCP tools visible → restart your MCP client.
  • Need a hidden tool → search with tool.catalog or activate a group with tool.groups.
  • Project path invalid → confirm project.godot exists.
  • Runtime tools not working → install/enable the runtime addon and check port 7777.
  • Runtime screenshots time out → update the runtime addon so screenshot commands support the managed output_path flow. For slow runtime responses, raise GOPEAK_RUNTIME_TIMEOUT_MS; older addons may still time out on large inline base64 screenshots.
  • Editor bridge disconnected → stop duplicate gopeak/MCP servers that may already own bridge port 6505; get_editor_status reports bridge startup errors such as EADDRINUSE.

Migration & Deprecation Policy

GoPeak treats compact as the safe default and full/legacy as compatibility profiles. Future hide, remove, rename, or API-contract changes must include:

  1. old → new mapping or an explicit no-replacement note;
  2. profile impact (compact, full, legacy, or opt-in group);
  3. alias window and planned removal timing;
  4. README/docs and release-note updates;
  5. verification proving tools/list exposure and alias behavior;
  6. migration prompt examples for common Godot workflows.

Current stance: legacy tool names and compact aliases remain supported. Optional external groups (runtime, testing, lsp, dap, asset_store) are setup-gated, not always-available core behavior.

Full policy: docs/migration-policy.md.


More Docs


License & Credits

MIT — see LICENSE.

常见问题

io.github.HaD0Yun/gopeak 是什么?

面向 Godot Engine 的高完整度 MCP server,内置 95+ tools、LSP、DAP 和截图功能。

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描148.2k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描148.2k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描148.2k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
86.6k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
57.0k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
47.7k

评论