mcp-probe-kit 1.15.1 → 2.0.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.
Files changed (162) hide show
  1. package/README.md +113 -1642
  2. package/build/index.js +75 -42
  3. package/build/lib/elicitation-helper.d.ts +73 -0
  4. package/build/lib/elicitation-helper.js +130 -0
  5. package/build/lib/response.d.ts +32 -0
  6. package/build/lib/response.js +28 -0
  7. package/build/lib/tasks-manager.d.ts +116 -0
  8. package/build/lib/tasks-manager.js +217 -0
  9. package/build/lib/toolset-manager.d.ts +48 -0
  10. package/build/lib/toolset-manager.js +112 -0
  11. package/build/schemas/basic-tools.d.ts +0 -32
  12. package/build/schemas/basic-tools.js +0 -34
  13. package/build/schemas/code-analysis-tools.d.ts +0 -36
  14. package/build/schemas/code-analysis-tools.js +0 -38
  15. package/build/schemas/code-gen-tools.d.ts +0 -44
  16. package/build/schemas/code-gen-tools.js +0 -46
  17. package/build/schemas/doc-util-tools.d.ts +0 -54
  18. package/build/schemas/doc-util-tools.js +0 -58
  19. package/build/schemas/index.d.ts +0 -188
  20. package/build/schemas/orchestration-tools.d.ts +0 -22
  21. package/build/schemas/orchestration-tools.js +0 -23
  22. package/build/schemas/output/core-tools.d.ts +817 -0
  23. package/build/schemas/output/core-tools.js +421 -0
  24. package/build/schemas/output/generation-tools.d.ts +936 -0
  25. package/build/schemas/output/generation-tools.js +446 -0
  26. package/build/schemas/output/helper-tools.d.ts +243 -0
  27. package/build/schemas/output/helper-tools.js +138 -0
  28. package/build/schemas/output/index.d.ts +76 -0
  29. package/build/schemas/output/index.js +96 -0
  30. package/build/schemas/output/project-tools.d.ts +702 -0
  31. package/build/schemas/output/project-tools.js +339 -0
  32. package/build/schemas/output/ui-ux-tools.d.ts +469 -0
  33. package/build/schemas/output/ui-ux-tools.js +218 -0
  34. package/build/schemas/output/workflow-tools.d.ts +267 -0
  35. package/build/schemas/output/workflow-tools.js +179 -0
  36. package/build/schemas/structured-output.d.ts +1317 -0
  37. package/build/schemas/structured-output.js +1017 -0
  38. package/build/tools/__tests__/start_ui.integration.test.js +5 -5
  39. package/build/tools/__tests__/start_ui.property.test.js +11 -11
  40. package/build/tools/add_feature.d.ts +1 -13
  41. package/build/tools/add_feature.js +48 -13
  42. package/build/tools/analyze_project.js +57 -18
  43. package/build/tools/check_deps.d.ts +1 -13
  44. package/build/tools/check_deps.js +24 -15
  45. package/build/tools/code_review.d.ts +1 -13
  46. package/build/tools/code_review.js +19 -16
  47. package/build/tools/debug.d.ts +1 -13
  48. package/build/tools/debug.js +18 -16
  49. package/build/tools/estimate.d.ts +1 -19
  50. package/build/tools/estimate.js +36 -6
  51. package/build/tools/fix_bug.d.ts +1 -13
  52. package/build/tools/fix_bug.js +24 -6
  53. package/build/tools/gen_mock.d.ts +1 -19
  54. package/build/tools/gen_mock.js +42 -227
  55. package/build/tools/genapi.d.ts +1 -13
  56. package/build/tools/genapi.js +18 -15
  57. package/build/tools/genchangelog.d.ts +1 -13
  58. package/build/tools/genchangelog.js +36 -212
  59. package/build/tools/gencommit.d.ts +1 -7
  60. package/build/tools/gencommit.js +21 -13
  61. package/build/tools/gendoc.d.ts +1 -13
  62. package/build/tools/gendoc.js +18 -15
  63. package/build/tools/genpr.d.ts +1 -13
  64. package/build/tools/genpr.js +28 -157
  65. package/build/tools/genreadme.d.ts +1 -13
  66. package/build/tools/genreadme.js +22 -587
  67. package/build/tools/gensql.d.ts +1 -13
  68. package/build/tools/gensql.js +24 -283
  69. package/build/tools/gentest.d.ts +1 -13
  70. package/build/tools/gentest.js +49 -16
  71. package/build/tools/index.d.ts +0 -10
  72. package/build/tools/index.js +0 -10
  73. package/build/tools/init_component_catalog.d.ts +3 -20
  74. package/build/tools/init_component_catalog.js +141 -786
  75. package/build/tools/init_project.d.ts +7 -13
  76. package/build/tools/init_project.js +54 -16
  77. package/build/tools/init_project_context.d.ts +1 -13
  78. package/build/tools/init_project_context.js +41 -14
  79. package/build/tools/perf.d.ts +1 -13
  80. package/build/tools/perf.js +18 -15
  81. package/build/tools/refactor.d.ts +1 -13
  82. package/build/tools/refactor.js +54 -15
  83. package/build/tools/render_ui.d.ts +2 -19
  84. package/build/tools/render_ui.js +201 -347
  85. package/build/tools/resolve_conflict.d.ts +1 -13
  86. package/build/tools/resolve_conflict.js +18 -15
  87. package/build/tools/security_scan.d.ts +1 -13
  88. package/build/tools/security_scan.js +16 -5
  89. package/build/tools/start_api.d.ts +7 -13
  90. package/build/tools/start_api.js +69 -157
  91. package/build/tools/start_bugfix.d.ts +1 -7
  92. package/build/tools/start_bugfix.js +38 -2
  93. package/build/tools/start_doc.d.ts +7 -13
  94. package/build/tools/start_doc.js +76 -169
  95. package/build/tools/start_feature.d.ts +1 -7
  96. package/build/tools/start_feature.js +54 -2
  97. package/build/tools/start_onboard.d.ts +1 -7
  98. package/build/tools/start_onboard.js +40 -2
  99. package/build/tools/start_ralph.d.ts +1 -7
  100. package/build/tools/start_ralph.js +88 -2
  101. package/build/tools/start_refactor.d.ts +7 -13
  102. package/build/tools/start_refactor.js +75 -148
  103. package/build/tools/start_release.d.ts +7 -13
  104. package/build/tools/start_release.js +56 -131
  105. package/build/tools/start_review.d.ts +7 -13
  106. package/build/tools/start_review.js +70 -142
  107. package/build/tools/start_ui.d.ts +1 -7
  108. package/build/tools/start_ui.js +98 -8
  109. package/build/tools/ui-ux-tools.d.ts +3 -39
  110. package/build/tools/ui-ux-tools.js +201 -125
  111. package/docs/data/tools.js +864 -0
  112. package/docs/index.html +594 -0
  113. package/docs/pages/all-tools.html +649 -0
  114. package/docs/pages/examples.html +564 -0
  115. package/docs/pages/getting-started.html +529 -0
  116. package/docs/pages/migration.html +308 -0
  117. package/docs/specs/algorithm-enhancement/roadmap.md +619 -0
  118. package/docs/specs/vnext-upgrade/00-OVERVIEW.md +258 -0
  119. package/docs/specs/vnext-upgrade/BETA_RELEASE_GUIDE.md +328 -0
  120. package/docs/specs/vnext-upgrade/GITHUB_DISCUSSION_TEMPLATE.md +236 -0
  121. package/docs/specs/vnext-upgrade/M8.9-PROGRESS-UPDATE.md +248 -0
  122. package/docs/specs/vnext-upgrade/PROGRESS-SUMMARY.md +195 -0
  123. package/docs/specs/vnext-upgrade/QUICK_REFERENCE.md +338 -0
  124. package/docs/specs/vnext-upgrade/README.md +125 -0
  125. package/docs/specs/vnext-upgrade/STATUS-UPDATE-2026-01-26.md +230 -0
  126. package/docs/specs/vnext-upgrade/TOOL_CLEANUP.md +343 -0
  127. package/docs/specs/vnext-upgrade/completed/M1-M2-SUMMARY.md +27 -0
  128. package/docs/specs/vnext-upgrade/completed/M3_COMPLETION_SUMMARY.md +273 -0
  129. package/docs/specs/vnext-upgrade/completed/M4-SUMMARY.md +19 -0
  130. package/docs/specs/vnext-upgrade/completed/M5_COMPLETION_SUMMARY.md +0 -0
  131. package/docs/specs/vnext-upgrade/completed/M8.1-SUMMARY.md +247 -0
  132. package/docs/specs/vnext-upgrade/completed/M8.2-SUMMARY.md +296 -0
  133. package/docs/specs/vnext-upgrade/completed/M8.3-SUMMARY.md +241 -0
  134. package/docs/specs/vnext-upgrade/completed/M8.3-TEST-SUMMARY.md +216 -0
  135. package/docs/specs/vnext-upgrade/completed/M8.4-SUMMARY.md +217 -0
  136. package/docs/specs/vnext-upgrade/completed/M8.4-TEST-SUMMARY.md +198 -0
  137. package/docs/specs/vnext-upgrade/completed/M8.5-SUMMARY.md +202 -0
  138. package/docs/specs/vnext-upgrade/completed/M8.5-TEST-SUMMARY.md +223 -0
  139. package/docs/specs/vnext-upgrade/completed/M8.6-SUMMARY.md +299 -0
  140. package/docs/specs/vnext-upgrade/completed/M8.8-TEST-SUMMARY.md +216 -0
  141. package/docs/specs/vnext-upgrade/completed/TOOL-CLEANUP-SUMMARY.md +210 -0
  142. package/docs/specs/vnext-upgrade/design.md +848 -0
  143. package/docs/specs/vnext-upgrade/requirements.md +221 -0
  144. package/docs/specs/vnext-upgrade/tasks/00-INDEX.md +335 -0
  145. package/docs/specs/vnext-upgrade/tasks/M8.1-SCHEMA-DEFINITION.md +300 -0
  146. package/docs/specs/vnext-upgrade/tasks/M8.2-P1-TOOLS.md +249 -0
  147. package/docs/specs/vnext-upgrade/tasks/M8.3-GENERATION-TOOLS.md +49 -0
  148. package/docs/specs/vnext-upgrade/tasks/M8.4-ORCHESTRATION-TOOLS.md +28 -0
  149. package/docs/specs/vnext-upgrade/tasks/M8.5-PROJECT-TOOLS.md +29 -0
  150. package/docs/specs/vnext-upgrade/tasks/M8.6-UI-TOOLS.md +66 -0
  151. package/docs/specs/vnext-upgrade/tasks/M8.7-HELPER-TOOLS.md +24 -0
  152. package/docs/specs/vnext-upgrade/tasks/M8.8-INTEGRATION-TESTS.md +90 -0
  153. package/docs/specs/vnext-upgrade/tasks/M8.9-DOCUMENTATION.md +103 -0
  154. package/docs/styles/docs.css +556 -0
  155. package/docs/styles/page.css +815 -0
  156. package/docs/vnext/MCP_2025-11-25_GUIDE.md +276 -0
  157. package/docs/vnext/vNext-PRD.md +488 -0
  158. package/package.json +6 -6
  159. package/docs/BEST_PRACTICES.md +0 -1185
  160. package/docs/HOW_TO_TRIGGER.md +0 -1141
  161. package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.html +0 -544
  162. package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.md +0 -1447
