HappyLifeOk/cc-3-8-x-mcp
FreeCocos Creator 3.8.x 的 MCP 服务 + 离线 CLI,把编辑器的场景 / 资源 / 预览 / 构建 / 进程控制暴露给 AI 客户端,并附带 headless prefab 读写与命令行打包。
About HappyLifeOk/cc-3-8-x-mcp
cc-3-8-x-mcp is an open-source MCP (Model Context Protocol) bridge extension for Cocos Creator 3.8.x. It exposes the editor's scene, asset, preview, and local state capabilities to AI clients (such as Claude Code) via the MCP protocol, enabling AI-assisted game development workflows. The tool includes three main components: an editor extension that runs inside the Cocos Creator process and provides an HTTP MCP server; a stdio router that aggregates multiple editor instances and offline prefab tools; and a standalone CLI (cocos-mcp-cli) for offline read/write of .prefab files without requiring the editor to be running. The tool supports multi-instance editing, heartbeat-based instance discovery, a debug panel with JS injection, and a comprehensive set of tools for scene manipulation (query/set properties, open/save scenes), asset management (query/import/create/delete), preview control (URL, browser, screenshot), and local state management.
Key Features
Pros & Cons
- Bridges AI clients to Cocos Creator editor, enabling AI-driven game development
- Offline prefab editing capability reduces dependency on editor for file modifications
- Multi-instance support allows managing multiple projects simultaneously
- Heartbeat-based auto-discovery of editor instances simplifies configuration
- Includes detailed documentation (AGENTS.md, QUICK-REF.md, doc/) for both AI agents and human users
- Open source with permissive MIT license
- Feature-rich debug panel with real-time status, command logs, and JS injection
- Limited to Cocos Creator 3.8.x; not compatible with other versions
- Requires Node.js runtime and some setup (MCP client configuration)
- Relatively new tool; community and documentation may still be maturing
- Some features depend on the Cocos Creator editor running; offline CLI covers only prefab/anim files