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