shadcn-ui MCP 服务器

shadcn-ui MCP 服务器

为 shadcn/ui 组件提供参考信息的 MCP 服务器。

快速入门

  1. 克隆仓库并安装依赖: npm install

  2. 构建服务器: npm run build

  3. 启动开发模式(自动重建): npm run watch

  4. 配置到支持的工具中:

    • Claude Desktop: 修改配置文件,添加本地或 npx 命令。
    • Windsurf: 更新 model_config.json 文件。
    • Cursor: 编辑 .cursor/mcp.json 文件。
  5. 使用调试工具:运行 npm run inspector 打开调试页面。