@@ -0,0 +1,339 @@
1
+ /**
2
+ * 项目管理工具的结构化输出 Schema
3
+ * 包含: init_project, init_project_context, add_feature, analyze_project, estimate, check_deps, split, resolve_conflict
4
+ */
5
+ /**
6
+ * Project Init Schema
7
+ * 用于 init_project 工具的结构化输出
8
+ */
9
+ export const ProjectInitSchema = {
10
+ type: 'object',
11
+ properties: {
12
+ summary: { type: 'string' },
13
+ projectName: { type: 'string' },
14
+ structure: {
15
+ type: 'object',
16
+ description: '项目结构',
17
+ properties: {
18
+ directories: { type: 'array', items: { type: 'string' } },
19
+ files: { type: 'array', items: { type: 'string' } },
20
+ },
21
+ },
22
+ techStack: {
23
+ type: 'array',
24
+ items: { type: 'string' },
25
+ },
26
+ dependencies: {
27
+ type: 'object',
28
+ additionalProperties: { type: 'string' },
29
+ },
30
+ scripts: {
31
+ type: 'object',
32
+ additionalProperties: { type: 'string' },
33
+ },
34
+ nextSteps: {
35
+ type: 'array',
36
+ items: { type: 'string' },
37
+ },
38
+ },
39
+ required: ['summary', 'projectName', 'structure'],
40
+ };
41
+ /**
42
+ * Project Context Schema
43
+ * 用于 init_project_context 工具的结构化输出
44
+ */
45
+ export const ProjectContextSchema = {
46
+ type: 'object',
47
+ properties: {
48
+ summary: { type: 'string' },
49
+ projectOverview: {
50
+ type: 'object',
51
+ properties: {
52
+ name: { type: 'string' },
53
+ description: { type: 'string' },
54
+ techStack: { type: 'array', items: { type: 'string' } },
55
+ architecture: { type: 'string' },
56
+ },
57
+ },
58
+ codingStandards: {
59
+ type: 'array',
60
+ items: { type: 'string' },
61
+ },
62
+ workflows: {
63
+ type: 'array',
64
+ items: {
65
+ type: 'object',
66
+ properties: {
67
+ name: { type: 'string' },
68
+ description: { type: 'string' },
69
+ steps: { type: 'array', items: { type: 'string' } },
70
+ },
71
+ },
72
+ },
73
+ documentation: {
74
+ type: 'array',
75
+ items: {
76
+ type: 'object',
77
+ properties: {
78
+ path: { type: 'string' },
79
+ purpose: { type: 'string' },
80
+ },
81
+ },
82
+ },
83
+ },
84
+ required: ['summary', 'projectOverview'],
85
+ };
86
+ /**
87
+ * Feature Spec Schema
88
+ * 用于 add_feature 工具的结构化输出
89
+ */
90
+ export const FeatureSpecSchema = {
91
+ type: 'object',
92
+ properties: {
93
+ summary: { type: 'string' },
94
+ featureName: { type: 'string' },
95
+ requirements: {
96
+ type: 'array',
97
+ items: { type: 'string' },
98
+ },
99
+ design: {
100
+ type: 'object',
101
+ properties: {
102
+ architecture: { type: 'string' },
103
+ components: { type: 'array', items: { type: 'string' } },
104
+ dataFlow: { type: 'string' },
105
+ },
106
+ },
107
+ tasks: {
108
+ type: 'array',
109
+ items: {
110
+ type: 'object',
111
+ properties: {
112
+ id: { type: 'string' },
113
+ title: { type: 'string' },
114
+ description: { type: 'string' },
115
+ estimatedHours: { type: 'number' },
116
+ dependencies: { type: 'array', items: { type: 'string' } },
117
+ },
118
+ },
119
+ },
120
+ estimate: {
121
+ type: 'object',
122
+ properties: {
123
+ storyPoints: { type: 'number' },
124
+ optimistic: { type: 'string' },
125
+ normal: { type: 'string' },
126
+ pessimistic: { type: 'string' },
127
+ },
128
+ },
129
+ },
130
+ required: ['summary', 'featureName', 'requirements', 'tasks'],
131
+ };
132
+ /**
133
+ * Project Analysis Schema
134
+ * 用于 analyze_project 工具的结构化输出
135
+ */
136
+ export const ProjectAnalysisSchema = {
137
+ type: 'object',
138
+ properties: {
139
+ summary: { type: 'string' },
140
+ structure: {
141
+ type: 'object',
142
+ properties: {
143
+ totalFiles: { type: 'number' },
144
+ totalLines: { type: 'number' },
145
+ languages: { type: 'object', additionalProperties: { type: 'number' } },
146
+ },
147
+ },
148
+ techStack: {
149
+ type: 'array',
150
+ items: {
151
+ type: 'object',
152
+ properties: {
153
+ name: { type: 'string' },
154
+ version: { type: 'string' },
155
+ purpose: { type: 'string' },
156
+ },
157
+ },
158
+ },
159
+ architecture: {
160
+ type: 'object',
161
+ properties: {
162
+ pattern: { type: 'string' },
163
+ layers: { type: 'array', items: { type: 'string' } },
164
+ description: { type: 'string' },
165
+ },
166
+ },
167
+ dependencies: {
168
+ type: 'object',
169
+ properties: {
170
+ production: { type: 'number' },
171
+ development: { type: 'number' },
172
+ outdated: { type: 'number' },
173
+ },
174
+ },
175
+ codeQuality: {
176
+ type: 'object',
177
+ properties: {
178
+ complexity: { type: 'string', enum: ['low', 'medium', 'high'] },
179
+ maintainability: { type: 'number' },
180
+ testCoverage: { type: 'number' },
181
+ },
182
+ },
183
+ recommendations: {
184
+ type: 'array',
185
+ items: { type: 'string' },
186
+ },
187
+ },
188
+ required: ['summary', 'structure', 'techStack'],
189
+ };
190
+ /**
191
+ * Estimate Schema
192
+ * 用于 estimate 工具的结构化输出
193
+ */
194
+ export const EstimateSchema = {
195
+ type: 'object',
196
+ properties: {
197
+ summary: { type: 'string' },
198
+ storyPoints: { type: 'number' },
199
+ timeEstimates: {
200
+ type: 'object',
201
+ properties: {
202
+ optimistic: { type: 'string' },
203
+ normal: { type: 'string' },
204
+ pessimistic: { type: 'string' },
205
+ },
206
+ required: ['optimistic', 'normal', 'pessimistic'],
207
+ },
208
+ breakdown: {
209
+ type: 'array',
210
+ items: {
211
+ type: 'object',
212
+ properties: {
213
+ task: { type: 'string' },
214
+ hours: { type: 'number' },
215
+ complexity: { type: 'string', enum: ['low', 'medium', 'high'] },
216
+ },
217
+ },
218
+ },
219
+ risks: {
220
+ type: 'array',
221
+ items: {
222
+ type: 'object',
223
+ properties: {
224
+ risk: { type: 'string' },
225
+ impact: { type: 'string', enum: ['low', 'medium', 'high'] },
226
+ mitigation: { type: 'string' },
227
+ },
228
+ },
229
+ },
230
+ assumptions: {
231
+ type: 'array',
232
+ items: { type: 'string' },
233
+ },
234
+ },
235
+ required: ['summary', 'storyPoints', 'timeEstimates'],
236
+ };
237
+ /**
238
+ * Dependency Report Schema
239
+ * 用于 check_deps 工具的结构化输出
240
+ */
241
+ export const DependencyReportSchema = {
242
+ type: 'object',
243
+ properties: {
244
+ summary: { type: 'string' },
245
+ totalDependencies: { type: 'number' },
246
+ outdated: {
247
+ type: 'array',
248
+ items: {
249
+ type: 'object',
250
+ properties: {
251
+ name: { type: 'string' },
252
+ current: { type: 'string' },
253
+ latest: { type: 'string' },
254
+ type: { type: 'string', enum: ['major', 'minor', 'patch'] },
255
+ },
256
+ },
257
+ },
258
+ vulnerabilities: {
259
+ type: 'array',
260
+ items: {
261
+ type: 'object',
262
+ properties: {
263
+ name: { type: 'string' },
264
+ severity: { type: 'string', enum: ['critical', 'high', 'medium', 'low'] },
265
+ description: { type: 'string' },
266
+ fixAvailable: { type: 'boolean' },
267
+ },
268
+ },
269
+ },
270
+ unused: {
271
+ type: 'array',
272
+ items: { type: 'string' },
273
+ },
274
+ recommendations: {
275
+ type: 'array',
276
+ items: { type: 'string' },
277
+ },
278
+ },
279
+ required: ['summary', 'totalDependencies'],
280
+ };
281
+ /**
282
+ * Split Plan Schema
283
+ * 用于 split 工具的结构化输出
284
+ */
285
+ export const SplitPlanSchema = {
286
+ type: 'object',
287
+ properties: {
288
+ summary: { type: 'string' },
289
+ strategy: {
290
+ type: 'string',
291
+ enum: ['by-type', 'by-function', 'by-component', 'auto'],
292
+ },
293
+ modules: {
294
+ type: 'array',
295
+ items: {
296
+ type: 'object',
297
+ properties: {
298
+ name: { type: 'string' },
299
+ path: { type: 'string' },
300
+ purpose: { type: 'string' },
301
+ exports: { type: 'array', items: { type: 'string' } },
302
+ dependencies: { type: 'array', items: { type: 'string' } },
303
+ },
304
+ },
305
+ },
306
+ benefits: {
307
+ type: 'array',
308
+ items: { type: 'string' },
309
+ },
310
+ },
311
+ required: ['summary', 'strategy', 'modules'],
312
+ };
313
+ /**
314
+ * Conflict Resolution Schema
315
+ * 用于 resolve_conflict 工具的结构化输出
316
+ */
317
+ export const ConflictResolutionSchema = {
318
+ type: 'object',
319
+ properties: {
320
+ summary: { type: 'string' },
321
+ conflicts: {
322
+ type: 'array',
323
+ items: {
324
+ type: 'object',
325
+ properties: {
326
+ file: { type: 'string' },
327
+ line: { type: 'number' },
328
+ ours: { type: 'string' },
329
+ theirs: { type: 'string' },
330
+ resolution: { type: 'string' },
331
+ rationale: { type: 'string' },
332
+ },
333
+ },
334
+ },
335
+ resolvedCode: { type: 'string' },
336
+ explanation: { type: 'string' },
337
+ },
338
+ required: ['summary', 'conflicts', 'resolvedCode'],
339
+ };