@winm/vue-workbench-ui-mcp 0.0.0 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 沈阳维美智能工业科技有限公司 (WinM-Tech)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1 +1,62 @@
1
- probe
1
+ # 维美工作台 UI 文档 MCP
2
+
3
+ 在 Agent 中查询 `@winm/vue-workbench-ui` 的组件清单、API、TypeScript 类型定义、专题指南和 Vue 示例。服务通过本地 `stdio` 运行,不监听端口,不请求网络,也不会读写项目文件。
4
+
5
+ ## 版本记录
6
+
7
+ 0.4.0 起随 `@winm/vue-workbench-ui` 同步发布到 npm,新增框选组件 `MarqueeSelection` 与 `DataTable` 行框选的文档、示例与类型查询。
8
+
9
+ 0.3.2 与 Vue 组件包版本同步,新增 Breadcrumb 面包屑的导航分类、示例与类型查询。
10
+
11
+ ## 从 npm 安装
12
+
13
+ 无需克隆仓库,组件库版本与 MCP 版本同步发布:
14
+
15
+ ```json
16
+ {
17
+ "mcpServers": {
18
+ "winm-ui-docs": {
19
+ "command": "npx",
20
+ "args": ["-y", "@winm/vue-workbench-ui-mcp@0.4.0"]
21
+ }
22
+ }
23
+ }
24
+ ```
25
+
26
+ ## 从仓库启动
27
+
28
+ 使用 Node.js 24+ 和 pnpm 12.15.0,在仓库根目录运行:
29
+
30
+ ```sh
31
+ pnpm install --frozen-lockfile
32
+ pnpm mcp:build
33
+ ```
34
+
35
+ 将下面配置添加到支持 `mcpServers` 的客户端配置中(例如 Claude Code 工作区的 `.mcp.json`)。把路径换为仓库中 `packages/winm-ui-mcp/dist/server.js` 的绝对路径。Windows 的 JSON 路径可用正斜杠;VS Code 的 `.vscode/mcp.json` 使用 `servers` 作为外层键。
36
+
37
+ ```json
38
+ {
39
+ "mcpServers": {
40
+ "winm-ui-docs": {
41
+ "command": "node",
42
+ "args": ["/absolute/path/to/winm-vue-workbench-ui/packages/winm-ui-mcp/dist/server.js"]
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ 重启或重新加载客户端后,可以让 Agent「查找适合远程搜索下拉的组件,然后给我对应版本的用法」。
49
+
50
+ ## 查询工具
51
+
52
+ | 工具 | 示例参数 | 返回内容 |
53
+ | --- | --- | --- |
54
+ | `list_components` | `{"category":"forms"}` | 按类别返回全部导出组件名称、所属入口(主包 / `code-editor`)与一句话定位。 |
55
+ | `search_docs` | `{"query":"远程搜索下拉","limit":3}` | 匹配的组件与专题指南、摘要和官网链接。 |
56
+ | `get_component` | `{"name":"Drawer","version":"0.3.2"}` | 导入入口、样式、props、events、slots、expose、关联 TS 类型定义文本、使用注意点与示例场景。 |
57
+ | `get_example` | `{"name":"DataTable","scenario":"controlled-sort"}` | 全部 62 个导出组件的独立可运行 `.vue` SFC 源码。省略场景时返回默认示例。 |
58
+ | `get_guide` | `{"topic":"form-validation"}` | 专题指南完整 Markdown 全文(快速接入、组件总览、全局配置/i18n/Resolver、表单校验、无障碍规范、非组件公共 API、兼容性、Tokens、变更日志)。 |
59
+
60
+ 五个工具都接受可选参数 `version`。未指定时读取服务器内置版本;明确指定时,如与内置版本不符,会返回 `VERSION_MISMATCH`。开发 Agent 应先读取目标项目使用的组件库版本,再发起查询。
61
+
62
+ 示例与[文档站](https://winm-tech.cn/winm-vue-workbench-ui/)共用源码,构建时进行 Vue 类型检查。可在仓库中通过 `pnpm --filter @winm/vue-workbench-ui-mcp pack` 生成独立安装包,安装后可用 `winm-ui-mcp` 启动。
@@ -0,0 +1,12 @@
1
+ # 第三方组件许可与声明
2
+
3
+ 本组件库的 MIT 许可仅适用于沈阳维美智能工业科技有限公司在本包内有权授权的内容(原创源码、样式、类型声明与随包文档)。下列第三方依赖不随本包打包,由宿主或包管理器单独安装,遵循各自的许可证;其版权归各自作者所有。
4
+
5
+ | 依赖 | 版本约束 | 许可 | 说明 |
6
+ | --- | --- | --- | --- |
7
+ | `@lucide/vue` | 1.84.0 | ISC | 内置图标图形,作为运行时依赖安装 |
8
+ | `vue` | ^3.5.0 | MIT | 宿主框架,peerDependency |
9
+ | `@codemirror/*` | 见 `peerDependencies` | MIT | 可选代码编辑器依赖 |
10
+ | `@lezer/highlight` | ^1.2.5 | MIT | 可选代码编辑器语法高亮依赖 |
11
+
12
+ 各依赖的完整许可文本以安装目录中的 `LICENSE` 文件为准。