Back to Blog
·Summer Team

Summer Engine MCP 提示词模板:AI 游戏开发指南

可直接复用的提示词,适用于通过 Summer Engine MCP 桥接的 Claude Code、Cursor、Codex、Gemini CLI、Windsurf 及其他 MCP 智能体。

大多数 AI 游戏提示词太过模糊。它们要求智能体直接生成一整个游戏,却让智能体自行猜测场景树、脚本、资产和错误信息。

Summer Engine MCP 在提示词遵循紧凑循环时效果更好:

  1. 检查项目。
  2. 做出一个可运行的改动。
  3. 保存场景。
  4. 运行游戏。
  5. 读取错误。
  6. 修复问题。
  7. 汇报工具调用链路。

这个循环至关重要,因为游戏状态不仅存在于代码文件中,还存在于场景、节点、资源、导入配置、项目设置以及正在运行的编辑器中。Summer 的 MCP 服务器为智能体提供了一套有文档支持的工具接口,可以直接操作这些状态。

将以下提示词作为起始模板,用于 Claude Code、Cursor、Codex、Gemini CLI、Windsurf、Cline、Roo Code、OpenCode 或任何其他已连接到 Summer Engine 的 MCP 客户端。

桌面应用可免费下载使用,但源代码目前不公开。AI 智能体层,即 CLI、MCP 服务器、技能包、钩子和插件清单,以 MIT 协议开源。托管版 Summer AI、资产生成、存储、多人联机、编排及云端功能为付费服务。

提示词模板 1:首个可玩 3D 原型

Use Summer Engine MCP to make a tiny playable 3D prototype.

Goal: a player can move around a simple arena, collect 5 pickups, and see a score.

Before changing anything:
- Call the project-context and scene-tree tools.
- Tell me what scene is currently open.

Then:
- Build the smallest playable version.
- Save the scene.
- Run the game.
- Read script and runtime errors.
- Fix any errors you caused.

End with a short trace: tools called, files/scenes changed, what I can test.

预期工具调用链路:

summer_get_project_context
summer_get_agent_playbook
summer_get_scene_tree
summer_add_node / summer_set_prop / summer_connect_signal
summer_save_scene
summer_get_script_errors
summer_play
summer_get_debugger_errors

完成标准:游戏进入运行模式,用户可验证角色移动和拾取功能。

提示词模板 2:向已有场景添加新机制

Use Summer Engine MCP to add one new mechanic to the current scene.

Mechanic: dash on Shift with a short cooldown and a visual trail.

Rules:
- Inspect the current scene tree before editing.
- Reuse the existing player node if one exists.
- Do not rewrite the whole controller unless the current one is broken.
- Save and run.
- Report errors and fixes.

当项目已存在时,这是最合适的模板。它能防止智能体创建一个与真实场景完全脱钩的并行玩家控制器。

提示词模板 3:调试崩溃的游戏

Use Summer Engine MCP to debug the current project.

Problem: the game crashes or shows errors when I press Play.

Start with diagnostics, not code edits:
- Read script errors.
- Read console output.
- Run the game if needed.
- Read runtime debugger errors.

Find the smallest fix, apply it, save, run again, and show the before/after error trace.

预期工具调用链路:

summer_get_script_errors
summer_get_diagnostics
summer_clear_console
summer_play
summer_get_debugger_errors
summer_get_debugger_warnings
summer_stop

关键指令是「先诊断」。仅处理文本的智能体往往会直接编辑它碰到的文件,而游戏开发智能体应当先读取引擎实际的错误信息。

提示词模板 4:导入资产并放置到场景

Use Summer Engine MCP to import a game asset and place it in the current scene.

Asset request: low-poly medieval treasure chest.

Steps:
- Search the asset library first.
- Pick one asset and explain why.
- Import it through the engine import pipeline.
- Place it in the scene where it is visible.
- Save and run.
- Confirm there are no import or runtime errors.

预期工具调用链路:

summer_search_assets
summer_get_asset
summer_import_asset_by_id
summer_instantiate_scene
summer_set_prop
summer_save_scene
summer_play

