@dynamic-labs-sdk/droplet-mcp

中文文档
1.51.0发布于 2026/11/11TypeScriptES Module近 30 天下载 3281

An MCP (Model Context Protocol) server that exposes Droplet's component manifest to coding agents. It provides three tools — list-components, get-details, and search-components — so AI coding assistants can discover and reason about the available UI

原始使用文档
文档目录5 节
  1. Usage
  2. Build
  3. Run
  4. Environment variables
  5. MCP registration ( .mcp.json )

@dynamic-labs-sdk/droplet-mcp

An MCP (Model Context Protocol) server that exposes Droplet's component manifest to coding agents. It provides three tools — list-components, get-details, and search-components — so AI coding assistants can discover and reason about the available UI components without reading raw source files.

Usage

Build

pnpm build

Run

node dist/index.js

By default the server reads ./components.json. Set DROPLET_MANIFEST to override:

# Local file
DROPLET_MANIFEST=./manifests/components.json node dist/index.js

# Remote URL (Storybook-generated manifest)
DROPLET_MANIFEST=https://your-storybook.example.com/manifests/components.json node dist/index.js

Environment variables

VariableDefaultDescription
DROPLET_MANIFEST./components.jsonPath or http(s):// URL to the Storybook-generated manifests/components.json

MCP registration (.mcp.json)

Add the server to your project's .mcp.json so your coding agent picks it up automatically:

{
  "mcpServers": {
    "droplet": {
      "command": "node",
      "args": ["./node_modules/@dynamic-labs-sdk/droplet-mcp/dist/index.js"],
      "env": {
        "DROPLET_MANIFEST": "./manifests/components.json"
      }
    }
  }
}

版本与发布记录

@dynamic-labs-sdk/droplet-mcp 共发布 65 个版本,首次发布于 2026/06/25;过去 12 个月发布了 65 个版本。

版本发布日期距今
1.51.0latest2026/11/112 天前
1.50.02026/11/058 天前
1.49.12026/11/0210 天前
1.49.02026/10/3113 天前
1.48.02026/10/3014 天前
1.47.02026/10/2816 天前

关于 @dynamic-labs-sdk/droplet-mcp 的常见问题

@dynamic-labs-sdk/droplet-mcp 是什么?

An MCP (Model Context Protocol) server that exposes Droplet's component manifest to coding agents. It provides three tools — list-components, get-details, and search-components — so AI coding assistants can discover and reason about the available UI

如何安装 @dynamic-labs-sdk/droplet-mcp?

在项目目录运行 npm install @dynamic-labs-sdk/droplet-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 droplet-mcp,可以用 npx droplet-mcp 直接运行。

@dynamic-labs-sdk/droplet-mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@dynamic-labs-sdk/droplet-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@dynamic-labs-sdk/droplet-mcp 可以商用吗?

@dynamic-labs-sdk/droplet-mcp 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@dynamic-labs-sdk/droplet-mcp 的下载量有多少?

根据 npm 官方下载统计,@dynamic-labs-sdk/droplet-mcp 在 2026/10/13 – 2026/11/11 这 30 天内被下载 3,281 次,日均约 109 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dynamic-labs-sdk/droplet-mcp 还在维护吗?

最新版本 1.51.0 发布于 2026/11/11(2 天前);至今共发布 65 个版本,其中过去 12 个月发布了 65 个;首次发布于 2026/06/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。