Wot-Design-Uni MCP
# Wot-Design-Uni MCP
[](https://www.npmjs.com/package/@charlotte-zone/wot-design-uni-mcp)
[](https://nodejs.org/)
[](https://vuejs.org/)
[](https://uniapp.dcloud.net.cn/)
> 为 Claude 等 LLM 提供 Wot-Design-Uni 组件库文档的 MCP 服务器
[English](./README.md) | [中文文档](./README.zh-CN.md)
## ✨ 特性
- 🚀 **开箱即用** - 预提取 82 个组件的完整文档
- 📚 **丰富示例** - 包含 600+ 个 Vue 3/UniApp 代码示例
- ⚡ **高性能** - 内存缓存优化,快速响应
- 🎯 **智能提示** - 内置专业 Prompt 模板
- 🔧 **灵活扩展** - 支持自定义提取最新文档
- 📱 **UniApp 支持** - 专为 UniApp 跨平台开发优化
## 📦 安装
```bash
# 从 npm 安装
npm install -g @charlotte-zone/wot-design-uni-mcp
```
## 🚀 快速开始
### 1. 配置 Claude Desktop
编辑配置文件 `~/Library/Application Support/Claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"wot-design-uni-mcp": {
"command": "npx",
"args": ["@charlotte-zone/wot-design-uni-mcp"]
}
}
}
```
### 2. 重启 Claude Desktop
完全退出并重新启动 Claude Desktop。
### 3. 开始使用
在 Claude 中尝试:
```
Wot-Design-Uni 有哪些组件?
显示 Button 组件的文档
给我一个 Table 分页的示例代码
```
## 🛠️ MCP 工具
| 工具 | 说明 |
|------|------|
| `list-components` | 列出所有可用的 Wot-Design-Uni 组件 |
| `get-component-docs` | 获取特定组件的详细文档 |
| `list-component-examples` | 获取特定组件的 Vue 3/UniApp 代码示例 |
## 💡 使用示例
### 查询组件列表
```
用户: Wot-Design-Uni 有哪些表单组件?
```
### 查看组件文档
```
用户: Button 组件有哪些属性?
```
### 获取代码示例
```
用户: 显示一个带加载状态的 Button 示例
```
### 开发需求
```
用户: 用 Wot-Design-Uni 创建一个用户信息编辑表单,
包含姓名、邮箱、电话字段,需要表单验证
```
## 📊 数据统计
- **组件数量**: 82 个
- **代码示例**: 600+ 个
- **文档版本**: Wot-Design-Uni v1.13.0
- **支持框架**: Vue 3.x / UniApp
## 🔧 命令行工具
### 提取最新文档
```bash
# 克隆 Wot-Design-Uni 仓库
git clone https://github.com/Moonofweisheng/wot-design-uni.git
# 提取文档
npx @charlotte-zone/wot-design-uni-mcp extract ./wot-design-uni
```
## 📚 文档
- [完整文档](./README.zh-CN.md)
- [项目介绍](./PROJECT_INTRO.md)
- [快速开始](./QUICKSTART.md)
- [更新日志](./CHANGELOG.md)
## 🤝 贡献
欢迎提交 Issue 和 Pull Request!
## 📄 许可证
MIT © 2024 shichangxue
---
**让 AI 更懂 Wot-Design-Uni 组件开发** 🚀
TDQS
Scored across 3 tools
Each tool targets a clearly distinct scope: listing all components, fetching prose docs for one component, and fetching code examples for one component. The docs tool explicitly states it excludes code examples, removing the only plausible overlap with the examples tool.
All three names follow a verb_noun kebab-case pattern (list-components, get-component-docs, list-component-examples). The singular/plural distinction between 'components' and 'component' correctly mirrors list-all vs single-item semantics rather than being noise.
Three tools is on the thin side for a component-library documentation server. The set is focused, but a discovery/search operation or a props/API lookup would earn its place.
The core triple of list -> docs -> examples covers the main lookup flow with no dead ends for a known component. However, there is no search/filter tool, no component API/props reference, and no install or getting-started guidance, so agents must already know component names.