mcp-probe-kit 2.2.1 → 2.3.1

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 CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  > 🚀 AI 驱动的完整研发工具集 - 覆盖开发全流程
9
9
 
10
- 一个强大的 MCP (Model Context Protocol) 服务器,提供 **39 个实用工具**,覆盖代码质量、开发效率、项目管理、UI/UX 设计全流程,所有工具都支持**结构化输出**。
10
+ 一个强大的 MCP (Model Context Protocol) 服务器,提供 **42 个实用工具**,覆盖代码质量、开发效率、项目管理、UI/UX 设计、产品设计全流程,所有工具都支持**结构化输出**。
11
11
 
12
- **🎉 v2.0 特性**:结构化输出、工作流编排、UI/UX Pro Max、需求访谈
12
+ **🎉 v2.3 特性**:产品设计工作流(PRD → 原型 → HTML)、结构化输出、工作流编排、UI/UX Pro Max、需求访谈
13
13
 
14
14
  **支持所有 MCP 客户端**:Cursor、Claude Desktop、Cline、Continue 等
15
15
 
@@ -20,7 +20,7 @@
20
20
  **👉 [https://mcp-probe-kit.bytezonex.com](https://mcp-probe-kit.bytezonex.com/)**
21
21
 
22
22
  - [快速开始](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html) - 5分钟完成安装配置
23
- - [所有工具](https://mcp-probe-kit.bytezonex.com/pages/all-tools.html) - 39个工具完整列表
23
+ - [所有工具](https://mcp-probe-kit.bytezonex.com/pages/all-tools.html) - 42个工具完整列表
24
24
  - [最佳实践](https://mcp-probe-kit.bytezonex.com/pages/examples.html) - 完整研发流程实战指南
25
25
  - [迁移指南](https://mcp-probe-kit.bytezonex.com/pages/migration.html) - 版本升级指南
26
26
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  ## ✨ 核心特性
30
30
 
31
- ### 📦 39 个实用工具
31
+ ### 📦 42 个实用工具
32
32
 
33
33
  - **🔄 工作流编排** (10个) - 一键完成复杂开发流程
34
34
  - **🔍 代码分析** (7个) - 代码审查、调试、性能优化
@@ -36,6 +36,7 @@
36
36
  - **✨ 生成工具** (7个) - 文档、测试、Mock 数据生成
37
37
  - **📋 项目管理** (7个) - 需求分析、工作量估算、项目分析
38
38
  - **🎨 UI/UX 工具** (6个) - 设计系统、组件生成、设计稿转代码
39
+ - **🚀 产品设计** (3个) - PRD、原型设计、完整产品工作流
39
40
  - **🔧 其他工具** (7个) - 代码修复、格式转换、依赖检查
40
41
 
41
42
  ### 🎯 结构化输出
@@ -51,6 +52,20 @@
51
52
  - `start_ui` - UI 开发(设计系统 → 组件 → 代码)
52
53
  - 更多...
53
54
 
55
+ ### 🚀 产品设计工作流
56
+
57
+ 3 个产品设计工具,从需求到可交互原型:
58
+ - `gen_prd` - 生成产品需求文档(PRD)
59
+ - `gen_prototype` - 生成原型设计文档
60
+ - `start_product` - 完整产品设计流程(PRD → 原型 → 设计系统 → HTML 原型)
61
+
62
+ **工作流程:**
63
+ 1. **需求分析** - 生成标准 PRD 文档(产品概述、功能需求、页面清单)
64
+ 2. **原型设计** - 为每个页面生成详细的原型文档
65
+ 3. **设计系统** - 基于产品类型生成设计规范
66
+ 4. **HTML 原型** - 生成可直接在浏览器中查看的交互原型
67
+ 5. **项目上下文** - 自动更新项目文档
68
+
54
69
  ### 🎨 UI/UX Pro Max
55
70
 
56
71
  6 个 UI/UX 工具,从设计系统到代码生成:
@@ -180,6 +195,12 @@ start_bugfix
180
195
  # 自动完成:问题定位 → 修复方案 → 测试代码
181
196
  ```
182
197
 
198
+ ### 产品设计
199
+ ```bash
200
+ start_product "在线教育平台" --product_type=SaaS
201
+ # 自动完成:PRD → 原型设计 → 设计系统 → HTML 原型
202
+ ```
203
+
183
204
  ### UI 开发
184
205
  ```bash
185
206
  start_ui "登录页面" --mode=auto
package/build/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
- import { initProject, gencommit, debug, genapi, codeReview, gentest, genpr, checkDeps, gendoc, genchangelog, refactor, perf, gensql, resolveConflict, genreadme, analyzeProject, initProjectContext, addFeature, securityScan, fixBug, estimate, genMock, startFeature, startBugfix, startReview, startRelease, startRefactor, startOnboard, startApi, startDoc, startRalph, interview, askUser, uiDesignSystem, initComponentCatalog, uiSearch, syncUiData, renderUi, startUi } from "./tools/index.js";
5
+ import { initProject, gencommit, debug, genapi, codeReview, gentest, genpr, checkDeps, gendoc, genchangelog, refactor, perf, gensql, resolveConflict, genreadme, analyzeProject, initProjectContext, addFeature, securityScan, fixBug, estimate, genMock, startFeature, startBugfix, startReview, startRelease, startRefactor, startOnboard, startApi, startDoc, startRalph, interview, askUser, uiDesignSystem, initComponentCatalog, uiSearch, syncUiData, renderUi, startUi, genPrd, genPrototype, startProduct } from "./tools/index.js";
6
6
  import { VERSION, NAME } from "./version.js";
7
7
  import { allToolSchemas } from "./schemas/index.js";
8
8
  import { filterTools, getToolsetFromEnv } from "./lib/toolset-manager.js";
@@ -111,6 +111,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
111
111
  return await renderUi(args);
112
112
  case "start_ui":
113
113
  return await startUi(args);
114
+ // 产品设计工作流
115
+ case "gen_prd":
116
+ return await genPrd(args || {});
117
+ case "gen_prototype":
118
+ return await genPrototype(args || {});
119
+ case "start_product":
120
+ return await startProduct(args || {});
114
121
  default:
115
122
  throw new Error(`未知工具: ${name}`);
116
123
  }
@@ -810,4 +810,25 @@ export declare const allToolSchemas: ({
810
810
  };
811
811
  required: string[];
812
812
  };
813
+ } | {
814
+ name: string;
815
+ description: string;
816
+ inputSchema: {
817
+ type: "object";
818
+ properties: {
819
+ description: {
820
+ type: string;
821
+ description: string;
822
+ };
823
+ product_name: {
824
+ type: string;
825
+ description: string;
826
+ };
827
+ docs_dir: {
828
+ type: string;
829
+ description: string;
830
+ };
831
+ };
832
+ required: string[];
833
+ };
813
834
  })[];
@@ -10,6 +10,7 @@ import { projectToolSchemas } from "./project-tools.js";
10
10
  import { orchestrationToolSchemas } from "./orchestration-tools.js";
11
11
  import { interviewToolSchemas } from "./interview-tools.js";
12
12
  import { uiUxSchemas } from "./ui-ux-schemas.js";
13
+ import { productDesignSchemas } from "./product-design-schemas.js";
13
14
  // 合并所有工具 schemas
14
15
  export const allToolSchemas = [
15
16
  ...basicToolSchemas,
@@ -21,4 +22,5 @@ export const allToolSchemas = [
21
22
  ...orchestrationToolSchemas,
22
23
  ...interviewToolSchemas,
23
24
  ...uiUxSchemas,
25
+ ...productDesignSchemas,
24
26
  ];
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Schema definitions for product design workflow tools
3
+ */
4
+ export declare const genPrdSchema: {
5
+ type: "object";
6
+ properties: {
7
+ description: {
8
+ type: string;
9
+ description: string;
10
+ };
11
+ product_name: {
12
+ type: string;
13
+ description: string;
14
+ };
15
+ docs_dir: {
16
+ type: string;
17
+ description: string;
18
+ };
19
+ };
20
+ required: string[];
21
+ };
22
+ export declare const genPrototypeSchema: {
23
+ type: "object";
24
+ properties: {
25
+ prd_path: {
26
+ type: string;
27
+ description: string;
28
+ };
29
+ description: {
30
+ type: string;
31
+ description: string;
32
+ };
33
+ docs_dir: {
34
+ type: string;
35
+ description: string;
36
+ };
37
+ };
38
+ required: never[];
39
+ };
40
+ export declare const startProductSchema: {
41
+ type: "object";
42
+ properties: {
43
+ description: {
44
+ type: string;
45
+ description: string;
46
+ };
47
+ requirements_file: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ product_name: {
52
+ type: string;
53
+ description: string;
54
+ };
55
+ product_type: {
56
+ type: string;
57
+ description: string;
58
+ };
59
+ skip_design_system: {
60
+ type: string;
61
+ description: string;
62
+ };
63
+ docs_dir: {
64
+ type: string;
65
+ description: string;
66
+ };
67
+ };
68
+ required: never[];
69
+ };
70
+ export declare const productDesignSchemas: ({
71
+ name: string;
72
+ description: string;
73
+ inputSchema: {
74
+ type: "object";
75
+ properties: {
76
+ description: {
77
+ type: string;
78
+ description: string;
79
+ };
80
+ product_name: {
81
+ type: string;
82
+ description: string;
83
+ };
84
+ docs_dir: {
85
+ type: string;
86
+ description: string;
87
+ };
88
+ };
89
+ required: string[];
90
+ };
91
+ } | {
92
+ name: string;
93
+ description: string;
94
+ inputSchema: {
95
+ type: "object";
96
+ properties: {
97
+ prd_path: {
98
+ type: string;
99
+ description: string;
100
+ };
101
+ description: {
102
+ type: string;
103
+ description: string;
104
+ };
105
+ docs_dir: {
106
+ type: string;
107
+ description: string;
108
+ };
109
+ };
110
+ required: never[];
111
+ };
112
+ })[];
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Schema definitions for product design workflow tools
3
+ */
4
+ export const genPrdSchema = {
5
+ type: "object",
6
+ properties: {
7
+ description: {
8
+ type: "string",
9
+ description: "产品描述或访谈记录。详细描述产品的目标、功能、用户需求等信息。",
10
+ },
11
+ product_name: {
12
+ type: "string",
13
+ description: "产品名称(可选)。如果不提供,将使用默认名称'新产品'。",
14
+ },
15
+ docs_dir: {
16
+ type: "string",
17
+ description: "文档输出目录(可选)。默认为 'docs'。PRD 将保存到 {docs_dir}/prd/ 目录下。",
18
+ },
19
+ },
20
+ required: ["description"],
21
+ };
22
+ export const genPrototypeSchema = {
23
+ type: "object",
24
+ properties: {
25
+ prd_path: {
26
+ type: "string",
27
+ description: "PRD 文档路径(可选)。如果提供,将从 PRD 中提取页面清单生成原型。",
28
+ },
29
+ description: {
30
+ type: "string",
31
+ description: "功能描述(可选)。如果没有 PRD,可以直接提供功能描述生成原型。prd_path 和 description 至少提供一个。",
32
+ },
33
+ docs_dir: {
34
+ type: "string",
35
+ description: "文档输出目录(可选)。默认为 'docs'。原型文档将保存到 {docs_dir}/prototype/ 目录下。",
36
+ },
37
+ },
38
+ required: [],
39
+ };
40
+ export const startProductSchema = {
41
+ type: "object",
42
+ properties: {
43
+ description: {
44
+ type: "string",
45
+ description: "产品描述。详细描述产品的目标、功能、用户需求等信息。这是整个工作流的基础输入。如果提供了 requirements_file,此参数可选。",
46
+ },
47
+ requirements_file: {
48
+ type: "string",
49
+ description: "需求文档文件路径(可选)。如果提供,将读取该文件的完整内容作为产品需求。支持 Markdown、文本等格式。例如:'docs/requirements.md'、'project.md'。",
50
+ },
51
+ product_name: {
52
+ type: "string",
53
+ description: "产品名称(可选)。如果不提供,将使用默认名称'新产品'。",
54
+ },
55
+ product_type: {
56
+ type: "string",
57
+ description: "产品类型(可选)。用于生成设计系统,如 'SaaS'、'E-commerce'、'Healthcare' 等。默认为 'SaaS'。",
58
+ },
59
+ skip_design_system: {
60
+ type: "boolean",
61
+ description: "跳过设计系统生成(可选)。默认为 false。如果设置为 true,将不生成设计系统。",
62
+ },
63
+ docs_dir: {
64
+ type: "string",
65
+ description: "文档输出目录(可选)。默认为 'docs'。所有文档将保存到此目录下的子目录中。",
66
+ },
67
+ },
68
+ required: [],
69
+ };
70
+ export const productDesignSchemas = [
71
+ {
72
+ name: "gen_prd",
73
+ description: "生成产品需求文档(PRD)。基于产品描述或访谈记录生成标准的 PRD 文档,包含产品概述、功能需求、优先级、非功能性需求和页面清单。",
74
+ inputSchema: genPrdSchema,
75
+ },
76
+ {
77
+ name: "gen_prototype",
78
+ description: "生成原型设计文档。基于 PRD 文档或功能描述生成原型设计文档,包含页面结构、交互说明和元素清单。为每个页面生成独立的 Markdown 文档。",
79
+ inputSchema: genPrototypeSchema,
80
+ },
81
+ {
82
+ name: "start_product",
83
+ description: "产品设计完整工作流编排。一键完成从需求到 HTML 原型的全流程:生成 PRD → 生成原型文档 → 生成设计系统 → 生成 HTML 可交互原型 → 更新项目上下文。生成的 HTML 原型可以直接在浏览器中查看和演示。",
84
+ inputSchema: startProductSchema,
85
+ },
86
+ ];