@besaitech/ng-design-system-mcp

中文文档
0.0.31发布于 2026/11/05UNLICENSEDES Module近 30 天下载 1985

MCP server that exposes the @besaitech/ng-design-system Angular component library documentation (API, examples, tokens, icons, setup) to AI coding tools.

原始使用文档
文档目录8 节
  1. Install
  2. Register the server
  3. Claude Code
  4. .mcp.json (committed in a consuming repo)
  5. Cursor / Windsurf
  6. What it provides
  7. Contributor mode (inside the monorepo)
  8. How it is built & released

@besaitech/ng-design-system-mcp

An MCP server that exposes the @besaitech/ng-design-system Angular component library documentation to AI coding tools (Claude Code, Cursor, Windsurf…).

It lets the assistant look up real selectors, inputs, enum values, outputs (including two-way model() change-events), exported types, content-projection slots, design tokens, registered icon names, copyable examples, and the Tailwind-v4 setup — then validate the code it generates — so it stops guessing the API.

The documentation is generated from the library source at build time and bundled into this package as data/docs.json, version-stamped to the library release it describes. It never drifts and never calls the network.

Install

Published to the public npm registry, same as the library it documents:

npm install -g @besaitech/ng-design-system-mcp

No scope mapping, no .npmrc and no token needed.

Register the server

Claude Code

claude mcp add saitech-design-system -- npx -y @besaitech/ng-design-system-mcp

.mcp.json (committed in a consuming repo)

{
  "mcpServers": {
    "saitech-design-system": {
      "command": "npx",
      "args": ["-y", "@besaitech/[email protected]"]
    }
  }
}

Pin the same version as your installed @besaitech/ng-design-system so the docs match the code you ship. The sds://meta resource and sds_get_setup echo the bundled libraryVersion so the agent can confirm what it is coding against.

Cursor / Windsurf

Use the identical stdio command in the tool's MCP config (command: npx, args: ["-y", "@besaitech/ng-design-system-mcp"]).

What it provides

Tools

toolpurpose
sds_list_componentsdiscover the catalogue (filter by kind / group)
sds_get_componentfull API for one component (fuzzy: class name, selector, or bare name)
sds_get_examplescurated, copyable snippets grouped by section
sds_searchkeyword search across names, descriptions, inputs, types, examples
sds_validate_usagelint generated markup (selectors, inputs, enums, required, icons, CVA [value])
sds_validate_iconcheck an <sds-icon name> against the registry (+ suggestions)
sds_get_tokendesign tokens with Tailwind utility + CSS variable
sds_get_setupinstall + Tailwind-v4 checklist (the #1 "renders unstyled" fix)

Resources — sds://docs.json, sds://meta, sds://component/{selectorOrClass}, sds://components/{selector}.md, sds://llms.txt.

Prompts — sds_generate_component_usage, sds_scaffold_form, sds_build_data_table.

Contributor mode (inside the monorepo)

To serve docs from a live working tree (re-extracts from source on startup, no rebuild):

node packages/mcp-server/dist/index.js --source /path/to/saitech-design-system

--data <path> serves a specific docs.json. --http is reserved for a future shared instance (currently falls back to stdio).

How it is built & released

From the workspace root:

npm run docs:index     # regenerate data/docs.json (+ docs/ by-products) from source
npm run build:mcp      # docs:index, then tsc -> dist/
npm run release:mcp    # bump, build, publish to npm
npm run release:all    # release the library, then this server (lockstep)

prebuild:lib regenerates the index before every ng build saitech-design-system, and CI (npm run check:docs) fails if the committed index drifts from source.

版本与发布记录

@besaitech/ng-design-system-mcp 共发布 27 个版本,首次发布于 2026/09/01;过去 12 个月发布了 27 个版本。

版本发布日期距今
0.0.31latest2026/11/052 天前
0.0.302026/11/025 天前
0.0.292026/10/2613 天前
0.0.282026/10/2613 天前
0.0.272026/10/2316 天前
0.0.262026/10/1722 天前

关于 @besaitech/ng-design-system-mcp 的常见问题

@besaitech/ng-design-system-mcp 是什么?

MCP server that exposes the @besaitech/ng-design-system Angular component library documentation (API, examples, tokens, icons, setup) to AI coding tools.

如何安装 @besaitech/ng-design-system-mcp?

在项目目录运行 npm install @besaitech/ng-design-system-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 saitech-design-system-mcp,可以用 npx saitech-design-system-mcp 直接运行。

@besaitech/ng-design-system-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/besaitech__ng-design-system-mcp 是否存在。

@besaitech/ng-design-system-mcp 支持 ESM 还是 CommonJS?

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

@besaitech/ng-design-system-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@besaitech/ng-design-system-mcp 可以商用吗?

@besaitech/ng-design-system-mcp 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@besaitech/ng-design-system-mcp 的下载量有多少?

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

@besaitech/ng-design-system-mcp 还在维护吗?

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