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

Summer Engine MCP 指南

# 如何用 LM Studio 和 Summer Engine 制作游戏

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

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

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

01

## Summer 可免费用于 MCP

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

02

## 打开 LM Studio

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

03

## 运行 Summer 游戏

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

安装

## 把 Summer 连接到 LM Studio

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  
### 连接 LM Studio  
写入 summer-engine 的 MCP 配置，并安装 Summer 游戏开发 skills。  
$ npx -y summer-engine@latest setup lm-studio --yes
4. 4  
### 重启并开始制作  
重启 LM Studio 以加载 summer-engine 服务器，然后让它做一个游戏。

配置说明

## 2026 年的实际情况。

### LM Studio is the whole stack

LM Studio is both the model runtime and an MCP host. The setup command writes \~/.lmstudio/mcp.json; toggle the summer-engine server on in the Program tab, and every engine call shows a confirmation dialog you can review before it runs.

### Raise the context before you build

Models load with the context length baked into their metadata — often around 4k, which MCP tool schemas overflow silently. Set 32k or more when loading the model, and keep KV-cache quantization off for long agent sessions.

### Models that hold up

gpt-oss-20b is the safe default on 12–16 GB of VRAM; Qwen3-Coder-30B and Gemma 4 27B are the 24 GB picks. On Apple Silicon, prefer the MLX builds — faster and more memory-efficient in long agentic loops.

为什么重要

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

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

其他设置指南

## 从 LM Studio 开始。在 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-in-lm-studio

---

## 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