DC-COCO-MCP
Enables AI clients to control Cocos Creator editor projects, scenes, nodes, components, assets, Prefabs, building, and diagnostics via the MCP protocol.
README
DC-COCO-MCP
DC-COCO-MCP 是一个 clean-room 自研的 Cocos Creator MCP 扩展,用于让 AI 客户端通过 MCP 调用控制 Cocos Creator 编辑器中的项目、场景、节点、组件、资源、Prefab、构建和诊断流程。
本项目目标是成为 Cocos Creator 日常开发工具,而不是商业插件源码的反编译版本。
当前状态
- Cocos Creator 兼容目标:
3.8.8优先,保留>=3.7.0的兼容意图。 - MCP endpoint:默认
http://127.0.0.1:3000/mcp。 - 语言与工具链:TypeScript、pnpm、
@modelcontextprotocol/sdk。 - 当前实现范围:P0-P4 基础能力、操作安全、组件 schema、资源系统、Builder 生产化和面板控制台的第一版。
已实现能力
- Cocos Creator 扩展壳:菜单、面板、生命周期、设置、日志、服务启停、场景脚本。
- MCP HTTP 服务:支持
initialize、tools/list、tools/call。 - 统一工具返回:
ok、data、changeSummary、warnings、errors、artifacts。 - 场景与节点:项目信息、场景树、节点查找、节点信息、创建、更新、删除、重挂父节点。
- 组件:组件列表、添加、更新、删除、schema 查询和参数校验。
- 资源:搜索、信息、
.meta、刷新、依赖、被依赖、移动、删除、导入图片、SpriteFrame 解析。 - Prefab:创建、实例化、信息读取、保存、解绑。
- Builder:预设、运行、状态、日志、诊断、输出目录打开和清理。
- 操作安全:操作历史、备份、撤销、dry-run、批量预览。
- 面板控制台:项目状态、MCP 状态、工具管理、常用动作、日志诊断。
Clean-room 边界
本项目只做功能级自研实现:
- 不反混淆商业插件。
- 不复制商业插件源码、UI、授权逻辑、sidecar 或加密载荷。
- 功能设计依据来自公开 Cocos Creator 扩展 API、公开 MCP 协议、公开文档和自研能力拆解。
安装与开发
pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm lint
开发构建完成后,把项目目录作为 Cocos Creator 扩展放入目标项目的 extensions/dc-coco-mcp,或使用符号链接指向本仓库。
常用命令
pnpm build
pnpm typecheck
pnpm test
pnpm lint
pnpm smoke
验收报告
完整阶段性实现与验收记录见:
许可证
当前仓库公开可见,但还没有授予开源许可证。未经作者明确授权,不应复制、分发或商用本项目代码。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.