1. Conduid
  2. Blockchain
  3. Cocos MCP Gateway
MCP server · Blockchain

Cocos MCP Gateway

面向 Codex 等 AI 客户端的本地 Cocos MCP 网关,支持多编辑器实例的安全发现、连接与统一路由。

Unclaimed blockchain
41Fair

Scored 21 hours ago · breakdown

About Cocos MCP Gateway

Cocos MCP Gateway is an MCP server published by HappyLifeOk in the Blockchain category: 面向 Codex 等 AI 客户端的本地 Cocos MCP 网关,支持多编辑器实例的安全发现、连接与统一路由。. Conduid read 27 tools from its source: asset_create, asset_delete, asset_move, asset_query_assets, asset_query_info, asset_query_url and 21 more. No package is published for it, so it installs from a source checkout.

The repository has 8 stars and 3 forks, and its last commit was on 18 Nov 2026. Conduid has no tagged release on record for it. Its topics include blockchain.

Install

From source
git clone https://github.com/HappyLifeOk/cocos-mcp-gateway

Tools (27)

asset_create创建资源(文本内容)
ParameterTypeDescription
content *string
overwriteboolean
url *string
asset_delete删除资源
ParameterTypeDescription
url *string
asset_move移动资源
ParameterTypeDescription
source *string
target *string
asset_query_assets按 pattern 列出资源(glob,如 db://assets/**/*.prefab)
ParameterTypeDescription
ccTypestring可选:cc 类型过滤,如 cc.Prefab
patternstring
asset_query_info按 url 或 uuid 查询资源元数据
ParameterTypeDescription
urlOrUUID *string
asset_query_url由 uuid 反查 url
ParameterTypeDescription
uuid *string
asset_query_uuid由 url 反查 uuid
ParameterTypeDescription
url *string
asset_refresh刷新资源(可指定子目录)
ParameterTypeDescription
urlstring默认 db://assets/
asset_reimport重新导入指定资源
ParameterTypeDescription
url *string
asset_save保存已有资源内容
ParameterTypeDescription
content *string
url *string
local_clean_dev_dir清理 .dev 临时产物
local_get_status获取插件本地状态(git 分支/HEAD、watchers、预览、命令日志)
local_list_worktrees扫描同机其他 worktree 的 dev-reload-info.json
local_open_dev_dir在 Finder 打开 .dev 目录
local_reload_packagereload(disable→enable)指定编辑器扩展,让其 JS 代码改动生效,无需重启编辑器。本质 Editor.Package.disable→enable,fire-and-forget 立即返回。
ParameterTypeDescription
name *string扩展名(package.json 的 name,如 state-ctrl-gen)
prefab_batch[offline] 不需要 Cocos 编辑器运行。从 JSON 文件读取 ops 后批量编辑 prefab。 opsJsonPath 指向一个 JSON 文件,内容为 op 数组(与 prefab_edit 的 ops 格式相同)。 两个路径均必须为绝对路径。
ParameterTypeDescription
filePath *stringprefab 文件的绝对路径
opsJsonPath *stringops JSON 文件的绝对路径
prefab_edit[offline] 不需要 Cocos 编辑器运行。声明式批量编辑 prefab 文件,全部 op 成功后一次性落盘。 支持全局 cocos-mcp-cli 的 batch 操作。 op.node / op.parent / op.refNode 可以是节点名称字符串,或 { id: N } 按 __id__ 定位。
ParameterTypeDescription
filePath *stringprefab 文件的绝对路径
ops *arrayop 描述数组,参考 cli editPrefab 文档
prefab_query[offline] 不需要 Cocos 编辑器运行。查询 prefab 文件节点树或单节点详情。 selector.type 可选: tree(默认)→ 精简节点树 node → { name } 按名称查单节点详情 find → { nodeType } 返回所有匹配 __type__ 的元素 id 列表
ParameterTypeDescription
filePath *stringprefab 文件的绝对路径,如 /path/to/HomeUI.prefab
selectorobject查询选择器,不传时默认 type="tree"
preview_query_url查询当前预览地址
preview_refresh_and_reload一键:刷新资源 + 软重载场景
scene_execute_component_method调用指定节点组件上的方法
ParameterTypeDescription
argsarray
name *string方法名
uuid *string
scene_open_scene打开场景
ParameterTypeDescription
uuid *string场景资源 uuid
scene_query_node查询单个节点完整 dump(含所有组件属性)
ParameterTypeDescription
uuid *string
scene_query_node_tree查询当前场景节点树。传 uuid 查子树,不传查根。
ParameterTypeDescription
uuidstring可选:节点 uuid
scene_save_scene保存当前场景
scene_set_property设置节点/组件属性。path 是 dump path(如 "position" 或 "__comps__.0.string"),dump 是 {type,value}。 ⚠️ 注意:若目的是修改 prefab 资源文件的属性,建议改用 prefab_edit(offline,不需要编辑器运行,直接读写 .prefab 文件,支持嵌套 prefab override);scene_set_property 仅适用于修改运行时场景节点或需要编辑器上下文的场景。
ParameterTypeDescription
dump *object
path *string
uuid *string
scene_soft_reload软重载场景(不清编辑器状态)

Security checks

6 checks have not been run yet.

Questions

About Cocos MCP Gateway

How do I install Cocos MCP Gateway?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Cocos MCP Gateway safe to use with an AI agent?

Its trust score is 41 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cocos MCP Gateway still maintained?

Yes — the last commit was 14 days ago. The repository has 8 stars and 3 forks.

What tools does Cocos MCP Gateway provide?

Conduid read 27 tools from the source: asset_create, asset_delete, asset_move, asset_query_assets, asset_query_info, asset_query_url, asset_query_uuid, asset_refresh and 19 more. 19 of them publish their parameters, listed under Tools above.