RC

romarogov/cocos-code-mode

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

52 stars 13 forks 품질 69 트렌드 13Apache-2.0

MCP 래퍼를 가진 UTCP 서버를 특색짓는 Cocos Creator를 위한 AI 부호 형태 연장

개요

cocos Creator Editor를 AI-controllable 도구로 변환합니다. 그것은 씬 조작, 자산 관리 및 UTCP 프로토콜을 통해 구조화 된 도구 통화로 구성 된 구성 요소 검사를 노출하는 편집기 내에서 HTTP 서버를 실행합니다. AI 에이전트 빌드, 검사 및 Cocos Creator는 UI를 통해 동일한 방식으로 프로젝트를 수정합니다. 이 도구는 UTCP 코드 모드 환경에서 결합되어 AI 에이전트의 최대 성능과 토큰 효율성을 달성하고 격리 된 JS 샌드 박스에 도구를 호출합니다. 1. Cocos Creator 프로젝트에서 확장 설치 2. CodeMode MCP Server와 확장을 통합 3. 당신에게 에이전트 또는 사용을위한 시스템 프롬프트를 설계 예 4. AI에게 도움을 주고 배우는 방법을 알아보세요! CodeMode는 항상 LLM 컨텍스트에 유지되는 엄밀한 MCP 도구 편향에 대비하여 AI가 가장 익숙한 방법으로 도구를 호출하는 데 도움이되는 접근법입니다.

개요(AI 번역)

Code Mode는 Cocos Creator Editor를 AI-controllable 도구로 변환합니다. 그것은 씬 조작, 자산 관리 및 UTCP 프로토콜을 통해 구조화 된 도구 통화로 구성 된 구성 요소 검사를 노출하는 편집기 내에서 HTTP 서버를 실행합니다. AI 에이전트 빌드, 검사 및 Cocos Creator는 UI를 통해 동일한 방식으로 프로젝트를 수정합니다. 이 도구는 UTCP 코드 모드 환경에서 결합되어 AI 에이전트의 최대 성능과 토큰 효율성을 달성하고 격리 된 JS 샌드 박스에 도구를 호출합니다.

퀵스타트

  1. Cocos Creator 프로젝트에서 확장 설치
  2. CodeMode MCP Server와의 통합 확장
  3. 당신에게 대리인을 위한 체계 신속한 디자인 또는 제공된 예
  4. 당신을 돕고 배우는 방법을 참조하십시오!

코드 모드는 무엇입니까?

CodeMode는 항상 LLM 컨텍스트에 유지되는 엄밀한 MCP 도구 편향에 대비하여 AI가 가장 익숙한 방법으로 도구를 호출하는 데 도움이되는 접근법입니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Code Mode for Cocos Creator

Code Mode turns the Cocos Creator Editor into an AI-controllable tool. It runs an HTTP server inside the editor that exposes scene manipulation, asset management, and property inspection as structured tool calls via UTCP Protocol — letting AI agents build, inspect, and modify Cocos Creator projects the same way a developer would through the UI. These tools are combined in UTCP Code Mode environment to achieve maximum performance and token efficiency for AI agents, letting them call the tools in isolated JS sandbox.

Quickstart

  1. Install extension in the Cocos Creator project
  2. Integrate extension with CodeMode MCP Server
  3. Design a system prompt for you agent or use provided example
  4. Ask AI to help you and see how it learns!

What is Code Mode?

In contrast to rigid MCP tool defenitions, which always kept in LLM context, CodeMode is an approach which helps AI to call tools in the most familiar way - by writing JavaScript code based on TypeScript defenitions of tools. This helps AI to keep token consumption low, implement loops and chained calls for complex tasks, organize output in compact form and reuse output from different existing servers and endpoints in one JavaScript execution context, isolating LLM context from unnecessary data. This opens endless possibilities for interaction between different environments. Here is some examples:

  1. Move scene from blender with Blender MCP, exporting particular objects as FBX straight into Cocos project
  2. Use Figma MCP to fetch UI layout from figma and implement these layouts in your project in the smart way instead of blindly recreating every panel
  3. Use Unity Code Mode to perform game porting between engines
  4. Bring your own examples 🙃

All this becomes possible with community-friendly, flexible and open solution from UTCP team: CodeMode and it’s MCP Server. You can read more about Code Mode concept in papers from Anthropic, Apple and Cloudflare.

Tools

Category Tools Purpose
Scene nodeGetTree, nodeGetAtPath, nodeCreate, nodeCreatePrimitive, nodeOperate Navigate and build scene hierarchy
GitHub에서 전체 README 보기

설치

npx @utcp/code-mode-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "code-mode": { "command": "npx", "args": ["@utcp/code-mode-mcp"], "env": { "UTCP_CONFIG_FILE": "~/.utcp_config.json" } } } }