Cocos Creator
STREAMABLE HTTPCocos Creator MCP server with 16 tools for game development and AI asset generation
Cocos Creator MCP server with 16 tools for game development and AI asset generation
A Cocos Creator extension that implements a Model Context Protocol (MCP) server with Streamable HTTP transport. This extension runs directly within Cocos Creator - no external tools, bridges, or setup required. Simply install the extension and start connecting AI assistants to your game development workflow.
Example of the game created fully with AI agent prompts only with this extension
http://localhost:3000/mcpA carefully curated collection of 16 powerful tools designed for maximum AI efficiency:
query_nodes - Inspect scene hierarchy with granular detail controlquery_components - Discover component properties with types and tooltipsget_available_asset_types - Enumerate all available asset typesget_available_component_types - Enumerate all available component typesget_assets_by_type - Query assets by specific typecreate_nodes - Bulk node creation with components and transformsmodify_nodes - Batch property updates, hierarchy changes, component managementmodify_components - Precise component configuration with UUID targetinggenerate_image_asset - ⚡ Advanced AI-powered asset creationoperate_assets - Comprehensive asset operations (create, copy, move, delete, inspect)operate_current_scene - Scene lifecycle management (open, save, configure)operate_prefab_assets - Full prefab workflow (create, edit, close)node_linked_prefabs_operations - Prefab instance management (edit, unwrap, reset)operate_project_settings - Project configuration (layers, collisions, design resolution)execute_scene_code - Direct TypeScript/JavaScript execution in scene contextoperate_scripts_and_text - Comprehensive file operations (read, write, search, replace)Transform your asset creation workflow with advanced AI capabilities:
Multi-Modal Generation Modes:
Provider Ecosystem:
Advanced Features:
AI-Optimized Workflow:
Panel -> cocos-mcp -> MCP Server Control Panel and click Starthttp://localhost:3000/mcpgenerate_image_asset MCP toolhttp://localhost:7860The extension consists of several key components:
source/panels/default/): Vue3-based UI for controlling the MCP serversource/mcp/server-manager.ts): Manages the HTTP server and MCP transportsource/mcp/tools/): Provide actions for modifying the project# Install dependencies npm install # Build the extension npm run build
source/mcp/tools/server.registerTool() with Zod schemaserver-manager.ts@modelcontextprotocol/sdk - MCP TypeScript SDKexpress - HTTP server frameworkzod - Schema validationvue - UI framework for the panelThis project is licensed under the MIT License.