mcp-probe-kit 2.0.2 → 2.1.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/README.md +39 -3
- package/build/lib/analysis-tasks.d.ts +35 -0
- package/build/lib/analysis-tasks.js +788 -0
- package/build/lib/document-templates.d.ts +14 -0
- package/build/lib/document-templates.js +248 -0
- package/build/lib/project-detector.d.ts +19 -0
- package/build/lib/project-detector.js +344 -0
- package/build/lib/response.js +1 -0
- package/build/lib/task-generator.d.ts +11 -0
- package/build/lib/task-generator.js +109 -0
- package/build/lib/template-generator.d.ts +14 -0
- package/build/lib/template-generator.js +62 -0
- package/build/lib/templates/backend-templates.d.ts +8 -0
- package/build/lib/templates/backend-templates.js +26 -0
- package/build/schemas/output/project-tools.d.ts +6 -0
- package/build/schemas/output/project-tools.js +5 -0
- package/build/tools/__tests__/start_ui.unit.test.js +2 -2
- package/build/tools/init_project_context.d.ts +2 -1
- package/build/tools/init_project_context.js +495 -236
- package/docs/CNAME +1 -0
- package/docs/data/tools.js +15 -7
- package/docs/pages/all-tools.html +1 -1
- package/docs/specs/project-context-modular/example-output.md +123 -0
- package/docs/specs/project-context-modular/implementation-v2.md +275 -0
- package/docs/specs/project-context-modular/tasks.md +104 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,9 +57,30 @@
|
|
|
57
57
|
- `ui_design_system` - 智能设计系统生成
|
|
58
58
|
- `start_ui` - 一键 UI 开发(支持智能模式)
|
|
59
59
|
- `design2code` - 设计稿转代码
|
|
60
|
-
- `ui_search` - UI/UX
|
|
60
|
+
- `ui_search` - UI/UX 数据搜索(BM25 算法)
|
|
61
|
+
- `sync_ui_data` - 同步最新 UI/UX 数据到本地
|
|
61
62
|
- 更多...
|
|
62
63
|
|
|
64
|
+
**灵感来源:**
|
|
65
|
+
- [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX 设计系统理念
|
|
66
|
+
- [json-render](https://github.com/vercel-labs/json-render) - JSON 模板渲染引擎
|
|
67
|
+
|
|
68
|
+
**为什么使用 `sync_ui_data`?**
|
|
69
|
+
|
|
70
|
+
我们的 `start_ui` 工具依赖丰富的 UI/UX 数据库(颜色、图标、图表、组件、设计模式等)来生成高质量的设计系统和代码。这些数据来自 npm 包 [uipro-cli](https://www.npmjs.com/package/uipro-cli),包含:
|
|
71
|
+
- 🎨 颜色方案(主流品牌色、配色方案)
|
|
72
|
+
- 🔣 图标库(React Icons、Heroicons 等)
|
|
73
|
+
- 📊 图表组件(Recharts、Chart.js 等)
|
|
74
|
+
- 🎯 落地页模板(SaaS、电商、政府等)
|
|
75
|
+
- 📐 设计规范(间距、字体、阴影等)
|
|
76
|
+
|
|
77
|
+
**数据同步策略:**
|
|
78
|
+
1. **内嵌数据**:构建时同步,离线可用
|
|
79
|
+
2. **缓存数据**:运行时更新到 `~/.mcp-probe-kit/ui-ux-data/`
|
|
80
|
+
3. **手动同步**:使用 `sync_ui_data` 强制更新最新数据
|
|
81
|
+
|
|
82
|
+
这确保了即使在离线环境下,`start_ui` 也能生成专业级的 UI 代码。
|
|
83
|
+
|
|
63
84
|
### 🎤 需求访谈
|
|
64
85
|
|
|
65
86
|
2 个访谈工具,在开发前澄清需求:
|
|
@@ -165,6 +186,16 @@ start_ui "登录页面" --mode=auto
|
|
|
165
186
|
# 自动完成:设计系统 → 组件生成 → 代码输出
|
|
166
187
|
```
|
|
167
188
|
|
|
189
|
+
### 项目上下文文档
|
|
190
|
+
```bash
|
|
191
|
+
# 单文件模式(默认)- 生成一个完整的 project-context.md
|
|
192
|
+
init_project_context
|
|
193
|
+
|
|
194
|
+
# 模块化模式 - 生成 6 个分类文档(适合大型项目)
|
|
195
|
+
init_project_context --mode=modular
|
|
196
|
+
# 生成:project-context.md(索引)+ 5 个分类文档
|
|
197
|
+
```
|
|
198
|
+
|
|
168
199
|
**👉 [更多使用示例](https://mcp-probe-kit.bytezonex.com/pages/examples.html)**
|
|
169
200
|
|
|
170
201
|
---
|
|
@@ -230,8 +261,13 @@ MIT License
|
|
|
230
261
|
- **GitHub**: [mcp-probe-kit](https://github.com/mybolide/mcp-probe-kit)
|
|
231
262
|
- **npm**: [mcp-probe-kit](https://www.npmjs.com/package/mcp-probe-kit)
|
|
232
263
|
- **文档**: [https://mcp-probe-kit.bytezonex.com](https://mcp-probe-kit.bytezonex.com/)
|
|
233
|
-
|
|
234
|
-
|
|
264
|
+
|
|
265
|
+
**相关项目:**
|
|
266
|
+
- [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) - MCP 协议官方文档
|
|
267
|
+
- [GitHub Spec-Kit](https://github.com/github/spec-kit) - GitHub 规格化开发工具
|
|
268
|
+
- [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX 设计系统理念来源
|
|
269
|
+
- [json-render](https://github.com/vercel-labs/json-render) - JSON 模板渲染引擎灵感来源
|
|
270
|
+
- [uipro-cli](https://www.npmjs.com/package/uipro-cli) - UI/UX 数据源
|
|
235
271
|
|
|
236
272
|
---
|
|
237
273
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 分析任务配置
|
|
3
|
+
*
|
|
4
|
+
* 定义每种文档的分析任务,包括:
|
|
5
|
+
* - Discover: 发现现有代码和模式
|
|
6
|
+
* - Analyze: 分析项目约定和实现方式
|
|
7
|
+
* - Generate: 生成文档内容
|
|
8
|
+
*/
|
|
9
|
+
export interface AnalysisTask {
|
|
10
|
+
document: string;
|
|
11
|
+
title: string;
|
|
12
|
+
purpose: string;
|
|
13
|
+
analysis: {
|
|
14
|
+
discover: {
|
|
15
|
+
description: string;
|
|
16
|
+
locations: string[];
|
|
17
|
+
patterns: string[];
|
|
18
|
+
examples: number;
|
|
19
|
+
};
|
|
20
|
+
analyze: {
|
|
21
|
+
description: string;
|
|
22
|
+
questions: string[];
|
|
23
|
+
extract: string[];
|
|
24
|
+
};
|
|
25
|
+
generate: {
|
|
26
|
+
description: string;
|
|
27
|
+
structure: string[];
|
|
28
|
+
requirements: string[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 获取分析任务配置
|
|
34
|
+
*/
|
|
35
|
+
export declare function getAnalysisTasks(category: string, language: string, framework?: string): AnalysisTask[];
|