mcp-probe-kit 1.10.0 → 1.11.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/build/index.js +22 -370
- 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 +767 -0
- package/build/schemas/index.js +20 -0
- package/build/schemas/orchestration-tools.d.ts +186 -0
- package/build/schemas/orchestration-tools.js +196 -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/start_feature.js +64 -7
- package/build/utils/parseArgs.js +12 -1
- package/package.json +1 -1
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 所有工具 Schema 的统一导出
|
|
3
|
+
*/
|
|
4
|
+
export declare const allToolSchemas: ({
|
|
5
|
+
readonly name: "detect_shell";
|
|
6
|
+
readonly description: "当用户询问当前 AI 环境、是否为套壳产品时使用。检测 AI 应用环境指纹,返回 JSON 检测报告";
|
|
7
|
+
readonly inputSchema: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly nonce: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly description: "随机数,用于网络检测。可选";
|
|
13
|
+
};
|
|
14
|
+
readonly skip_network: {
|
|
15
|
+
readonly type: "boolean";
|
|
16
|
+
readonly description: "是否跳过网络检测。可选,默认 false";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly required: readonly [];
|
|
20
|
+
readonly additionalProperties: true;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
readonly name: "init_setting";
|
|
24
|
+
readonly description: "当用户需要初始化或配置 Cursor IDE 设置时使用。写入推荐的 AI 配置到 .cursor/settings.json";
|
|
25
|
+
readonly inputSchema: {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly project_path: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly description: "项目路径。可选,默认为当前工作区路径";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly required: readonly [];
|
|
34
|
+
readonly additionalProperties: true;
|
|
35
|
+
};
|
|
36
|
+
} | {
|
|
37
|
+
readonly name: "init_project";
|
|
38
|
+
readonly description: "当用户需要创建新项目、生成项目结构时使用。按 Spec-Driven Development 方式生成需求/设计/任务文档";
|
|
39
|
+
readonly inputSchema: {
|
|
40
|
+
readonly type: "object";
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly input: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
readonly description: "项目需求描述。可以是简短描述(如'创建电商网站')或详细的功能需求文档";
|
|
45
|
+
};
|
|
46
|
+
readonly project_name: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
readonly description: "项目名称。可选,默认为'新项目'";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly required: readonly [];
|
|
52
|
+
readonly additionalProperties: true;
|
|
53
|
+
};
|
|
54
|
+
} | {
|
|
55
|
+
readonly name: "gencommit";
|
|
56
|
+
readonly description: "当用户需要生成 Git commit 消息时使用。返回 Conventional Commits 规范指南,AI 根据指南和变更内容生成符合规范的提交消息";
|
|
57
|
+
readonly inputSchema: {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly changes: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly description: "代码变更内容。可以是 git diff 输出、变更描述或自然语言。如果不提供,工具会提示执行 git diff";
|
|
63
|
+
};
|
|
64
|
+
readonly type: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly description: "Commit 类型:fixed(修复)、feat(新功能)、docs(文档)、style(样式)、chore(杂项)、refactor(重构)、test(测试)。可选,会自动识别";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly required: readonly [];
|
|
70
|
+
readonly additionalProperties: true;
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
readonly name: "genchangelog";
|
|
74
|
+
readonly description: "当用户需要生成版本更新日志、准备发布时使用。根据 commit 历史生成 CHANGELOG,按 feat/fix/breaking 分类";
|
|
75
|
+
readonly inputSchema: {
|
|
76
|
+
readonly type: "object";
|
|
77
|
+
readonly properties: {
|
|
78
|
+
readonly version: {
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly description: "版本号(如 v1.2.0)。可选,如果不提供会提示用户输入";
|
|
81
|
+
};
|
|
82
|
+
readonly from: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly description: "起始 tag 或 commit。可选,默认为上一个 tag";
|
|
85
|
+
};
|
|
86
|
+
readonly to: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly description: "结束 tag 或 commit。可选,默认为 HEAD";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly required: readonly [];
|
|
92
|
+
readonly additionalProperties: true;
|
|
93
|
+
};
|
|
94
|
+
} | {
|
|
95
|
+
readonly name: "genpr";
|
|
96
|
+
readonly description: "当用户需要创建 Pull Request、生成 PR 描述时使用。分析 commit 历史,生成包含变更摘要、影响范围、测试说明的 PR 描述";
|
|
97
|
+
readonly inputSchema: {
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly branch: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly description: "分支名称。可选,默认为当前分支";
|
|
103
|
+
};
|
|
104
|
+
readonly commits: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly description: "Commit 历史。可选,会自动获取 git log";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly required: readonly [];
|
|
110
|
+
readonly additionalProperties: true;
|
|
111
|
+
};
|
|
112
|
+
} | {
|
|
113
|
+
readonly name: "resolve_conflict";
|
|
114
|
+
readonly description: "当用户遇到 Git 合并冲突、需要解决冲突时使用。分析冲突内容(<<<<<<< ======= >>>>>>>),理解双方意图,提供解决方案";
|
|
115
|
+
readonly inputSchema: {
|
|
116
|
+
readonly type: "object";
|
|
117
|
+
readonly properties: {
|
|
118
|
+
readonly conflicts: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
readonly description: "Git 冲突内容。包含 <<<<<<< ======= >>>>>>> 标记的文件内容";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly required: readonly [];
|
|
124
|
+
readonly additionalProperties: true;
|
|
125
|
+
};
|
|
126
|
+
} | {
|
|
127
|
+
readonly name: "debug";
|
|
128
|
+
readonly description: "当用户遇到错误、需要调试问题时使用。分析错误信息和堆栈跟踪,定位问题根因,提供调试策略和解决方案";
|
|
129
|
+
readonly inputSchema: {
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly error: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly description: "错误信息。可以是错误消息、堆栈跟踪或完整的错误输出";
|
|
135
|
+
};
|
|
136
|
+
readonly context: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly description: "相关代码上下文。可选,有助于更准确的分析";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly required: readonly [];
|
|
142
|
+
readonly additionalProperties: true;
|
|
143
|
+
};
|
|
144
|
+
} | {
|
|
145
|
+
readonly name: "code_review";
|
|
146
|
+
readonly description: "当用户需要审查代码质量、检查代码问题时使用。审查代码的质量、安全性、性能,输出结构化问题清单(severity/category/suggestion)";
|
|
147
|
+
readonly inputSchema: {
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly code: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly description: "要审查的代码。可以是代码片段、完整文件或 git diff 输出";
|
|
153
|
+
};
|
|
154
|
+
readonly focus: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly description: "审查重点:security(安全)、performance(性能)、quality(质量)、all(全部)。可选,默认 all";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly required: readonly [];
|
|
160
|
+
readonly additionalProperties: true;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
readonly name: "explain";
|
|
164
|
+
readonly description: "当用户不理解某段代码、需要代码解释时使用。解释代码逻辑和实现原理,包含执行流程、关键概念";
|
|
165
|
+
readonly inputSchema: {
|
|
166
|
+
readonly type: "object";
|
|
167
|
+
readonly properties: {
|
|
168
|
+
readonly code: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly description: "要解释的代码。可以是代码片段或完整函数";
|
|
171
|
+
};
|
|
172
|
+
readonly context: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
readonly description: "业务背景或上下文。可选,有助于更好的解释";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly required: readonly [];
|
|
178
|
+
readonly additionalProperties: true;
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
readonly name: "perf";
|
|
182
|
+
readonly description: "当用户关注代码性能、需要优化性能时使用。分析性能瓶颈(算法/内存/数据库/React渲染),输出瓶颈清单和优化建议";
|
|
183
|
+
readonly inputSchema: {
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly properties: {
|
|
186
|
+
readonly code: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly description: "要分析性能的代码";
|
|
189
|
+
};
|
|
190
|
+
readonly type: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly description: "分析类型:algorithm(算法)、memory(内存)、database(数据库)、react(React渲染)。可选,会自动识别";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly required: readonly [];
|
|
196
|
+
readonly additionalProperties: true;
|
|
197
|
+
};
|
|
198
|
+
} | {
|
|
199
|
+
readonly name: "security_scan";
|
|
200
|
+
readonly description: "当用户关注代码安全、需要检查安全漏洞时使用。扫描安全漏洞(注入/认证/加密/敏感数据),输出风险清单和修复建议";
|
|
201
|
+
readonly inputSchema: {
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly code: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly description: "要扫描的代码";
|
|
207
|
+
};
|
|
208
|
+
readonly language: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly description: "编程语言。可选,会自动识别";
|
|
211
|
+
};
|
|
212
|
+
readonly scan_type: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly description: "扫描类型:injection(注入)、auth(认证)、crypto(加密)、all(全部)。可选,默认 all";
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
readonly required: readonly [];
|
|
218
|
+
readonly additionalProperties: true;
|
|
219
|
+
};
|
|
220
|
+
} | {
|
|
221
|
+
readonly name: "refactor";
|
|
222
|
+
readonly description: "当用户需要重构代码、改善代码结构时使用。分析代码结构,提供重构建议、重构步骤和风险评估";
|
|
223
|
+
readonly inputSchema: {
|
|
224
|
+
readonly type: "object";
|
|
225
|
+
readonly properties: {
|
|
226
|
+
readonly code: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly description: "要重构的代码";
|
|
229
|
+
};
|
|
230
|
+
readonly goal: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly description: "重构目标:improve_readability(可读性)、reduce_complexity(复杂度)、performance(性能)。可选";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly required: readonly [];
|
|
236
|
+
readonly additionalProperties: true;
|
|
237
|
+
};
|
|
238
|
+
} | {
|
|
239
|
+
readonly name: "fix";
|
|
240
|
+
readonly description: "当用户需要自动修复代码问题(Lint/格式化/类型错误)时使用。自动修复可机械化问题,输出补丁(unified diff)";
|
|
241
|
+
readonly inputSchema: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly properties: {
|
|
244
|
+
readonly code: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly description: "要修复的代码";
|
|
247
|
+
};
|
|
248
|
+
readonly type: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly description: "修复类型:lint(代码规范)、ts(TypeScript错误)、format(格式化)、import(导入)。可选,会自动识别";
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
readonly required: readonly [];
|
|
254
|
+
readonly additionalProperties: true;
|
|
255
|
+
};
|
|
256
|
+
} | {
|
|
257
|
+
readonly name: "fix_bug";
|
|
258
|
+
readonly description: "当用户需要修复 Bug、获取修复指导时使用。提供 Bug 修复流程指导,包含根因分析、修复方案、验证步骤";
|
|
259
|
+
readonly inputSchema: {
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
readonly properties: {
|
|
262
|
+
readonly error_message: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly description: "错误信息";
|
|
265
|
+
};
|
|
266
|
+
readonly stack_trace: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly description: "堆栈跟踪。可选";
|
|
269
|
+
};
|
|
270
|
+
readonly code_context: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly description: "相关代码。可选";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
readonly required: readonly [];
|
|
276
|
+
readonly additionalProperties: true;
|
|
277
|
+
};
|
|
278
|
+
} | {
|
|
279
|
+
readonly name: "gentest";
|
|
280
|
+
readonly description: "当用户需要为代码生成单元测试时使用。生成单元测试代码(Jest/Vitest/Mocha),包含边界用例和 mock";
|
|
281
|
+
readonly inputSchema: {
|
|
282
|
+
readonly type: "object";
|
|
283
|
+
readonly properties: {
|
|
284
|
+
readonly code: {
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
readonly description: "要生成测试的代码。可以是函数、类或模块";
|
|
287
|
+
};
|
|
288
|
+
readonly framework: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
readonly description: "测试框架:jest、vitest、mocha。可选,会自动识别项目使用的框架";
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
readonly required: readonly [];
|
|
294
|
+
readonly additionalProperties: true;
|
|
295
|
+
};
|
|
296
|
+
} | {
|
|
297
|
+
readonly name: "gendoc";
|
|
298
|
+
readonly description: "当用户需要为代码添加注释、生成文档时使用。生成代码注释(JSDoc/TSDoc/Javadoc),补全参数/返回值/异常/示例";
|
|
299
|
+
readonly inputSchema: {
|
|
300
|
+
readonly type: "object";
|
|
301
|
+
readonly properties: {
|
|
302
|
+
readonly code: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
readonly description: "要生成注释的代码";
|
|
305
|
+
};
|
|
306
|
+
readonly style: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly description: "注释风格:jsdoc、tsdoc、javadoc。可选,会根据语言自动选择";
|
|
309
|
+
};
|
|
310
|
+
readonly lang: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly description: "注释语言:zh(中文)、en(英文)。可选,默认 zh";
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
readonly required: readonly [];
|
|
316
|
+
readonly additionalProperties: true;
|
|
317
|
+
};
|
|
318
|
+
} | {
|
|
319
|
+
readonly name: "genapi";
|
|
320
|
+
readonly description: "当用户需要生成 API 文档时使用。基于 API 代码(路由/Controller)生成文档(Markdown/OpenAPI/JSDoc),包含参数说明与示例";
|
|
321
|
+
readonly inputSchema: {
|
|
322
|
+
readonly type: "object";
|
|
323
|
+
readonly properties: {
|
|
324
|
+
readonly code: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly description: "API 代码。可以是路由定义、Controller 或接口函数";
|
|
327
|
+
};
|
|
328
|
+
readonly format: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly description: "文档格式:markdown、openapi、jsdoc。可选,默认 markdown";
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
readonly required: readonly [];
|
|
334
|
+
readonly additionalProperties: true;
|
|
335
|
+
};
|
|
336
|
+
} | {
|
|
337
|
+
readonly name: "genui";
|
|
338
|
+
readonly description: "当用户需要生成 UI 组件代码时使用。根据描述生成 UI 组件代码(React/Vue/HTML),包含 Props 和样式";
|
|
339
|
+
readonly inputSchema: {
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly properties: {
|
|
342
|
+
readonly description: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly description: "组件描述。可以是简短描述(如'登录表单组件')或详细的UI需求";
|
|
345
|
+
};
|
|
346
|
+
readonly framework: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly description: "前端框架:react、vue、html。可选,默认 react";
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly required: readonly [];
|
|
352
|
+
readonly additionalProperties: true;
|
|
353
|
+
};
|
|
354
|
+
} | {
|
|
355
|
+
readonly name: "gensql";
|
|
356
|
+
readonly description: "当用户需要根据自然语言生成 SQL 查询时使用。将自然语言描述转换为 SQL 语句(PostgreSQL/MySQL/SQLite)";
|
|
357
|
+
readonly inputSchema: {
|
|
358
|
+
readonly type: "object";
|
|
359
|
+
readonly properties: {
|
|
360
|
+
readonly description: {
|
|
361
|
+
readonly type: "string";
|
|
362
|
+
readonly description: "查询需求的自然语言描述。如'查询所有活跃用户的姓名和邮箱'";
|
|
363
|
+
};
|
|
364
|
+
readonly dialect: {
|
|
365
|
+
readonly type: "string";
|
|
366
|
+
readonly description: "SQL 方言:postgres、mysql、sqlite。可选,默认 postgres";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
readonly required: readonly [];
|
|
370
|
+
readonly additionalProperties: true;
|
|
371
|
+
};
|
|
372
|
+
} | {
|
|
373
|
+
readonly name: "gen_mock";
|
|
374
|
+
readonly description: "当用户需要生成测试数据、Mock 数据时使用。根据 TypeScript 类型或 JSON Schema 生成 Mock 数据";
|
|
375
|
+
readonly inputSchema: {
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
readonly properties: {
|
|
378
|
+
readonly schema: {
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
readonly description: "数据结构定义(TypeScript interface、JSON Schema 或自然语言描述)";
|
|
381
|
+
};
|
|
382
|
+
readonly count: {
|
|
383
|
+
readonly type: "number";
|
|
384
|
+
readonly description: "生成数据条数。可选,默认为 1,范围 1-1000";
|
|
385
|
+
};
|
|
386
|
+
readonly format: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
readonly description: "输出格式:json、typescript、javascript、csv。可选,默认为 json";
|
|
389
|
+
};
|
|
390
|
+
readonly locale: {
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
readonly description: "数据语言:zh-CN(中文)、en-US(英文)、ja-JP(日文)。可选,默认为 zh-CN";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
readonly required: readonly [];
|
|
396
|
+
readonly additionalProperties: true;
|
|
397
|
+
};
|
|
398
|
+
} | {
|
|
399
|
+
readonly name: "design2code";
|
|
400
|
+
readonly description: "当用户需要将设计稿转换为代码时使用。将设计稿(图片URL/描述/HTML)转换为前端代码(React/Vue),1:1 还原布局和样式";
|
|
401
|
+
readonly inputSchema: {
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly properties: {
|
|
404
|
+
readonly input: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly description: "设计稿输入:图片 URL、base64 图片、HTML 代码或设计稿描述";
|
|
407
|
+
};
|
|
408
|
+
readonly framework: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly description: "目标框架:vue、react。可选,默认为 vue";
|
|
411
|
+
};
|
|
412
|
+
readonly style_solution: {
|
|
413
|
+
readonly type: "string";
|
|
414
|
+
readonly description: "样式方案:tailwind、css-modules、styled-components。可选,默认为 tailwind";
|
|
415
|
+
};
|
|
416
|
+
readonly component_type: {
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
readonly description: "组件类型:page(页面组件)、component(通用组件)。可选,默认为 page";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
readonly required: readonly [];
|
|
422
|
+
readonly additionalProperties: true;
|
|
423
|
+
};
|
|
424
|
+
} | {
|
|
425
|
+
readonly name: "genreadme";
|
|
426
|
+
readonly description: "当用户需要生成项目 README 文档时使用。生成 README 文档,包含项目介绍/安装/使用/脚本/FAQ";
|
|
427
|
+
readonly inputSchema: {
|
|
428
|
+
readonly type: "object";
|
|
429
|
+
readonly properties: {
|
|
430
|
+
readonly project_info: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly description: "项目信息。可以是项目描述、代码或 package.json 内容";
|
|
433
|
+
};
|
|
434
|
+
readonly style: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly description: "文档风格:simple(简洁)、detailed(详细)。可选,默认 detailed";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly required: readonly [];
|
|
440
|
+
readonly additionalProperties: true;
|
|
441
|
+
};
|
|
442
|
+
} | {
|
|
443
|
+
readonly name: "check_deps";
|
|
444
|
+
readonly description: "当用户需要检查项目依赖健康度、查找过期依赖时使用。检查依赖版本、安全漏洞、体积,输出升级建议";
|
|
445
|
+
readonly inputSchema: {
|
|
446
|
+
readonly type: "object";
|
|
447
|
+
readonly properties: {};
|
|
448
|
+
readonly required: readonly [];
|
|
449
|
+
readonly additionalProperties: true;
|
|
450
|
+
};
|
|
451
|
+
} | {
|
|
452
|
+
readonly name: "convert";
|
|
453
|
+
readonly description: "当用户需要转换代码格式或框架时使用。转换代码(JS→TS/Class→Hooks/Vue2→Vue3),保持逻辑不变";
|
|
454
|
+
readonly inputSchema: {
|
|
455
|
+
readonly type: "object";
|
|
456
|
+
readonly properties: {
|
|
457
|
+
readonly code: {
|
|
458
|
+
readonly type: "string";
|
|
459
|
+
readonly description: "要转换的代码";
|
|
460
|
+
};
|
|
461
|
+
readonly from: {
|
|
462
|
+
readonly type: "string";
|
|
463
|
+
readonly description: "源格式:js、class、vue2。可选,会自动识别";
|
|
464
|
+
};
|
|
465
|
+
readonly to: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly description: "目标格式:ts、hooks、vue3。可选,会自动识别";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
readonly required: readonly [];
|
|
471
|
+
readonly additionalProperties: true;
|
|
472
|
+
};
|
|
473
|
+
} | {
|
|
474
|
+
readonly name: "css_order";
|
|
475
|
+
readonly description: "当用户需要整理 CSS 属性顺序时使用。重排 CSS 属性顺序,按布局→盒模型→视觉→其他规则整理";
|
|
476
|
+
readonly inputSchema: {
|
|
477
|
+
readonly type: "object";
|
|
478
|
+
readonly properties: {
|
|
479
|
+
readonly css: {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
readonly description: "CSS 代码。可选,如果不提供会处理当前文件";
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
readonly required: readonly [];
|
|
485
|
+
readonly additionalProperties: true;
|
|
486
|
+
};
|
|
487
|
+
} | {
|
|
488
|
+
readonly name: "split";
|
|
489
|
+
readonly description: "当用户需要拆分大文件、模块化代码时使用。将大文件拆分为小模块,按类型/功能/组件策略拆分";
|
|
490
|
+
readonly inputSchema: {
|
|
491
|
+
readonly type: "object";
|
|
492
|
+
readonly properties: {
|
|
493
|
+
readonly file: {
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
readonly description: "要拆分的文件内容";
|
|
496
|
+
};
|
|
497
|
+
readonly strategy: {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
readonly description: "拆分策略:auto(自动)、by-type(按类型)、by-function(按功能)。可选,默认 auto";
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
readonly required: readonly [];
|
|
503
|
+
readonly additionalProperties: true;
|
|
504
|
+
};
|
|
505
|
+
} | {
|
|
506
|
+
readonly name: "analyze_project";
|
|
507
|
+
readonly description: "当用户需要了解项目结构、分析项目技术栈时使用。分析项目结构、技术栈、架构模式,输出项目全景报告";
|
|
508
|
+
readonly inputSchema: {
|
|
509
|
+
readonly type: "object";
|
|
510
|
+
readonly properties: {
|
|
511
|
+
readonly project_path: {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
readonly description: "项目路径。可选,默认为当前目录";
|
|
514
|
+
};
|
|
515
|
+
readonly max_depth: {
|
|
516
|
+
readonly type: "number";
|
|
517
|
+
readonly description: "分析深度。可选,默认 5";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
readonly required: readonly [];
|
|
521
|
+
readonly additionalProperties: true;
|
|
522
|
+
};
|
|
523
|
+
} | {
|
|
524
|
+
readonly name: "init_project_context";
|
|
525
|
+
readonly description: "当用户需要生成项目上下文文档、帮助团队快速上手时使用。生成项目上下文文档(技术栈/架构/编码规范),供后续开发参考";
|
|
526
|
+
readonly inputSchema: {
|
|
527
|
+
readonly type: "object";
|
|
528
|
+
readonly properties: {
|
|
529
|
+
readonly docs_dir: {
|
|
530
|
+
readonly type: "string";
|
|
531
|
+
readonly description: "文档目录。可选,默认 docs";
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
readonly required: readonly [];
|
|
535
|
+
readonly additionalProperties: true;
|
|
536
|
+
};
|
|
537
|
+
} | {
|
|
538
|
+
readonly name: "add_feature";
|
|
539
|
+
readonly description: "当用户需要添加新功能、生成功能规格文档时使用。生成新功能规格文档(需求/设计/任务清单),基于项目上下文";
|
|
540
|
+
readonly inputSchema: {
|
|
541
|
+
readonly type: "object";
|
|
542
|
+
readonly properties: {
|
|
543
|
+
readonly feature_name: {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
readonly description: "功能名称(kebab-case 格式,如 user-auth)。可选,如果不提供会从 description 自动提取";
|
|
546
|
+
};
|
|
547
|
+
readonly description: {
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
readonly description: "功能详细描述。可以是简短的自然语言(如'添加用户认证功能')或详细的需求说明";
|
|
550
|
+
};
|
|
551
|
+
readonly docs_dir: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
readonly description: "文档输出目录,默认为 docs";
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
readonly required: readonly [];
|
|
557
|
+
readonly additionalProperties: true;
|
|
558
|
+
};
|
|
559
|
+
} | {
|
|
560
|
+
readonly name: "estimate";
|
|
561
|
+
readonly description: "当用户需要估算开发工作量、评估任务时间时使用。估算开发工作量,输出故事点、时间范围(乐观/正常/悲观)、风险点";
|
|
562
|
+
readonly inputSchema: {
|
|
563
|
+
readonly type: "object";
|
|
564
|
+
readonly properties: {
|
|
565
|
+
readonly task_description: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
readonly description: "任务描述。可以是简短的自然语言(如'估算开发工作量')或详细的任务说明";
|
|
568
|
+
};
|
|
569
|
+
readonly code_context: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly description: "相关代码或文件上下文。可选,有助于更准确的估算";
|
|
572
|
+
};
|
|
573
|
+
readonly team_size: {
|
|
574
|
+
readonly type: "number";
|
|
575
|
+
readonly description: "团队规模(人数)。可选,默认为 1";
|
|
576
|
+
};
|
|
577
|
+
readonly experience_level: {
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly description: "经验水平:junior(初级)、mid(中级)、senior(高级)。可选,默认为 mid";
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly required: readonly [];
|
|
583
|
+
readonly additionalProperties: true;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
readonly name: "start_feature";
|
|
587
|
+
readonly description: "当用户需要完整的新功能开发流程时使用。编排:检查上下文→生成规格→估算工作量。若只需规格文档请用 add_feature";
|
|
588
|
+
readonly inputSchema: {
|
|
589
|
+
readonly type: "object";
|
|
590
|
+
readonly properties: {
|
|
591
|
+
readonly feature_name: {
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
readonly description: "功能名称(kebab-case 格式,如 user-auth)。可选,如果不提供会从 description 自动提取";
|
|
594
|
+
};
|
|
595
|
+
readonly description: {
|
|
596
|
+
readonly type: "string";
|
|
597
|
+
readonly description: "功能详细描述。可以是简短的自然语言(如'开发用户认证功能')或详细的需求说明";
|
|
598
|
+
};
|
|
599
|
+
readonly docs_dir: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
readonly description: "文档输出目录,默认为 docs";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
readonly required: readonly [];
|
|
605
|
+
readonly additionalProperties: true;
|
|
606
|
+
};
|
|
607
|
+
} | {
|
|
608
|
+
readonly name: "start_bugfix";
|
|
609
|
+
readonly description: "当用户需要完整的 Bug 修复流程时使用。编排:检查上下文→分析定位→修复方案→生成测试。若只需定位请用 debug";
|
|
610
|
+
readonly inputSchema: {
|
|
611
|
+
readonly type: "object";
|
|
612
|
+
readonly properties: {
|
|
613
|
+
readonly error_message: {
|
|
614
|
+
readonly type: "string";
|
|
615
|
+
readonly description: "错误信息";
|
|
616
|
+
};
|
|
617
|
+
readonly stack_trace: {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
readonly description: "堆栈跟踪。可选";
|
|
620
|
+
};
|
|
621
|
+
readonly code_context: {
|
|
622
|
+
readonly type: "string";
|
|
623
|
+
readonly description: "相关代码。可选";
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
readonly required: readonly [];
|
|
627
|
+
readonly additionalProperties: true;
|
|
628
|
+
};
|
|
629
|
+
} | {
|
|
630
|
+
readonly name: "start_review";
|
|
631
|
+
readonly description: "当用户需要全面审查代码时使用。编排:代码审查+安全扫描+性能分析,输出综合报告。若只需单项请用对应工具";
|
|
632
|
+
readonly inputSchema: {
|
|
633
|
+
readonly type: "object";
|
|
634
|
+
readonly properties: {
|
|
635
|
+
readonly code: {
|
|
636
|
+
readonly type: "string";
|
|
637
|
+
readonly description: "要审查的代码";
|
|
638
|
+
};
|
|
639
|
+
readonly language: {
|
|
640
|
+
readonly type: "string";
|
|
641
|
+
readonly description: "编程语言。可选,会自动识别";
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
readonly required: readonly [];
|
|
645
|
+
readonly additionalProperties: true;
|
|
646
|
+
};
|
|
647
|
+
} | {
|
|
648
|
+
readonly name: "start_release";
|
|
649
|
+
readonly description: "当用户需要准备版本发布时使用。编排:生成 Changelog→生成 PR 描述。若只需单项请用 genchangelog 或 genpr";
|
|
650
|
+
readonly inputSchema: {
|
|
651
|
+
readonly type: "object";
|
|
652
|
+
readonly properties: {
|
|
653
|
+
readonly version: {
|
|
654
|
+
readonly type: "string";
|
|
655
|
+
readonly description: "版本号(如 v1.2.0)";
|
|
656
|
+
};
|
|
657
|
+
readonly from_tag: {
|
|
658
|
+
readonly type: "string";
|
|
659
|
+
readonly description: "起始 tag。可选";
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
readonly required: readonly [];
|
|
663
|
+
readonly additionalProperties: true;
|
|
664
|
+
};
|
|
665
|
+
} | {
|
|
666
|
+
readonly name: "start_refactor";
|
|
667
|
+
readonly description: "当用户需要完整的代码重构流程时使用。编排:审查现状→重构建议→生成测试。若只需建议请用 refactor";
|
|
668
|
+
readonly inputSchema: {
|
|
669
|
+
readonly type: "object";
|
|
670
|
+
readonly properties: {
|
|
671
|
+
readonly code: {
|
|
672
|
+
readonly type: "string";
|
|
673
|
+
readonly description: "要重构的代码";
|
|
674
|
+
};
|
|
675
|
+
readonly goal: {
|
|
676
|
+
readonly type: "string";
|
|
677
|
+
readonly description: "重构目标。可选";
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
readonly required: readonly [];
|
|
681
|
+
readonly additionalProperties: true;
|
|
682
|
+
};
|
|
683
|
+
} | {
|
|
684
|
+
readonly name: "start_onboard";
|
|
685
|
+
readonly description: "当用户需要快速上手新项目时使用。编排:分析项目→生成上下文文档。若只需分析请用 analyze_project";
|
|
686
|
+
readonly inputSchema: {
|
|
687
|
+
readonly type: "object";
|
|
688
|
+
readonly properties: {
|
|
689
|
+
readonly project_path: {
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
readonly description: "项目路径。可选,默认当前目录";
|
|
692
|
+
};
|
|
693
|
+
readonly docs_dir: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
readonly description: "文档目录。可选,默认 docs";
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
readonly required: readonly [];
|
|
699
|
+
readonly additionalProperties: true;
|
|
700
|
+
};
|
|
701
|
+
} | {
|
|
702
|
+
readonly name: "start_api";
|
|
703
|
+
readonly description: "当用户需要完整的 API 开发流程时使用。编排:生成文档→生成 Mock→生成测试。若只需单项请用对应生成工具";
|
|
704
|
+
readonly inputSchema: {
|
|
705
|
+
readonly type: "object";
|
|
706
|
+
readonly properties: {
|
|
707
|
+
readonly code: {
|
|
708
|
+
readonly type: "string";
|
|
709
|
+
readonly description: "API 代码";
|
|
710
|
+
};
|
|
711
|
+
readonly language: {
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
readonly description: "编程语言。可选,会自动识别";
|
|
714
|
+
};
|
|
715
|
+
readonly format: {
|
|
716
|
+
readonly type: "string";
|
|
717
|
+
readonly description: "文档格式。可选,默认 openapi";
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
readonly required: readonly [];
|
|
721
|
+
readonly additionalProperties: true;
|
|
722
|
+
};
|
|
723
|
+
} | {
|
|
724
|
+
readonly name: "start_doc";
|
|
725
|
+
readonly description: "当用户需要补全项目文档时使用。编排:注释→README→API 文档。若只需单项文档请用对应生成工具";
|
|
726
|
+
readonly inputSchema: {
|
|
727
|
+
readonly type: "object";
|
|
728
|
+
readonly properties: {
|
|
729
|
+
readonly code: {
|
|
730
|
+
readonly type: "string";
|
|
731
|
+
readonly description: "代码或项目信息";
|
|
732
|
+
};
|
|
733
|
+
readonly project_info: {
|
|
734
|
+
readonly type: "string";
|
|
735
|
+
readonly description: "项目信息。可选";
|
|
736
|
+
};
|
|
737
|
+
readonly style: {
|
|
738
|
+
readonly type: "string";
|
|
739
|
+
readonly description: "文档风格。可选,默认 jsdoc";
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
readonly required: readonly [];
|
|
743
|
+
readonly additionalProperties: true;
|
|
744
|
+
};
|
|
745
|
+
} | {
|
|
746
|
+
readonly name: "gen_skill";
|
|
747
|
+
readonly description: "当用户需要生成 Agent Skills 文档时使用。为 MCP Probe Kit 工具生成符合开放标准的技能文档,输出到 skills/ 目录";
|
|
748
|
+
readonly inputSchema: {
|
|
749
|
+
readonly type: "object";
|
|
750
|
+
readonly properties: {
|
|
751
|
+
readonly scope: {
|
|
752
|
+
readonly type: "string";
|
|
753
|
+
readonly description: "生成范围:all(所有工具)、single(单个工具)。可选,默认 all";
|
|
754
|
+
};
|
|
755
|
+
readonly tool_name: {
|
|
756
|
+
readonly type: "string";
|
|
757
|
+
readonly description: "工具名称。当 scope 为 single 时必填";
|
|
758
|
+
};
|
|
759
|
+
readonly lang: {
|
|
760
|
+
readonly type: "string";
|
|
761
|
+
readonly description: "文档语言:zh(中文)、en(英文)。可选,默认 zh";
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
readonly required: readonly [];
|
|
765
|
+
readonly additionalProperties: true;
|
|
766
|
+
};
|
|
767
|
+
})[];
|