mcp-probe-kit 1.10.1 → 1.13.0
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 +164 -21
- package/build/index.js +30 -451
- package/build/resources/index.d.ts +4 -0
- package/build/resources/index.js +4 -0
- package/build/resources/tool-params-guide.d.ts +571 -0
- package/build/resources/tool-params-guide.js +488 -0
- package/build/schemas/basic-tools.d.ts +54 -0
- package/build/schemas/basic-tools.js +58 -0
- package/build/schemas/code-analysis-tools.d.ts +156 -0
- package/build/schemas/code-analysis-tools.js +165 -0
- package/build/schemas/code-gen-tools.d.ts +150 -0
- package/build/schemas/code-gen-tools.js +158 -0
- package/build/schemas/doc-util-tools.d.ts +85 -0
- package/build/schemas/doc-util-tools.js +93 -0
- package/build/schemas/git-tools.d.ts +76 -0
- package/build/schemas/git-tools.js +81 -0
- package/build/schemas/index.d.ts +893 -0
- package/build/schemas/index.js +22 -0
- package/build/schemas/interview-tools.d.ts +72 -0
- package/build/schemas/interview-tools.js +64 -0
- package/build/schemas/orchestration-tools.d.ts +244 -0
- package/build/schemas/orchestration-tools.js +255 -0
- package/build/schemas/project-tools.d.ts +84 -0
- package/build/schemas/project-tools.js +89 -0
- package/build/tools/add_feature.js +68 -5
- package/build/tools/ask_user.d.ts +17 -0
- package/build/tools/ask_user.js +124 -0
- package/build/tools/css_order.js +55 -55
- package/build/tools/index.d.ts +3 -0
- package/build/tools/index.js +4 -0
- package/build/tools/interview.d.ts +18 -0
- package/build/tools/interview.js +418 -0
- package/build/tools/start_feature.js +64 -7
- package/build/tools/start_ralph.d.ts +16 -0
- package/build/tools/start_ralph.js +779 -0
- package/build/utils/parseArgs.js +12 -1
- package/docs/BEST_PRACTICES.md +200 -6
- package/docs/HOW_TO_TRIGGER.html +14 -2
- package/docs/HOW_TO_TRIGGER.md +125 -64
- package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.html +83 -48
- package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.md +291 -34
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 所有工具 Schema 的统一导出
|
|
3
|
+
*/
|
|
4
|
+
import { basicToolSchemas } from "./basic-tools.js";
|
|
5
|
+
import { gitToolSchemas } from "./git-tools.js";
|
|
6
|
+
import { codeAnalysisToolSchemas } from "./code-analysis-tools.js";
|
|
7
|
+
import { codeGenToolSchemas } from "./code-gen-tools.js";
|
|
8
|
+
import { docUtilToolSchemas } from "./doc-util-tools.js";
|
|
9
|
+
import { projectToolSchemas } from "./project-tools.js";
|
|
10
|
+
import { orchestrationToolSchemas } from "./orchestration-tools.js";
|
|
11
|
+
import { interviewToolSchemas } from "./interview-tools.js";
|
|
12
|
+
// 合并所有工具 schemas
|
|
13
|
+
export const allToolSchemas = [
|
|
14
|
+
...basicToolSchemas,
|
|
15
|
+
...gitToolSchemas,
|
|
16
|
+
...codeAnalysisToolSchemas,
|
|
17
|
+
...codeGenToolSchemas,
|
|
18
|
+
...docUtilToolSchemas,
|
|
19
|
+
...projectToolSchemas,
|
|
20
|
+
...orchestrationToolSchemas,
|
|
21
|
+
...interviewToolSchemas,
|
|
22
|
+
];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 访谈工具的 Schema 定义
|
|
3
|
+
*/
|
|
4
|
+
export declare const interviewToolSchemas: readonly [{
|
|
5
|
+
readonly name: "interview";
|
|
6
|
+
readonly description: "当用户需求不明确、需要澄清需求时使用。需求访谈工具,在开发前通过结构化提问澄清需求,避免理解偏差和返工;生成访谈记录文件供后续 start_feature/add_feature 使用;仅支持 feature 类型";
|
|
7
|
+
readonly inputSchema: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly description: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly description: "功能描述(如'实现用户登录功能'),用于开始访谈。可以是简短的自然语言描述";
|
|
13
|
+
};
|
|
14
|
+
readonly feature_name: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "功能名称(kebab-case 格式,如 user-login)。可选,会自动从描述中提取";
|
|
17
|
+
};
|
|
18
|
+
readonly answers: {
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly description: "访谈问题的回答(JSON 对象,key 为问题 ID,value 为回答内容)。用于提交访谈结果";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly required: readonly [];
|
|
24
|
+
readonly additionalProperties: true;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "ask_user";
|
|
28
|
+
readonly description: "当 AI 需要更多信息、遇到不确定因素时使用。向用户提问工具,AI 可主动向用户提问;支持单个或多个问题、提供选项、标注重要性;可在任何时候使用";
|
|
29
|
+
readonly inputSchema: {
|
|
30
|
+
readonly type: "object";
|
|
31
|
+
readonly properties: {
|
|
32
|
+
readonly question: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly description: "单个问题(如'你希望支持哪些支付方式?')";
|
|
35
|
+
};
|
|
36
|
+
readonly questions: {
|
|
37
|
+
readonly type: "array";
|
|
38
|
+
readonly description: "多个问题列表,每个问题可包含 question、context、options、required 字段";
|
|
39
|
+
readonly items: {
|
|
40
|
+
readonly type: "object";
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly question: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
};
|
|
45
|
+
readonly context: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
};
|
|
48
|
+
readonly options: {
|
|
49
|
+
readonly type: "array";
|
|
50
|
+
readonly items: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly required: {
|
|
55
|
+
readonly type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly context: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly description: "问题的背景信息或上下文";
|
|
63
|
+
};
|
|
64
|
+
readonly reason: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly description: "为什么要问这个问题(提问原因)";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly required: readonly [];
|
|
70
|
+
readonly additionalProperties: true;
|
|
71
|
+
};
|
|
72
|
+
}];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 访谈工具的 Schema 定义
|
|
3
|
+
*/
|
|
4
|
+
export const interviewToolSchemas = [
|
|
5
|
+
{
|
|
6
|
+
name: "interview",
|
|
7
|
+
description: "当用户需求不明确、需要澄清需求时使用。需求访谈工具,在开发前通过结构化提问澄清需求,避免理解偏差和返工;生成访谈记录文件供后续 start_feature/add_feature 使用;仅支持 feature 类型",
|
|
8
|
+
inputSchema: {
|
|
9
|
+
type: "object",
|
|
10
|
+
properties: {
|
|
11
|
+
description: {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "功能描述(如'实现用户登录功能'),用于开始访谈。可以是简短的自然语言描述",
|
|
14
|
+
},
|
|
15
|
+
feature_name: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "功能名称(kebab-case 格式,如 user-login)。可选,会自动从描述中提取",
|
|
18
|
+
},
|
|
19
|
+
answers: {
|
|
20
|
+
type: "object",
|
|
21
|
+
description: "访谈问题的回答(JSON 对象,key 为问题 ID,value 为回答内容)。用于提交访谈结果",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
required: [],
|
|
25
|
+
additionalProperties: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "ask_user",
|
|
30
|
+
description: "当 AI 需要更多信息、遇到不确定因素时使用。向用户提问工具,AI 可主动向用户提问;支持单个或多个问题、提供选项、标注重要性;可在任何时候使用",
|
|
31
|
+
inputSchema: {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
question: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "单个问题(如'你希望支持哪些支付方式?')",
|
|
37
|
+
},
|
|
38
|
+
questions: {
|
|
39
|
+
type: "array",
|
|
40
|
+
description: "多个问题列表,每个问题可包含 question、context、options、required 字段",
|
|
41
|
+
items: {
|
|
42
|
+
type: "object",
|
|
43
|
+
properties: {
|
|
44
|
+
question: { type: "string" },
|
|
45
|
+
context: { type: "string" },
|
|
46
|
+
options: { type: "array", items: { type: "string" } },
|
|
47
|
+
required: { type: "boolean" },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
context: {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "问题的背景信息或上下文",
|
|
54
|
+
},
|
|
55
|
+
reason: {
|
|
56
|
+
type: "string",
|
|
57
|
+
description: "为什么要问这个问题(提问原因)",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
required: [],
|
|
61
|
+
additionalProperties: true,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
];
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 智能编排工具的 Schema 定义
|
|
3
|
+
*/
|
|
4
|
+
export declare const orchestrationToolSchemas: readonly [{
|
|
5
|
+
readonly name: "start_feature";
|
|
6
|
+
readonly description: "当用户需要完整的新功能开发流程时使用。编排:检查上下文→生成规格→估算工作量。若只需规格文档请用 add_feature";
|
|
7
|
+
readonly inputSchema: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly feature_name: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly description: "功能名称(kebab-case 格式,如 user-auth)。可选,如果不提供会从 description 自动提取";
|
|
13
|
+
};
|
|
14
|
+
readonly description: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "功能详细描述。可以是简短的自然语言(如'开发用户认证功能')或详细的需求说明";
|
|
17
|
+
};
|
|
18
|
+
readonly docs_dir: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly description: "文档输出目录,默认为 docs";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly required: readonly [];
|
|
24
|
+
readonly additionalProperties: true;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "start_bugfix";
|
|
28
|
+
readonly description: "当用户需要完整的 Bug 修复流程时使用。编排:检查上下文→分析定位→修复方案→生成测试。若只需定位请用 debug";
|
|
29
|
+
readonly inputSchema: {
|
|
30
|
+
readonly type: "object";
|
|
31
|
+
readonly properties: {
|
|
32
|
+
readonly error_message: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly description: "错误信息";
|
|
35
|
+
};
|
|
36
|
+
readonly stack_trace: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly description: "堆栈跟踪。可选";
|
|
39
|
+
};
|
|
40
|
+
readonly code_context: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly description: "相关代码。可选";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly required: readonly [];
|
|
46
|
+
readonly additionalProperties: true;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "start_review";
|
|
50
|
+
readonly description: "当用户需要全面审查代码时使用。编排:代码审查+安全扫描+性能分析,输出综合报告。若只需单项请用对应工具";
|
|
51
|
+
readonly inputSchema: {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly code: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly description: "要审查的代码";
|
|
57
|
+
};
|
|
58
|
+
readonly language: {
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
readonly description: "编程语言。可选,会自动识别";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly required: readonly [];
|
|
64
|
+
readonly additionalProperties: true;
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "start_release";
|
|
68
|
+
readonly description: "当用户需要准备版本发布时使用。编排:生成 Changelog→生成 PR 描述。若只需单项请用 genchangelog 或 genpr";
|
|
69
|
+
readonly inputSchema: {
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly properties: {
|
|
72
|
+
readonly version: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly description: "版本号(如 v1.2.0)";
|
|
75
|
+
};
|
|
76
|
+
readonly from_tag: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly description: "起始 tag。可选";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly required: readonly [];
|
|
82
|
+
readonly additionalProperties: true;
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "start_refactor";
|
|
86
|
+
readonly description: "当用户需要完整的代码重构流程时使用。编排:审查现状→重构建议→生成测试。若只需建议请用 refactor";
|
|
87
|
+
readonly inputSchema: {
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly code: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly description: "要重构的代码";
|
|
93
|
+
};
|
|
94
|
+
readonly goal: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly description: "重构目标。可选";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly required: readonly [];
|
|
100
|
+
readonly additionalProperties: true;
|
|
101
|
+
};
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "start_onboard";
|
|
104
|
+
readonly description: "当用户需要快速上手新项目时使用。编排:分析项目→生成上下文文档。若只需分析请用 analyze_project";
|
|
105
|
+
readonly inputSchema: {
|
|
106
|
+
readonly type: "object";
|
|
107
|
+
readonly properties: {
|
|
108
|
+
readonly project_path: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly description: "项目路径。可选,默认当前目录";
|
|
111
|
+
};
|
|
112
|
+
readonly docs_dir: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly description: "文档目录。可选,默认 docs";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly required: readonly [];
|
|
118
|
+
readonly additionalProperties: true;
|
|
119
|
+
};
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "start_api";
|
|
122
|
+
readonly description: "当用户需要完整的 API 开发流程时使用。编排:生成文档→生成 Mock→生成测试。若只需单项请用对应生成工具";
|
|
123
|
+
readonly inputSchema: {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly code: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly description: "API 代码";
|
|
129
|
+
};
|
|
130
|
+
readonly language: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly description: "编程语言。可选,会自动识别";
|
|
133
|
+
};
|
|
134
|
+
readonly format: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly description: "文档格式。可选,默认 openapi";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly required: readonly [];
|
|
140
|
+
readonly additionalProperties: true;
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "start_doc";
|
|
144
|
+
readonly description: "当用户需要补全项目文档时使用。编排:注释→README→API 文档。若只需单项文档请用对应生成工具";
|
|
145
|
+
readonly inputSchema: {
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly code: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly description: "代码或项目信息";
|
|
151
|
+
};
|
|
152
|
+
readonly project_info: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly description: "项目信息。可选";
|
|
155
|
+
};
|
|
156
|
+
readonly style: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly description: "文档风格。可选,默认 jsdoc";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly required: readonly [];
|
|
162
|
+
readonly additionalProperties: true;
|
|
163
|
+
};
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "gen_skill";
|
|
166
|
+
readonly description: "当用户需要生成 Agent Skills 文档时使用。为 MCP Probe Kit 工具生成符合开放标准的技能文档,输出到 skills/ 目录";
|
|
167
|
+
readonly inputSchema: {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly properties: {
|
|
170
|
+
readonly scope: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
readonly description: "生成范围:all(所有工具)、single(单个工具)。可选,默认 all";
|
|
173
|
+
};
|
|
174
|
+
readonly tool_name: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly description: "工具名称。当 scope 为 single 时必填";
|
|
177
|
+
};
|
|
178
|
+
readonly lang: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly description: "文档语言:zh(中文)、en(英文)。可选,默认 zh";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly required: readonly [];
|
|
184
|
+
readonly additionalProperties: true;
|
|
185
|
+
};
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "start_ralph";
|
|
188
|
+
readonly description: "当用户需要启动 Ralph Wiggum Loop 循环开发时使用。生成 .ralph/ 目录结构、安全模式脚本和执行指南。默认启用多重安全保护,防止无人值守时费用失控";
|
|
189
|
+
readonly inputSchema: {
|
|
190
|
+
readonly type: "object";
|
|
191
|
+
readonly properties: {
|
|
192
|
+
readonly goal: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly description: "本次要完成的目标/需求描述。例如:'实现用户认证功能'、'修复登录 bug'";
|
|
195
|
+
};
|
|
196
|
+
readonly mode: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly description: "运行模式:safe(安全模式,默认)、normal(普通模式)。安全模式包含多重保护机制";
|
|
199
|
+
};
|
|
200
|
+
readonly completion_promise: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly description: "完成条件描述。默认:'tests passing + requirements met'";
|
|
203
|
+
};
|
|
204
|
+
readonly test_command: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly description: "每轮执行的测试命令。默认:'npm test'(会在首轮由 agent 识别正确命令)";
|
|
207
|
+
};
|
|
208
|
+
readonly cli_command: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly description: "Claude Code CLI 命令名。默认:'claude-code'(可能需要改为 'claude')";
|
|
211
|
+
};
|
|
212
|
+
readonly max_iterations: {
|
|
213
|
+
readonly type: "number";
|
|
214
|
+
readonly description: "最大迭代轮数。safe 模式默认:8";
|
|
215
|
+
};
|
|
216
|
+
readonly max_minutes: {
|
|
217
|
+
readonly type: "number";
|
|
218
|
+
readonly description: "最大运行分钟数。safe 模式默认:25";
|
|
219
|
+
};
|
|
220
|
+
readonly confirm_every: {
|
|
221
|
+
readonly type: "number";
|
|
222
|
+
readonly description: "每几轮要求人工确认。safe 模式默认:1(每轮都确认)";
|
|
223
|
+
};
|
|
224
|
+
readonly confirm_timeout: {
|
|
225
|
+
readonly type: "number";
|
|
226
|
+
readonly description: "确认等待秒数,超时自动停止。safe 模式默认:20";
|
|
227
|
+
};
|
|
228
|
+
readonly max_same_output: {
|
|
229
|
+
readonly type: "number";
|
|
230
|
+
readonly description: "输出重复多少次停止(防卡死)。safe 模式默认:2";
|
|
231
|
+
};
|
|
232
|
+
readonly max_diff_lines: {
|
|
233
|
+
readonly type: "number";
|
|
234
|
+
readonly description: "git diff 变更行数超过此值停止(防失控)。safe 模式默认:300";
|
|
235
|
+
};
|
|
236
|
+
readonly cooldown_seconds: {
|
|
237
|
+
readonly type: "number";
|
|
238
|
+
readonly description: "每轮后冷却秒数。safe 模式默认:8";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
readonly required: readonly [];
|
|
242
|
+
readonly additionalProperties: true;
|
|
243
|
+
};
|
|
244
|
+
}];
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 智能编排工具的 Schema 定义
|
|
3
|
+
*/
|
|
4
|
+
export const orchestrationToolSchemas = [
|
|
5
|
+
{
|
|
6
|
+
name: "start_feature",
|
|
7
|
+
description: "当用户需要完整的新功能开发流程时使用。编排:检查上下文→生成规格→估算工作量。若只需规格文档请用 add_feature",
|
|
8
|
+
inputSchema: {
|
|
9
|
+
type: "object",
|
|
10
|
+
properties: {
|
|
11
|
+
feature_name: {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "功能名称(kebab-case 格式,如 user-auth)。可选,如果不提供会从 description 自动提取",
|
|
14
|
+
},
|
|
15
|
+
description: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "功能详细描述。可以是简短的自然语言(如'开发用户认证功能')或详细的需求说明",
|
|
18
|
+
},
|
|
19
|
+
docs_dir: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "文档输出目录,默认为 docs",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
required: [],
|
|
25
|
+
additionalProperties: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "start_bugfix",
|
|
30
|
+
description: "当用户需要完整的 Bug 修复流程时使用。编排:检查上下文→分析定位→修复方案→生成测试。若只需定位请用 debug",
|
|
31
|
+
inputSchema: {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
error_message: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "错误信息",
|
|
37
|
+
},
|
|
38
|
+
stack_trace: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "堆栈跟踪。可选",
|
|
41
|
+
},
|
|
42
|
+
code_context: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "相关代码。可选",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
required: [],
|
|
48
|
+
additionalProperties: true,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "start_review",
|
|
53
|
+
description: "当用户需要全面审查代码时使用。编排:代码审查+安全扫描+性能分析,输出综合报告。若只需单项请用对应工具",
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object",
|
|
56
|
+
properties: {
|
|
57
|
+
code: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "要审查的代码",
|
|
60
|
+
},
|
|
61
|
+
language: {
|
|
62
|
+
type: "string",
|
|
63
|
+
description: "编程语言。可选,会自动识别",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
required: [],
|
|
67
|
+
additionalProperties: true,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "start_release",
|
|
72
|
+
description: "当用户需要准备版本发布时使用。编排:生成 Changelog→生成 PR 描述。若只需单项请用 genchangelog 或 genpr",
|
|
73
|
+
inputSchema: {
|
|
74
|
+
type: "object",
|
|
75
|
+
properties: {
|
|
76
|
+
version: {
|
|
77
|
+
type: "string",
|
|
78
|
+
description: "版本号(如 v1.2.0)",
|
|
79
|
+
},
|
|
80
|
+
from_tag: {
|
|
81
|
+
type: "string",
|
|
82
|
+
description: "起始 tag。可选",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
required: [],
|
|
86
|
+
additionalProperties: true,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "start_refactor",
|
|
91
|
+
description: "当用户需要完整的代码重构流程时使用。编排:审查现状→重构建议→生成测试。若只需建议请用 refactor",
|
|
92
|
+
inputSchema: {
|
|
93
|
+
type: "object",
|
|
94
|
+
properties: {
|
|
95
|
+
code: {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: "要重构的代码",
|
|
98
|
+
},
|
|
99
|
+
goal: {
|
|
100
|
+
type: "string",
|
|
101
|
+
description: "重构目标。可选",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
required: [],
|
|
105
|
+
additionalProperties: true,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "start_onboard",
|
|
110
|
+
description: "当用户需要快速上手新项目时使用。编排:分析项目→生成上下文文档。若只需分析请用 analyze_project",
|
|
111
|
+
inputSchema: {
|
|
112
|
+
type: "object",
|
|
113
|
+
properties: {
|
|
114
|
+
project_path: {
|
|
115
|
+
type: "string",
|
|
116
|
+
description: "项目路径。可选,默认当前目录",
|
|
117
|
+
},
|
|
118
|
+
docs_dir: {
|
|
119
|
+
type: "string",
|
|
120
|
+
description: "文档目录。可选,默认 docs",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
required: [],
|
|
124
|
+
additionalProperties: true,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "start_api",
|
|
129
|
+
description: "当用户需要完整的 API 开发流程时使用。编排:生成文档→生成 Mock→生成测试。若只需单项请用对应生成工具",
|
|
130
|
+
inputSchema: {
|
|
131
|
+
type: "object",
|
|
132
|
+
properties: {
|
|
133
|
+
code: {
|
|
134
|
+
type: "string",
|
|
135
|
+
description: "API 代码",
|
|
136
|
+
},
|
|
137
|
+
language: {
|
|
138
|
+
type: "string",
|
|
139
|
+
description: "编程语言。可选,会自动识别",
|
|
140
|
+
},
|
|
141
|
+
format: {
|
|
142
|
+
type: "string",
|
|
143
|
+
description: "文档格式。可选,默认 openapi",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
required: [],
|
|
147
|
+
additionalProperties: true,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "start_doc",
|
|
152
|
+
description: "当用户需要补全项目文档时使用。编排:注释→README→API 文档。若只需单项文档请用对应生成工具",
|
|
153
|
+
inputSchema: {
|
|
154
|
+
type: "object",
|
|
155
|
+
properties: {
|
|
156
|
+
code: {
|
|
157
|
+
type: "string",
|
|
158
|
+
description: "代码或项目信息",
|
|
159
|
+
},
|
|
160
|
+
project_info: {
|
|
161
|
+
type: "string",
|
|
162
|
+
description: "项目信息。可选",
|
|
163
|
+
},
|
|
164
|
+
style: {
|
|
165
|
+
type: "string",
|
|
166
|
+
description: "文档风格。可选,默认 jsdoc",
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
required: [],
|
|
170
|
+
additionalProperties: true,
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: "gen_skill",
|
|
175
|
+
description: "当用户需要生成 Agent Skills 文档时使用。为 MCP Probe Kit 工具生成符合开放标准的技能文档,输出到 skills/ 目录",
|
|
176
|
+
inputSchema: {
|
|
177
|
+
type: "object",
|
|
178
|
+
properties: {
|
|
179
|
+
scope: {
|
|
180
|
+
type: "string",
|
|
181
|
+
description: "生成范围:all(所有工具)、single(单个工具)。可选,默认 all",
|
|
182
|
+
},
|
|
183
|
+
tool_name: {
|
|
184
|
+
type: "string",
|
|
185
|
+
description: "工具名称。当 scope 为 single 时必填",
|
|
186
|
+
},
|
|
187
|
+
lang: {
|
|
188
|
+
type: "string",
|
|
189
|
+
description: "文档语言:zh(中文)、en(英文)。可选,默认 zh",
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
required: [],
|
|
193
|
+
additionalProperties: true,
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "start_ralph",
|
|
198
|
+
description: "当用户需要启动 Ralph Wiggum Loop 循环开发时使用。生成 .ralph/ 目录结构、安全模式脚本和执行指南。默认启用多重安全保护,防止无人值守时费用失控",
|
|
199
|
+
inputSchema: {
|
|
200
|
+
type: "object",
|
|
201
|
+
properties: {
|
|
202
|
+
goal: {
|
|
203
|
+
type: "string",
|
|
204
|
+
description: "本次要完成的目标/需求描述。例如:'实现用户认证功能'、'修复登录 bug'",
|
|
205
|
+
},
|
|
206
|
+
mode: {
|
|
207
|
+
type: "string",
|
|
208
|
+
description: "运行模式:safe(安全模式,默认)、normal(普通模式)。安全模式包含多重保护机制",
|
|
209
|
+
},
|
|
210
|
+
completion_promise: {
|
|
211
|
+
type: "string",
|
|
212
|
+
description: "完成条件描述。默认:'tests passing + requirements met'",
|
|
213
|
+
},
|
|
214
|
+
test_command: {
|
|
215
|
+
type: "string",
|
|
216
|
+
description: "每轮执行的测试命令。默认:'npm test'(会在首轮由 agent 识别正确命令)",
|
|
217
|
+
},
|
|
218
|
+
cli_command: {
|
|
219
|
+
type: "string",
|
|
220
|
+
description: "Claude Code CLI 命令名。默认:'claude-code'(可能需要改为 'claude')",
|
|
221
|
+
},
|
|
222
|
+
max_iterations: {
|
|
223
|
+
type: "number",
|
|
224
|
+
description: "最大迭代轮数。safe 模式默认:8",
|
|
225
|
+
},
|
|
226
|
+
max_minutes: {
|
|
227
|
+
type: "number",
|
|
228
|
+
description: "最大运行分钟数。safe 模式默认:25",
|
|
229
|
+
},
|
|
230
|
+
confirm_every: {
|
|
231
|
+
type: "number",
|
|
232
|
+
description: "每几轮要求人工确认。safe 模式默认:1(每轮都确认)",
|
|
233
|
+
},
|
|
234
|
+
confirm_timeout: {
|
|
235
|
+
type: "number",
|
|
236
|
+
description: "确认等待秒数,超时自动停止。safe 模式默认:20",
|
|
237
|
+
},
|
|
238
|
+
max_same_output: {
|
|
239
|
+
type: "number",
|
|
240
|
+
description: "输出重复多少次停止(防卡死)。safe 模式默认:2",
|
|
241
|
+
},
|
|
242
|
+
max_diff_lines: {
|
|
243
|
+
type: "number",
|
|
244
|
+
description: "git diff 变更行数超过此值停止(防失控)。safe 模式默认:300",
|
|
245
|
+
},
|
|
246
|
+
cooldown_seconds: {
|
|
247
|
+
type: "number",
|
|
248
|
+
description: "每轮后冷却秒数。safe 模式默认:8",
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
required: [],
|
|
252
|
+
additionalProperties: true,
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
];
|