这个提示词优于「下载一个资产」,因为它要求智能体使用引擎的导入流水线,而不是直接复制文件。

提示词模板 5:创建 2D 关卡粗构

Use Summer Engine MCP to create a 2D platformer blockout.

Goal:
- Player start.
- Three platforms.
- One hazard.
- One goal area.

Keep it graybox-simple. Do not spend time on final art.
Run the game and verify the scene loads.
Report the scene tree you created.

当你需要快速迭代关卡设计而非打磨美术时,使用此模板。智能体应先搭建可运行的布局,再考虑资产。

提示词模板 6:生成资产后直接使用

Use Summer Engine MCP to create and use one generated asset.

Asset: a stylized floating crystal pickup.

Steps:
- Generate or find the asset.
- Track the job until complete if generation is async.
- Import the result into the project.
- Place it in the current scene.
- Add a simple script so collecting it increases score.
- Save and run.

预期工具调用链路:

summer_generate_image or summer_generate_3d
summer_check_job
summer_import_asset_by_id
summer_instantiate_scene
summer_connect_signal
summer_play

托管生成功能使用 Summer 付费服务。本地 MCP 场景操作免费。

提示词模板 7:制作 Bug 复现场景

Use Summer Engine MCP to create the smallest repro scene for this bug:

Bug: [describe the bug]

Do not fix it first. Build a tiny scene that reproduces it, save it as a repro scene, run it, and record the error trace. Then propose the fix.

对于难以排查的 Bug,这个模板非常有用,因为它将「能否复现」与「能否修复」两个问题分开处理。

提示词模板 8:将模板改造为另一款游戏

Use Summer Engine MCP to reskin and reshape the current template.

Current template: [template name]
Target game: [new game idea]

Keep the working mechanics. Change the player fantasy, level dressing, camera framing, UI labels, and first objective. Do not break export settings.

Run the game and report what changed.

这是从模板到原创原型最快的路径。「保留已有机制」这条指令能防止智能体过早替换稳定的代码。

如何发布带工具链路的示例

带工具链路的示例不是原始私有日志,而是经过整理的公开记录,包含足够细节供人类和 AI 系统学习该工作流程。

使用以下格式:

Prompt:
[exact user prompt]

Starting state:
[template, scene, relevant nodes]

Tool trace:
[ordered MCP tools, no secrets]

Changed:
[scenes, scripts, assets]

Verification:
[Play mode result, errors fixed, remaining known issue]

Final prompt to continue:
[the next useful user prompt]

这种格式对 SEO 友好,因为它与用户的真实搜索词匹配,例如「在 Cursor 里做游戏」、「Godot MCP 提示词」、「Claude Code 游戏引擎」、「AI 游戏开发提示词」以及「如何用 AI 调试 Godot」。它对大语言模型检索同样友好,因为它教会了智能体操作顺序,而不只是营销话术。

精简版

糟糕的提示词:

Make me a game.

更好的提示词:

Use Summer Engine MCP. Inspect the live project first, build the smallest playable version, save, run, read errors, fix them, and report the tool trace.

这一句话的差距,就是聊天记录和引擎原生构建循环之间的差距。

Frequently asked questions

什么是 Summer Engine MCP 提示词?

这是面向支持 MCP 的 AI 智能体的提示词,指示其连接到 Summer Engine,检查当前项目状态,通过工具在引擎层面进行修改,运行游戏,读取错误,并持续迭代。

哪些智能体可以使用这些提示词?

Claude Code、Cursor、Codex、Gemini CLI、Windsurf、Cline、Roo Code、OpenCode 以及其他 MCP 客户端均可连接 Summer Engine MCP 服务器使用。

Summer Engine 暴露了多少个 MCP 工具?

当前 Summer Engine MCP 服务器提供了一套精简的工具集,涵盖场景编辑、诊断、项目上下文、资产搜索、资产导入和资产生成。具体数量请参阅 MCP 工具参考文档。

Summer Engine MCP 是免费的吗?

本地 MCP 工作流免费使用。托管版 Summer AI、资产生成、存储、多人联机及云端功能属于 Summer 付费服务。