cocos-mcp-server
Integrates with Cocos Creator 3.8.8 via a local Manager/Worker architecture, allowing agents to list projects and perform project-scoped write operations with preflight checks, revision comparison, execution, readback verification, and partial change reporting.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cocos-mcp-serverList my open Cocos Creator projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cocos MCP Server 0.0.1-dev.0 (Development Version)
Current branch:
develop· Current status: in development · No official release version currentlyPackage version is
0.0.1-dev.0; protocol and Tool contract version remains0.0.1.
A local multi-project MCP extension for Cocos Creator 3.8.8. Cocos Dashboard handles project creation, import, Creator version selection, and launch; the Worker in the extension registers with the local Manager, the Agent only connects to the Manager, and explicitly provides projectId in each project-level call.
Development Status
Code and verification work is based on the
developbranch;mainis not the current development branch.The current package is a development version and cannot be distributed directly as an official release package.
Package version
0.0.1-dev.0indicates the current development pre-release state; the protocol, Schema, and Tool contracts still use0.0.1.Commands such as
verify:releaseandbuild:releaseare release gates and candidate package verification tools during the development phase; passing them does not mean an official release has been published.Before the official release, a clean candidate version, Direct Creator Live, Dashboard Creator Live, and a closed release evidence loop are still required.
Related MCP server: mcp-bridge
Core Boundaries
Version: package
0.0.1-dev.0; protocol/contract0.0.1; release statusdevelopmentConnection:
http://127.0.0.1:38488/mcpTransport: MCP Streamable HTTP
Agent connection: no authentication; only loopback addresses and valid Host/Origin are allowed
Project launch: user projects can only be launched through Cocos Dashboard; only Direct Creator Live starts and terminates the Runner's own temporary Fixture, and never touches user projects
Multi-project: one Manager routes multiple started Workers; the Manager automatically exits when the last Worker goes offline and there are no pending startups
Write operations: pre-check, revision comparison, execution, read-back verification, partial change reporting
Not provided: transactions, automatic rollback, file backups, MCP operation history, or audit logs
Development Installation
npm install
npm run buildPlace the extension directory into the target project:
<project>/extensions/cocos-mcp-serverThen through Cocos Dashboard:
Import or select the project;
Select Cocos Creator
3.8.8;Launch the project;
Wait for the extension Worker to register with the Manager.
Do not launch user projects by directly executing the CocosCreator executable; this bypasses Dashboard's version and login context. Direct Creator Live only applies to the Runner's own disposable temporary Fixture.
Agent Connection
MCP client connection:
http://127.0.0.1:38488/mcpExample configuration:
{
"mcpServers": {
"cocos": {
"url": "http://127.0.0.1:38488/mcp"
}
}
}Recommended flow after connecting:
MCP
initialize;MCP
tools/listto discover the Tools and Schemas registered with the Manager;Call
system_control.list_projects;Select the target
projectId;Before generating an execution plan, the Agent prompts for the scope and impact that require player confirmation, based on Action metadata;
Execute write operations serially per project and check the returned revision, verification, and ChangeManifest.
The Cocos panel does not handle approval, and MCP does not issue approval tokens. Approval prompts remain uniformly in the Agent context.
Dirty Scenarios
Only supported:
reject
saveDefault is reject. discard is not supported; unsaved modifications will not be silently discarded.
Common Commands
npm run build
npm test
npm run test:unit
npm run test:integration
npm run test:e2e
npm run test:live:matrix
npm run build:release
npm run scan:releaseCreator Live
Creator Live is used for development-phase verification and does not replace the complete evidence required for an official release.
Direct Temporary Fixture Mode (Default)
The default mode of npm run test:live is Direct: the Runner copies the read-only Fixture, then directly executes Creator -nologin only on the copy created this time, and only sends SIGTERM to the temporary Creator child process it tracks itself. It does not launch, save, close, or terminate any user project.
npm run test:live
npm run test:live:direct
npm run test:live:action -- LIVE-SYS-001
npm run test:live:action:direct -- LIVE-SYS-001Dashboard Temporary Fixture Mode
Dashboard mode also only prepares the Runner's own temporary Fixture, but does not directly launch or close Creator; the Runner outputs the manifest and absolute project path, and the operator imports, launches, and exits these temporary projects in Cocos Dashboard.
npm run test:live:dashboard
npm run test:live:action:dashboard -- LIVE-SYS-001Attach Mode
Attach only connects to temporary Fixtures that have been launched through Dashboard and explicitly registered in the Runner manifest; it is a read-only acceptance mode.
npm run test:live:attach
npm run test:live:action:attach -- LIVE-SYS-001To attach to a current Dashboard run, the manifest generated by that run must be explicitly specified; the Runner does not scan directories or silently select the "latest" manifest:
COCOS_MCP_LIVE_DASHBOARD_MANIFEST=/absolute/path/cocos-mcp-live-dashboard-XXXXXX/dashboard-fixtures.json \
npm run test:live:attach
COCOS_MCP_LIVE_DASHBOARD_MANIFEST=/absolute/path/cocos-mcp-live-dashboard-XXXXXX/dashboard-fixtures.json \
npm run test:live:action:attach -- LIVE-SYS-001Repository Documentation
Contract snapshots, test fixtures, and implementation code are all stored in this repository; there is no dependency on relative-path documentation in the Cocos parent project.
Troubleshooting
Manager Unavailable
Confirm that at least one project launched through Cocos Dashboard is still online. The Manager does not run as a resident project manager; it automatically exits when there are no Workers and no pending startups.
Project Does Not Appear
Confirm the Creator version is
3.8.8;Confirm the project contains the built extension;
Check that
projectIdinsettings/cocos-mcp.jsonmatches the current project identity;Do not open two projects with the same
projectIdbut different paths at the same time.
Port Change Does Not Take Effect Immediately
While the Manager is running, it only updates the desired port and does not restart online. Exit all projects through the visible Cocos GUI, wait for the last Worker to unregister and the Manager to exit automatically; after launching the project again from Dashboard, the new Manager will use the new port.
Write Operation Failed
Check first:
Whether
projectIdis correct;Whether the permission category allows it;
Whether the path is within the project scope;
Whether
expectedRevisionsis stale;Whether the current Scene/Prefab is Dirty;
Whether Creator AssetDB, Scene, or compilation state is ready.
Recovery is handled by the Agent Session and Git; MCP does not implement transactions or automatic rollback.
Development-Phase Release Verification
The following commands are used to verify development candidate packages and do not represent an official release:
# 普通 CI:干净安装、构建、测试、契约、扫描和高危依赖审计
npm run verify:release:ci
# 开发候选包的完整验证步骤
npm run test:live:release
npm run test:live:dashboard:release
npm run release:evidence
npm run verify:releaseBefore the official release, Direct Creator Live, Dashboard Creator Live, SBOM, checksums, and provenance must be completed on a clean and committed candidate version, and the release must be explicitly approved by the maintainer. dist/release/ and dist/release/release/ are both build artifacts and are not included in Git.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to directly control the Cocos Creator 3.8.x editor via MCP protocol, providing over 130 tools for scene, node, component, asset, and project operations.2337MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for Cocos Creator that enables AI tools to automate scene editing, resource management, and project operations via HTTP and stdio interfaces.22218MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to directly control the Cocos Creator game editor via MCP protocol, supporting scene management, node manipulation, component attachment, and asset management.231MIT
- AlicenseNot gradedqualityCmaintenanceA comprehensive MCP server for Cocos Creator 3.8+ that enables AI assistants to interact with the editor via 50+ tools for scene, node, component, prefab, asset, and project management.23MIT
Related MCP Connectors
Project management MCP for AI agents with safe task reads and writes.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lmznhq/cocos-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server