[返回 MCP 概览](https://www.summerengine.com/zh/mcp)

Summer Engine MCP 指南

# 如何用 Local LLMs 和 Summer Engine 制作游戏

把 Local LLMs 连接到 Summer Engine，通过 MCP 在桌面引擎中制作、运行和测试真实游戏。 Summer Engine 是桌面游戏引擎；Local LLMs 通过 MCP 用一个在你自己硬件上运行的模型来驱动它。

$ npx -y summer-engine@latest setup lm-studio --yes

Local LLMs 在你的硬件上免费运行。Summer Engine 展示游戏。

01

## Summer 可免费用于 MCP

下载桌面引擎并把它连接到你的 agent。模型在你自己的硬件上运行，没有 AI 订阅，也没有按消息计费。

02

## 打开 Local LLMs

在你自己的 GPU 上运行免费的本地模型。setup 会写入 MCP 配置，让 {agentLabel} 直接驱动引擎。

03

## 运行 Summer 游戏

本地模型写代码。Summer Engine 展示 Summer 游戏、运行 Play mode，并帮助检查错误。导出仍需要目标平台的模板和工具链。

安装

## 把 Summer 连接到 Local LLMs

1. 1  
### 安装 Summer Engine  
下载桌面引擎应用，约 1 GB。如果已经安装 Summer Engine，或只需要为其他引擎做的游戏生成素材和视频，可以跳过。  
$ npx -y summer-engine@latest install
2. 2  
### 登录  
会打开一次浏览器。CLI 和引擎共用同一个会话。  
$ npx -y summer-engine@latest login
3. 3  
### 连接 Local LLMs  
写入 summer-engine 的 MCP 配置，并安装 Summer 游戏开发 skills。  
$ npx -y summer-engine@latest setup lm-studio --yes
4. 4  
### 重启并开始制作  
重启 Local LLMs 以加载 summer-engine 服务器，然后让它做一个游戏。

配置说明

## 2026 年的实际情况。

### Easiest: LM Studio

One app for the model and the MCP host. The setup command above writes the config; pick a model, raise its context to 32k+, and build. See the LM Studio guide for details.

### Terminal: OpenCode + Ollama

The most common 2026 pairing. Ollama serves the model, OpenCode is the agent. Start Ollama with OLLAMA\_CONTEXT\_LENGTH=65536 — the 4k default silently breaks MCP. See the Ollama guide.

### What to run

gpt-oss-20b on 12–16 GB of VRAM, Qwen3-Coder-30B or Gemma 4 27B on 24 GB, Q4\_K\_M quantization or better. Engine control and asset search are free; cloud generation uses credits.

为什么重要

## Local LLMs 在你的硬件上免费运行。Summer Engine 展示游戏。

足够强的本地模型可以通过 MCP 操作真正的引擎，打开场景、放置物体、运行项目、读取错误。思考由你的 GPU 完成，没有订阅，没有按 token 计费，你的 prompt 也永远不会离开你的机器。

其他设置指南

## 从 Local LLMs 开始。在 Summer 里构建。

免费安装桌面应用，连接 MCP 服务器，让你的第一个场景变得可玩。无需订阅。

[Download](https://www.summerengine.com/zh/download)

[Docs ](https://docs.summerengine.com/mcp/overview)

Source: https://www.summerengine.com/zh/mcp/how-to-make-games-for-free-with-local-llms

---

## Machine-readable resources

- Site index for agents: https://www.summerengine.com/llms.txt
- Full inlined content: https://www.summerengine.com/llms-full.txt
- Porting catalog: https://www.summerengine.com/llms-porting.txt
- Structured catalog: https://www.summerengine.com/agent-catalog.json
- Sitemap: https://www.summerengine.com/sitemap.xml
- Developer resources: https://www.summerengine.com/docs
- Summer API (assets from any agent or code; public per-call model prices): https://docs.summerengine.com/api