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

@codify-ai/mcp-client

v1.0.30

Published

Codify MCP 客户端 - 连接到远程 Codify MCP 服务器,供 CLI 或 Cursor 等 IDE 使用

Downloads

1,650

Readme

@codify-ai/mcp-client

Version License Node

Codify MCP 客户端 - 连接 MasterGo 和 IDE / CLI 的桥梁

通过 MCP 协议从远程 Codify 服务器获取代码

快速开始 · 功能特性 · 可用工具 · Codify 仪表盘


功能特性

  • 🔌 一键安装:使用 npx 无需手动下载
  • 📡 MCP 协议:完美集成 Cursor 等支持 MCP 的 IDE
  • 🔐 安全认证:支持 access_key 认证
  • 🛠️ 全能工具箱:包含代码获取、设计稿生成、双向同步等 10+ 个专业工具
  • 📦 资源访问:通过 URI Codify://get_code/{content_id} 访问代码

快速开始

1. 配置 MCP

例如:编辑 ~/.cursor/mcp.json(如果文件不存在则创建):

{
  "mcpServers": {
    "codify": {
      "command": "npx",
      "args": [
        "-y",
        "@codify-ai/mcp-client",
        "--url=https://mcp.codify-api.com"
      ],
      "env": {
        "CODIFY_ACCESS_KEY": "sk-your-access-key"
      }
    }
  }
}

2. 重启IDE / CLI

重启Cursor、VSCode、Trae 等 IDE 或者 CLI 工具,或重新加载 MCP 服务器配置。

3. 开始使用

在IDE / CLI 中,您可以:

方式 1:将设计稿给其他人(研发)拉取代码到本地

在 Codify 插件中选中一个元素,复制的指令然后给到其他人来获取代码。

无需启动 MasterGo,直接在 IDE 中输入该指令即可获取代码。

codify://getCode/{contentId}

方式 2:使用 AI 工具进行设计稿与代码的双向交互

直接在对话框输入指令,AI 会自动识别并调用工具:

  • "获取 MasterGo 中选中的图层代码" (get_selection_code)
  • "使用Codify design 工具设计一个深色模式的统计仪表盘" (design)
  • "修改设计稿选中的图层,改为红色背景" (agent_update_node)
  • "将我选中的图层删除" (agent_remove_node)
  • "将我选中的图层,同步到本地代码" (agent_sync_design)
  • "对比本地代码与设计稿的差异" (get_design_diff)

方式 3:引用核心规范资源

在对话中通过或直接输入 URI 引用:

  • codify://generation-rules

    • 逆向转译与代码规范: 你需要让 LLM 严格遵守转译代码规范才能完美的将它转译为 MasterGo 设计稿。当你需要将你已有的前端项目转换为设计稿的时候,必须让 LLM 读取此文档。
  • codify://design-philosophy

    • 核心设计哲学: Codify为你总结了一套非常实用的UI设计哲学,它能够让LLM在生成页面的时候,保持优秀的设计审美。

可用工具

🔍 获取与比对

get_selection_code

获取 MasterGo 中当前选中图层(或指定图层)的代码。支持根节点完整保存,以及子节点自动合并到本地基准 HTML 文件。

  • 参数: projectDir (必填), targetNodeId (可选), syncToBase (可选, 默认 true)
  • 示例: "获取当前选中图层的代码"

get_design_diff

获取最新设计稿代码与本地 .codify 目录中旧代码的差异 (Diff)。用于全量或局部同步。

  • 参数: projectDir (必填), targetNodeId (可选), filePath (可选)
  • 示例: "对比最新设计稿,看看有哪些改动"

get_code_list

列出所有可用的代码列表。

  • 参数: 无
  • 示例: "查看我可以拉取的代码列表"

get_code

通过 contentId 获取特定代码并保存到本地。

  • 参数: contentId (必填), projectDir (必填), outDir (必填), documentId (可选)
  • 示例: "从频道 demo-123 获取代码"

🎨 生成与设计

design

根据自然语言需求生成符合 Codify 规范的 HTML+CSS 代码。

  • 参数: requirement (必填)
  • 示例: "帮我设计一个深色模式的登录页面"

agent_create_page

将生成的 HTML 代码发送到 MasterGo 插件并创建新页面。

  • 参数: code (可选), filePath (可选), projectDir (必填), saveCodeToLocal (可选)
  • 示例: "在 MasterGo 中创建一个新页面,代码在 ./temp.html"

agent_create_component

创建一个 MasterGo 母版组件或组件集(变体)。

  • 参数: code (必填)
  • 示例: "将这段 HTML 创建为 MasterGo 组件"

🛠️ 操作与更新

agent_update_node

将修改后的 HTML 代码发回 MasterGo 进行局部更新。注意:必须包含 data-node-id

  • 参数: code (必填), targetNodeId (可选), documentId (可选)
  • 示例: "更新选中的按钮颜色为蓝色"

agent_sync_design

将本地完整的静态 HTML 文件内容全量同步覆盖到 MasterGo 画布。

  • 参数: filePath (必填), targetNodeId (必填, 根节点 ID), documentId (可选)
  • 示例: "同步本地 index.html 到设计稿根节点"

agent_remove_node

在 MasterGo 中删除指定的或当前选中的图层。

  • 参数: targetNodeId (可选), documentId (可选)
  • 示例: "删除选中的图层"

👤 系统信息

get_user_info

查看当前登录用户信息、团队信息以及配额使用情况。

  • 参数: 无
  • 示例: "查看我的配额还剩多少"

许可证

MIT

贡献

欢迎提交 Issue 和 Pull Request!


Made with ❤️ by Codify Team