@smwb/ui-mcp-solid

中文文档
2.9.2发布于 2026/11/02MITES Module

Model Context Protocol server exposing the @smwb/ui-solid (SolidJS) component catalog and customization guide.

原始使用文档
文档目录7 节
  1. Tools
  2. Run
  3. Cursor ( .cursor/mcp.json ) / Claude Desktop config
  4. Example flow
  5. SSR
  6. How the catalog is built
  7. License

@smwb/ui-mcp-solid

A Model Context Protocol (MCP) stdio server that exposes the @smwb/ui-solid component catalog and customization guide to AI coding assistants (Cursor, Claude Desktop/Code, Copilot, …).

license

Tools

ToolPurpose
search_componentsFind components by name, id, description, or prop keywords
get_component_propsFull metadata for one component: props (types, required, descriptions), SSR classification (ssr.safe / ssr.rendering / ssr.note) + required LESS imports (styles.base / styles.entries / styles.dependencies / styles.importExample)
search_customizationGlobal theming options and per-component customization approaches
get_customizationWhat and how to customize a component or a global topic

Run

npx -y @smwb/ui-mcp-solid

Communicates over stdio only (no HTTP port); startup log goes to stderr.

Cursor (.cursor/mcp.json) / Claude Desktop config

{
  "mcpServers": {
    "smwb-ui-solid": {
      "command": "npx",
      "args": ["-y", "@smwb/ui-mcp-solid"]
    }
  }
}

Example flow

  1. search_components → { "query": "text field", "limit": 5 }
  2. get_component_props → { "nameOrId": "TextField" } (or id inputs/textField/textField) — read styles.entries / styles.dependencies / styles.importExample for a minimal LESS bundle
  3. get_customization → { "nameOrId": "Button" } or { "nameOrId": "global/runtime-css" }

Component ids follow the metadata path, e.g. dataDisplay/chat/chat.

SSR

Every component carries an ssr field (also surfaced in search_components results):

  • safe — always true: nothing in @smwb/ui-solid touches a browser global at module load or during render, so renderToString never throws.
  • rendering — "universal" (emits meaningful static HTML on the server and hydrates) or "client" (a pure overlay such as Modal/Sheet that renders nothing on the server and mounts through a portal after hydration).
  • note — optional hint, e.g. that a picker's input renders on the server while its popup is client-only.

How the catalog is built

Component metadata is generated from the @smwb/ui-solid TypeScript prop interfaces (npm run build:meta) and shipped inside this package under component-meta/. LESS import hints reference @smwb/ui-styles.

License

MIT

版本与发布记录

@smwb/ui-mcp-solid 共发布 36 个版本,首次发布于 2026/05/29;过去 12 个月发布了 36 个版本。

版本发布日期距今
2.9.2latest2026/11/021 天前
2.9.12026/11/012 天前
2.9.02026/11/012 天前
2.8.02026/10/295 天前
2.7.12026/10/286 天前
2.7.02026/10/267 天前

关于 @smwb/ui-mcp-solid 的常见问题

@smwb/ui-mcp-solid 是什么?

模型上下文协议服务器公开了@smwb/ui-solid (SolidJS)组件目录和定制指南。

如何安装 @smwb/ui-mcp-solid?

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

@smwb/ui-mcp-solid 支持 TypeScript 吗?

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

@smwb/ui-mcp-solid 支持 ESM 还是 CommonJS?

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

@smwb/ui-mcp-solid 需要什么版本的 Node.js?

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

@smwb/ui-mcp-solid 可以商用吗?

@smwb/ui-mcp-solid 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@smwb/ui-mcp-solid 还在维护吗?

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