npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cocos-meta-mcp

v2.2.0

Published

Self-evolving MCP for Cocos Creator — stdio server, project extension, and Cursor setup (recipe promote)

Downloads

1,201

Readme

    ╭────────────────────────────────╮
    │                                │
    │          /\___/\               │
    │         (  ◕ ω ◕ )             │
    │          >  ♡  <               │
    │     ~~  \_____/  ~~            │
    │  ~~~~~~~~~~~~~~~~~~~~~         │
    │                                │
    │       CocosMetaMCP             │
    │                                │
    ╰────────────────────────────────╯

CocosMetaMCP

English

Cocos Creator MCP + 扩展桥,让 Cursor 等客户端通过 AI 驱动编辑器内脚本与资源操作。

安装

需要:Node.js 18+Cocos Creator 3.8+Cursor(或其它 MCP 客户端)。

npm(推荐)

npm install -g cocos-meta-mcp
cocos-meta-mcp setup --project-root D:/path/to/your-cocos-project

克隆仓库(开发)

git clone https://github.com/shinjiyu/cocos_meta_mcp.git
cd cocos_meta_mcp && npm install
npm run setup -- --project-root D:/path/to/your-cocos-project

在 Cocos 工程目录下可省略 --project-root(自动探测)。

Creator

  1. 完全退出并重启 Creator,打开对应工程
  2. 扩展 → 扩展管理器 → 项目 → 启用 cocos-meta-mcp
  3. 控制台:MCP HTTP bridge http://127.0.0.1:3921

Cursor

安装脚本写入 %USERPROFILE%\.cursor\mcp.json。在 Cursor MCP 设置里确认已连接(改配置后关闭再打开该 MCP 即可)。

默认 workflow 会启用 MCP 插件 asset-metaasset-sync,并开启 recipe 提升。自研插件:cocos-meta-mcp plugin install --from <仓库路径>,详见 docs/PLUGINS.md

验证

  1. Creator 中启用 cocos-meta-mcp
  2. Cursor Agent 调用 cocosmcp_healthcocosmcp_exec

核心能力:脚本自动提升为 Tool

cocos-meta-mcp setup 默认 workflow 已开启 recipe 提升(COCOSMCP_RECIPE_LAYER=2)。Agent 可发现高频脚本并提升为独立 MCP Tool。

cocosmcp_exec(探索)
      │
      ▼
exec 审计日志 ──► cocosmcp_exec_stats(找高频脚本)
      │
      ▼
cocosmcp_register_recipe(保存到 .cocosmcp/recipes/)
      │
      ▼
cocosmcp_promote_recipe ──► cocosmcp_r_{name}(独立 Tool,通知 Cursor 刷新列表)

| 阶段 | 暴露的 Tool | 说明 | |------|-------------|------| | 默认 | cocosmcp_exec | 通用入口,在 Creator 内执行任意脚本 | | 探索后 | cocosmcp_run_recipe | 运行已注册 recipe,无需重复写 code | | 提升后 | cocosmcp_r_{name} | 升格为一级 Tool,Agent 直接选用 |

数据保存在 {工程}/.cocosmcp/,可进 Git 与团队共享。

仅要 cocosmcp_exec 时可设 COCOSMCP_RECIPE_LAYER=0setup --cursor-profile minimal)。

| 值 | 能力 | |----|------| | 0 | 仅 cocosmcp_exec | | 1 | + recipe 注册 / 运行 / 统计、插件管理 | | 2setup 默认) | + promote / demote(提升为独立 Tool) |

详见 docs/RECIPES.md

文档

| 主题 | 链接 | |------|------| | MCP 插件安装 | docs/PLUGINS.md | | Recipe / 提升详解 | docs/RECIPES.md | | 分层架构与插件 | docs/LAYERS.md | | 安装参数 | docs/INSTALL.md | | npm 发布 | docs/NPM.md |