mcp-probe-kit 3.0.5 → 3.0.7

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 (69) hide show
  1. package/README.md +458 -431
  2. package/build/index.js +875 -141
  3. package/build/lib/gitnexus-bridge.d.ts +58 -0
  4. package/build/lib/gitnexus-bridge.js +379 -0
  5. package/build/lib/template-loader.js +317 -317
  6. package/build/lib/tool-execution-context.d.ts +8 -0
  7. package/build/lib/tool-execution-context.js +20 -0
  8. package/build/lib/toolset-manager.d.ts +1 -1
  9. package/build/lib/toolset-manager.js +7 -5
  10. package/build/schemas/code-analysis-tools.d.ts +46 -0
  11. package/build/schemas/code-analysis-tools.js +47 -0
  12. package/build/schemas/git-tools.js +16 -16
  13. package/build/schemas/index.d.ts +46 -0
  14. package/build/tools/__tests__/code_insight.unit.test.d.ts +1 -0
  15. package/build/tools/__tests__/code_insight.unit.test.js +35 -0
  16. package/build/tools/__tests__/start_bugfix.unit.test.js +14 -14
  17. package/build/tools/__tests__/start_ui.unit.test.js +11 -11
  18. package/build/tools/add_feature.js +79 -79
  19. package/build/tools/ask_user.js +5 -5
  20. package/build/tools/code_insight.d.ts +8 -0
  21. package/build/tools/code_insight.js +129 -0
  22. package/build/tools/index.d.ts +1 -0
  23. package/build/tools/index.js +1 -0
  24. package/build/tools/interview.js +9 -9
  25. package/build/tools/start_bugfix.d.ts +2 -1
  26. package/build/tools/start_bugfix.js +170 -126
  27. package/build/tools/start_feature.d.ts +2 -1
  28. package/build/tools/start_feature.js +156 -112
  29. package/build/tools/start_onboard.d.ts +2 -1
  30. package/build/tools/start_onboard.js +57 -51
  31. package/build/tools/start_product.d.ts +2 -1
  32. package/build/tools/start_product.js +9 -1
  33. package/build/tools/start_ralph.d.ts +2 -1
  34. package/build/tools/start_ralph.js +9 -3
  35. package/build/tools/start_ui.d.ts +2 -1
  36. package/build/tools/start_ui.js +102 -88
  37. package/build/tools/ui-ux-tools.d.ts +2 -1
  38. package/build/tools/ui-ux-tools.js +19 -3
  39. package/build/utils/ui-sync.d.ts +6 -2
  40. package/build/utils/ui-sync.js +125 -29
  41. package/docs/assets/font/MaterialSymbolsOutlined.codepoints +4102 -0
  42. package/docs/assets/font/MaterialSymbolsOutlined.ttf +0 -0
  43. package/docs/assets/font/noto-sans-sc-400.ttf +0 -0
  44. package/docs/assets/font/noto-sans-sc-700.ttf +0 -0
  45. package/docs/assets/font/noto-sans-sc-900.ttf +0 -0
  46. package/docs/assets/js/i18n.js +122 -21
  47. package/docs/assets/js/tailwind.js +83 -83
  48. package/docs/data/tools.js +419 -399
  49. package/docs/debug-i18n.html +163 -0
  50. package/docs/i18n/all-tools/en.json +157 -0
  51. package/docs/i18n/all-tools/ja.json +157 -0
  52. package/docs/i18n/all-tools/ko.json +157 -0
  53. package/docs/i18n/all-tools/zh-CN.json +157 -0
  54. package/docs/pages/all-tools.html +514 -352
  55. package/docs/pages/examples.html +689 -689
  56. package/docs/pages/getting-started.html +589 -589
  57. package/docs/pages/migration.html +298 -298
  58. package/docs/specs/user-auth/design.md +82 -0
  59. package/docs/specs/user-auth/requirements.md +52 -0
  60. package/docs/specs/user-auth/tasks.md +55 -0
  61. package/package.json +5 -5
  62. package/docs/project-context/architecture.md +0 -0
  63. package/docs/project-context/how-to-develop.md +0 -313
  64. package/docs/project-context/how-to-test.md +0 -457
  65. package/docs/project-context/tech-stack.md +0 -96
  66. package/docs/project-context.md +0 -53
  67. package/docs/specs/git-work-report/design.md +0 -568
  68. package/docs/specs/git-work-report/requirements.md +0 -131
  69. package/docs/specs/git-work-report/tasks.md +0 -197
@@ -1,299 +1,299 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>迁移指南 - 从 v2.x 升级到 v3.0 | MCP Probe Kit</title>
7
-
8
- <meta name="description" content="MCP Probe Kit 迁移指南:从 v2.x 升级到 v3.0 的完整步骤。了解重大变更、新增功能、配置调整和最佳实践,确保平滑升级。">
9
- <meta name="keywords" content="MCP Probe Kit 升级, 版本迁移, v3.0 新特性, 配置迁移, 工具升级指南, 破坏性变更">
10
- <meta name="author" content="小墨 (Kyle) - ByteZoneX">
11
- <meta name="robots" content="index, follow">
12
-
13
- <script src="../assets/js/tailwind.js" data-cfasync="false"></script>
14
- <script>
15
- tailwind.config = {
16
- theme: {
17
- extend: {
18
- colors: {
19
- primary: { DEFAULT: '#2563EB', hover: '#1D4ED8' },
20
- text: { primary: '#0F172A', secondary: '#475569', tertiary: '#64748B' },
21
- bg: { page: '#F8FAFC', card: '#FFFFFF', hover: '#F1F5F9' },
22
- border: '#E2E8F0',
23
- },
24
- fontFamily: {
25
- sans: ['-apple-system', 'BlinkMacSystemFont', '"PingFang SC"', '"Microsoft YaHei"', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', '"Noto Sans CJK SC"', 'sans-serif'],
26
- mono: ['ui-monospace', '"SF Mono"', '"Cascadia Code"', '"Consolas"', 'Menlo', 'Monaco', '"PingFang SC"', '"Microsoft YaHei"', '"Courier New"', 'monospace']
27
- },
28
- }
29
- }
30
- }
31
- </script>
32
- <style>
33
- html { scroll-behavior: smooth; }
34
- .code-block { overflow-x: auto; -webkit-overflow-scrolling: touch; }
35
- .sidebar-drawer { transition: transform 0.3s ease; }
36
- @media (max-width: 767px) {
37
- .sidebar-drawer { transform: translateX(-100%); }
38
- .sidebar-drawer.open { transform: translateX(0); }
39
- }
40
- .backdrop { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
41
- .backdrop.active { opacity: 1; pointer-events: auto; }
42
-
43
- /* i18n 加载优化:防止内容闪烁 */
44
- body:not(.i18n-ready) [data-i18n] {
45
- visibility: hidden;
46
- }
47
- body.i18n-ready [data-i18n] {
48
- visibility: visible;
49
- }
50
- </style>
51
- </head>
52
- <body class="font-sans bg-bg-page text-text-primary leading-relaxed min-h-screen flex flex-col">
53
- <!-- A. 顶部导航栏 -->
54
- <nav class="fixed top-0 left-0 right-0 h-14 bg-white/95 backdrop-blur-md border-b border-border z-50">
55
- <div class="h-full px-4 flex items-center justify-between">
56
- <a href="../index.html" class="flex items-center gap-2 text-base font-semibold text-text-primary no-underline">
57
- <span>🚀</span>
58
- <span class="sm:inline hidden">MCP Probe Kit</span>
59
- </a>
60
- <div class="flex items-center gap-3">
61
- <div id="lang-switcher-container"></div>
62
- <button onclick="toggleSidebar()" class="md:hidden p-2 text-text-secondary hover:text-primary transition-colors">
63
- <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
64
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
65
- </svg>
66
- </button>
67
- </div>
68
- </div>
69
- </nav>
70
-
71
- <!-- 侧边栏遮罩 -->
72
- <div class="fixed inset-0 bg-black/50 z-40 backdrop opacity-0 pointer-events-none transition-opacity duration-300 md:hidden" onclick="toggleSidebar()" id="backdrop"></div>
73
-
74
- <!-- B. 侧边栏 -->
75
- <aside class="fixed left-0 top-14 bottom-0 w-64 bg-white border-r border-border z-50 sidebar-drawer overflow-y-auto md:translate-x-0 md:block" id="sidebar">
76
- <div class="p-4">
77
- <div class="mb-4">
78
- <div class="text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-2 px-2" data-i18n="sidebar.quickStart">快速开始</div>
79
- <a href="../index.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
80
- <span>🏠</span>
81
- <span data-i18n="sidebar.home">文档首页</span>
82
- </a>
83
- <a href="./getting-started.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
84
- <span>📖</span>
85
- <span data-i18n="sidebar.installation">安装配置</span>
86
- </a>
87
- </div>
88
-
89
- <div class="mb-4">
90
- <div class="text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-2 px-2" data-i18n="sidebar.toolsDocs">工具文档</div>
91
- <a href="./all-tools.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
92
- <span>🛠️</span>
93
- <span data-i18n="sidebar.allTools">所有工具</span>
94
- <span class="ml-auto bg-bg-page text-xs px-2 py-0.5 rounded-full">21</span>
95
- </a>
96
- </div>
97
-
98
- <div class="mb-4">
99
- <div class="text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-2 px-2" data-i18n="sidebar.guides">指南</div>
100
- <a href="./migration.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium bg-blue-50 text-primary no-underline border-l-3 border-primary">
101
- <span>🚀</span>
102
- <span data-i18n="sidebar.migration">迁移指南</span>
103
- </a>
104
- <a href="./examples.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
105
- <span>💡</span>
106
- <span data-i18n="sidebar.examples">最佳实践</span>
107
- </a>
108
- </div>
109
-
110
- <div class="pt-4 border-t border-border">
111
- <a href="https://github.com/mybolide/mcp-probe-kit" target="_blank" rel="noopener" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
112
- <span>💻</span>
113
- <span>GitHub</span>
114
- <span class="ml-auto text-xs">↗</span>
115
- </a>
116
- <a href="https://npmjs.com/package/mcp-probe-kit" target="_blank" rel="noopener" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
117
- <span>📦</span>
118
- <span>npm</span>
119
- <span class="ml-auto text-xs">↗</span>
120
- </a>
121
- </div>
122
-
123
- <!-- QR Code -->
124
- <div class="mt-4 pt-4 border-t border-border">
125
- <div class="text-center">
126
- <div class="text-xs font-semibold text-text-tertiary mb-2" data-i18n="sidebar.followUs">关注公众号</div>
127
- <img src="https://oss.bolzjb.com/wx_qrcode.jpg" alt="微信公众号" class="w-[100px] h-[100px] mx-auto rounded-lg border border-border" />
128
- <div class="text-xs text-text-tertiary mt-2" data-i18n="sidebar.getTechSharing">获取更多技术分享</div>
129
- </div>
130
- </div>
131
- </div>
132
- </aside>
133
-
134
- <!-- C. 主内容区 -->
135
- <main class="flex-1 mt-14 min-h-screen md:ml-64">
136
- <div class="max-w-4xl mx-auto p-4 sm:p-6 lg:p-8">
137
- <!-- 面包屑 -->
138
- <nav class="flex items-center gap-1 text-sm text-text-secondary mb-4 overflow-x-auto whitespace-nowrap">
139
- <a href="../index.html" class="hover:text-primary transition-colors no-underline flex-shrink-0" data-i18n="migration.breadcrumb.home">文档首页</a>
140
- <span class="text-text-tertiary">/</span>
141
- <span class="text-text-primary flex-shrink-0" data-i18n="migration.breadcrumb.guides">指南</span>
142
- <span class="text-text-tertiary">/</span>
143
- <span class="text-text-primary flex-shrink-0" data-i18n="migration.breadcrumb.migration">迁移指南</span>
144
- </nav>
145
-
146
- <!-- 页面标题 -->
147
- <div class="mb-6">
148
- <h1 class="text-2xl sm:text-3xl font-bold text-text-primary mb-2" data-i18n="migration.title">v3.0 迁移指南</h1>
149
- <p class="text-sm sm:text-base text-text-secondary" data-i18n="migration.subtitle">从 v2.x 平滑迁移到 v3.0,了解重大变更和新特性</p>
150
- <div class="flex flex-wrap items-center gap-2 mt-3 text-xs text-text-tertiary">
151
- <span class="bg-blue-100 text-blue-700 px-2 py-0.5 rounded">v3.0.5</span>
152
- <span>MCP 2025-11-25</span>
153
- <span>SDK 1.25.3</span>
154
- </div>
155
- </div>
156
-
157
- <!-- 概述 -->
158
- <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
159
- <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.overview.title">概述</h2>
160
- <p class="text-text-secondary mb-4 text-sm" data-i18n="migration.overview.description">MCP Probe Kit v3.0 是一个重大版本更新,精简优化到 20 个核心工具,带来了更强大的功能和更好的开发体验。</p>
161
- <div class="p-3 bg-blue-50 border-l-3 border-blue-500 rounded-r text-sm">
162
- <strong>💡 <span data-i18n="migration.overview.migrationTime">迁移时间:</span></strong><span data-i18n="migration.overview.migrationTimeText">大多数项目可以在 10-15 分钟内完成迁移,v2.x 的核心工具在 v3.0 中都保持兼容。</span>
163
- </div>
164
- </section>
165
-
166
- <!-- 主要变更 -->
167
- <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
168
- <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.changes.title">主要变更</h2>
169
-
170
- <div class="mb-4">
171
- <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
172
- <span>🛠️</span>
173
- <span data-i18n="migration.changes.toolsOptimization.title">1. 工具精简优化</span>
174
- </h3>
175
- <p class="text-text-secondary text-sm pl-7" data-i18n="migration.changes.toolsOptimization.description">v2.x: 39 个工具 → v3.0: 20 个核心工具(移除低频工具,保留高价值工具)</p>
176
- </div>
177
-
178
- <div class="mb-4">
179
- <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
180
- <span>🔄</span>
181
- <span data-i18n="migration.changes.workflows.title">2. 新增工作流编排</span>
182
- </h3>
183
- <p class="text-text-secondary text-sm pl-7 mb-2"><span data-i18n="migration.changes.workflows.description">11 个</span> <code class="bg-gray-200 px-1 rounded text-xs">start_*</code> <span data-i18n="migration.changes.workflows.description2">工作流编排工具,提供端到端的自动化开发流程:</span></p>
184
- <ul class="list-disc list-inside space-y-1 text-sm text-text-primary pl-7">
185
- <li><code class="bg-gray-200 px-1 rounded text-xs">start_feature</code> - <span data-i18n="migration.changes.workflows.startFeature">功能开发工作流</span></li>
186
- <li><code class="bg-gray-200 px-1 rounded text-xs">start_bugfix</code> - <span data-i18n="migration.changes.workflows.startBugfix">Bug 修复工作流</span></li>
187
- <li><code class="bg-gray-200 px-1 rounded text-xs">start_ui</code> - <span data-i18n="migration.changes.workflows.startUi">UI 开发工作流</span></li>
188
- <li><code class="bg-gray-200 px-1 rounded text-xs">start_product</code> - <span data-i18n="migration.changes.workflows.startProduct">产品设计工作流</span></li>
189
- <li><code class="bg-gray-200 px-1 rounded text-xs">start_ralph</code> - <span data-i18n="migration.changes.workflows.startRalph">Ralph Loop 自动化开发</span></li>
190
- </ul>
191
- </div>
192
-
193
- <div class="mb-4">
194
- <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
195
- <span>🎨</span>
196
- <span data-i18n="migration.changes.uiTools.title">3. 新增 UI/UX 工具集</span>
197
- </h3>
198
- <p class="text-text-secondary text-sm pl-7 mb-2" data-i18n="migration.changes.uiTools.description">完整的 UI/UX 工具链:</p>
199
- <ul class="list-disc list-inside space-y-1 text-sm text-text-primary pl-7">
200
- <li><code class="bg-gray-200 px-1 rounded text-xs">ui_design_system</code> - <span data-i18n="migration.changes.uiTools.designSystem">智能设计系统生成器</span></li>
201
- <li><code class="bg-gray-200 px-1 rounded text-xs">ui_search</code> - <span data-i18n="migration.changes.uiTools.uiSearch">UI/UX 数据库搜索</span></li>
202
- <li><code class="bg-gray-200 px-1 rounded text-xs">sync_ui_data</code> - <span data-i18n="migration.changes.uiTools.syncUiData">UI/UX 数据同步</span></li>
203
- <li><code class="bg-gray-200 px-1 rounded text-xs">init_component_catalog</code> - <span data-i18n="migration.changes.uiTools.componentCatalog">组件目录初始化</span></li>
204
- <li><code class="bg-gray-200 px-1 rounded text-xs">render_ui</code> - <span data-i18n="migration.changes.uiTools.renderUi">UI 渲染引擎</span></li>
205
- </ul>
206
- </div>
207
-
208
- <div>
209
- <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
210
- <span>📊</span>
211
- <span data-i18n="migration.changes.structuredOutput.title">4. 结构化输出升级</span>
212
- </h3>
213
- <p class="text-text-secondary text-sm pl-7" data-i18n="migration.changes.structuredOutput.description">核心与编排工具优先支持结构化输出,输出格式一致、可预测,便于工具串联与状态追踪。</p>
214
- </div>
215
- </section>
216
-
217
- <!-- 迁移步骤 -->
218
- <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
219
- <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.steps.title">迁移步骤</h2>
220
-
221
- <div class="mb-4">
222
- <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
223
- <span>📦</span>
224
- <span data-i18n="migration.steps.step1.title">步骤 1:更新版本</span>
225
- </h3>
226
- <div class="bg-slate-900 rounded-lg overflow-hidden ml-7">
227
- <div class="flex items-center justify-between px-3 py-2 bg-slate-800">
228
- <span class="text-xs text-slate-300 font-medium">Bash</span>
229
- </div>
230
- <pre class="code-block p-4 text-sm text-slate-200 overflow-x-auto"><code><span data-i18n="migration.steps.step1.npxNote"># 如果使用 npx(推荐)</span>
231
- <span data-i18n="migration.steps.step1.npxDesc"># 无需操作,自动使用最新版本</span>
232
-
233
- <span data-i18n="migration.steps.step1.globalNote"># 如果全局安装</span>
234
- npm update -g mcp-probe-kit</code></pre>
235
- </div>
236
- </div>
237
-
238
- <div>
239
- <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
240
- <span>📝</span>
241
- <span data-i18n="migration.steps.step2.title">步骤 2:检查配置文件</span>
242
- </h3>
243
- <p class="text-text-secondary text-sm ml-7 mb-3" data-i18n="migration.steps.step2.description">v3.0 的配置文件格式与 v2.x 完全兼容,无需修改。</p>
244
- <div class="ml-7 p-3 bg-green-50 border-l-3 border-green-500 rounded-r text-sm">
245
- <strong>✅ <span data-i18n="migration.steps.step2.compatible">向后兼容:</span></strong><span data-i18n="migration.steps.step2.compatibleText">v2.x 的核心工具在 v3.0 中都保持兼容,可以无缝升级。</span>
246
- </div>
247
- </div>
248
- </section>
249
-
250
- <!-- 获取帮助 -->
251
- <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
252
- <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.help.title">获取帮助</h2>
253
- <p class="text-text-secondary text-sm mb-4" data-i18n="migration.help.description">如果在迁移过程中遇到问题:</p>
254
- <ul class="list-disc list-inside space-y-2 text-sm text-text-primary">
255
- <li>📖 <span data-i18n="migration.help.viewDocs">查看</span> <a href="./all-tools.html" class="text-primary hover:underline" data-i18n="migration.help.toolsReference">完整工具参考</a></li>
256
- <li>💬 <span data-i18n="migration.help.askIn">在</span> <a href="https://github.com/mybolide/mcp-probe-kit/discussions" target="_blank" rel="noopener" class="text-primary hover:underline">GitHub Discussions</a> <span data-i18n="migration.help.askQuestion">提问</span></li>
257
- <li>🐛 <span data-i18n="migration.help.reportIn">在</span> <a href="https://github.com/mybolide/mcp-probe-kit/issues" target="_blank" rel="noopener" class="text-primary hover:underline">GitHub Issues</a> <span data-i18n="migration.help.reportBug">报告 Bug</span></li>
258
- </ul>
259
- </section>
260
-
261
- <!-- 迁移完成 -->
262
- <section class="bg-gradient-to-br from-primary to-primary-hover text-white rounded-xl p-4 sm:p-6 mb-6 shadow-sm">
263
- <h2 class="text-lg sm:text-xl font-semibold mb-3" data-i18n="migration.complete.title">🎉 迁移完成!</h2>
264
- <p class="text-sm opacity-95 mb-4" data-i18n="migration.complete.description">开始探索 v3.0 的强大功能</p>
265
- <div class="flex flex-col sm:flex-row gap-3">
266
- <a href="./all-tools.html" class="bg-white/20 text-white px-4 py-2.5 rounded-md text-sm font-medium text-center hover:bg-white/30 transition-colors no-underline">
267
- 🛠️ <span data-i18n="migration.complete.viewTools">查看所有工具</span>
268
- </a>
269
- <a href="./examples.html" class="bg-white/20 text-white px-4 py-2.5 rounded-md text-sm font-medium text-center hover:bg-white/30 transition-colors no-underline">
270
- 💡 <span data-i18n="migration.complete.learnBestPractices">学习最佳实践</span>
271
- </a>
272
- </div>
273
- </section>
274
-
275
- <!-- Footer -->
276
- <footer class="text-center text-sm text-text-tertiary py-4 border-t border-border">
277
- <p><span data-i18n="footer.madeWith">Made with ❤️ by</span> <a href="https://www.bytezonex.com/" target="_blank" rel="noopener" class="text-primary hover:underline">小墨 (Kyle)</a></p>
278
- <p class="mt-1">© 2024-2026 MCP Probe Kit · <a href="https://github.com/mybolide/mcp-probe-kit" target="_blank" rel="noopener" class="text-primary hover:underline">GitHub ↗</a></p>
279
- </footer>
280
- </div>
281
- </main>
282
-
283
- <script>
284
- function toggleSidebar() {
285
- const sidebar = document.getElementById('sidebar');
286
- const backdrop = document.getElementById('backdrop');
287
- const isOpen = sidebar.classList.contains('open');
288
- if (isOpen) {
289
- sidebar.classList.remove('open');
290
- backdrop.classList.remove('active');
291
- } else {
292
- sidebar.classList.add('open');
293
- backdrop.classList.add('active');
294
- }
295
- }
296
- </script>
297
- <script src="../assets/js/i18n.js"></script>
298
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>迁移指南 - 从 v2.x 升级到 v3.0 | MCP Probe Kit</title>
7
+
8
+ <meta name="description" content="MCP Probe Kit 迁移指南:从 v2.x 升级到 v3.0 的完整步骤。了解重大变更、新增功能、配置调整和最佳实践,确保平滑升级。">
9
+ <meta name="keywords" content="MCP Probe Kit 升级, 版本迁移, v3.0 新特性, 配置迁移, 工具升级指南, 破坏性变更">
10
+ <meta name="author" content="小墨 (Kyle) - ByteZoneX">
11
+ <meta name="robots" content="index, follow">
12
+
13
+ <script src="../assets/js/tailwind.js" data-cfasync="false"></script>
14
+ <script>
15
+ tailwind.config = {
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ primary: { DEFAULT: '#2563EB', hover: '#1D4ED8' },
20
+ text: { primary: '#0F172A', secondary: '#475569', tertiary: '#64748B' },
21
+ bg: { page: '#F8FAFC', card: '#FFFFFF', hover: '#F1F5F9' },
22
+ border: '#E2E8F0',
23
+ },
24
+ fontFamily: {
25
+ sans: ['-apple-system', 'BlinkMacSystemFont', '"PingFang SC"', '"Microsoft YaHei"', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', '"Noto Sans CJK SC"', 'sans-serif'],
26
+ mono: ['ui-monospace', '"SF Mono"', '"Cascadia Code"', '"Consolas"', 'Menlo', 'Monaco', '"PingFang SC"', '"Microsoft YaHei"', '"Courier New"', 'monospace']
27
+ },
28
+ }
29
+ }
30
+ }
31
+ </script>
32
+ <style>
33
+ html { scroll-behavior: smooth; }
34
+ .code-block { overflow-x: auto; -webkit-overflow-scrolling: touch; }
35
+ .sidebar-drawer { transition: transform 0.3s ease; }
36
+ @media (max-width: 767px) {
37
+ .sidebar-drawer { transform: translateX(-100%); }
38
+ .sidebar-drawer.open { transform: translateX(0); }
39
+ }
40
+ .backdrop { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
41
+ .backdrop.active { opacity: 1; pointer-events: auto; }
42
+
43
+ /* i18n 加载优化:防止内容闪烁 */
44
+ body:not(.i18n-ready) [data-i18n] {
45
+ visibility: hidden;
46
+ }
47
+ body.i18n-ready [data-i18n] {
48
+ visibility: visible;
49
+ }
50
+ </style>
51
+ </head>
52
+ <body class="font-sans bg-bg-page text-text-primary leading-relaxed min-h-screen flex flex-col">
53
+ <!-- A. 顶部导航栏 -->
54
+ <nav class="fixed top-0 left-0 right-0 h-14 bg-white/95 backdrop-blur-md border-b border-border z-50">
55
+ <div class="h-full px-4 flex items-center justify-between">
56
+ <a href="../index.html" class="flex items-center gap-2 text-base font-semibold text-text-primary no-underline">
57
+ <span>🚀</span>
58
+ <span class="sm:inline hidden">MCP Probe Kit</span>
59
+ </a>
60
+ <div class="flex items-center gap-3">
61
+ <div id="lang-switcher-container"></div>
62
+ <button onclick="toggleSidebar()" class="md:hidden p-2 text-text-secondary hover:text-primary transition-colors">
63
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
64
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
65
+ </svg>
66
+ </button>
67
+ </div>
68
+ </div>
69
+ </nav>
70
+
71
+ <!-- 侧边栏遮罩 -->
72
+ <div class="fixed inset-0 bg-black/50 z-40 backdrop opacity-0 pointer-events-none transition-opacity duration-300 md:hidden" onclick="toggleSidebar()" id="backdrop"></div>
73
+
74
+ <!-- B. 侧边栏 -->
75
+ <aside class="fixed left-0 top-14 bottom-0 w-64 bg-white border-r border-border z-50 sidebar-drawer overflow-y-auto md:translate-x-0 md:block" id="sidebar">
76
+ <div class="p-4">
77
+ <div class="mb-4">
78
+ <div class="text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-2 px-2" data-i18n="sidebar.quickStart">快速开始</div>
79
+ <a href="../index.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
80
+ <span>🏠</span>
81
+ <span data-i18n="sidebar.home">文档首页</span>
82
+ </a>
83
+ <a href="./getting-started.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
84
+ <span>📖</span>
85
+ <span data-i18n="sidebar.installation">安装配置</span>
86
+ </a>
87
+ </div>
88
+
89
+ <div class="mb-4">
90
+ <div class="text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-2 px-2" data-i18n="sidebar.toolsDocs">工具文档</div>
91
+ <a href="./all-tools.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
92
+ <span>🛠️</span>
93
+ <span data-i18n="sidebar.allTools">所有工具</span>
94
+ <span class="ml-auto bg-bg-page text-xs px-2 py-0.5 rounded-full">21</span>
95
+ </a>
96
+ </div>
97
+
98
+ <div class="mb-4">
99
+ <div class="text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-2 px-2" data-i18n="sidebar.guides">指南</div>
100
+ <a href="./migration.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium bg-blue-50 text-primary no-underline border-l-3 border-primary">
101
+ <span>🚀</span>
102
+ <span data-i18n="sidebar.migration">迁移指南</span>
103
+ </a>
104
+ <a href="./examples.html" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
105
+ <span>💡</span>
106
+ <span data-i18n="sidebar.examples">最佳实践</span>
107
+ </a>
108
+ </div>
109
+
110
+ <div class="pt-4 border-t border-border">
111
+ <a href="https://github.com/mybolide/mcp-probe-kit" target="_blank" rel="noopener" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
112
+ <span>💻</span>
113
+ <span>GitHub</span>
114
+ <span class="ml-auto text-xs">↗</span>
115
+ </a>
116
+ <a href="https://npmjs.com/package/mcp-probe-kit" target="_blank" rel="noopener" class="flex items-center gap-2 px-3 py-2 rounded-md text-sm text-text-secondary hover:bg-bg-page hover:text-primary transition-colors no-underline">
117
+ <span>📦</span>
118
+ <span>npm</span>
119
+ <span class="ml-auto text-xs">↗</span>
120
+ </a>
121
+ </div>
122
+
123
+ <!-- QR Code -->
124
+ <div class="mt-4 pt-4 border-t border-border">
125
+ <div class="text-center">
126
+ <div class="text-xs font-semibold text-text-tertiary mb-2" data-i18n="sidebar.followUs">关注公众号</div>
127
+ <img src="https://oss.bolzjb.com/wx_qrcode.jpg" alt="微信公众号" class="w-[100px] h-[100px] mx-auto rounded-lg border border-border" />
128
+ <div class="text-xs text-text-tertiary mt-2" data-i18n="sidebar.getTechSharing">获取更多技术分享</div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </aside>
133
+
134
+ <!-- C. 主内容区 -->
135
+ <main class="flex-1 mt-14 min-h-screen md:ml-64">
136
+ <div class="max-w-4xl mx-auto p-4 sm:p-6 lg:p-8">
137
+ <!-- 面包屑 -->
138
+ <nav class="flex items-center gap-1 text-sm text-text-secondary mb-4 overflow-x-auto whitespace-nowrap">
139
+ <a href="../index.html" class="hover:text-primary transition-colors no-underline flex-shrink-0" data-i18n="migration.breadcrumb.home">文档首页</a>
140
+ <span class="text-text-tertiary">/</span>
141
+ <span class="text-text-primary flex-shrink-0" data-i18n="migration.breadcrumb.guides">指南</span>
142
+ <span class="text-text-tertiary">/</span>
143
+ <span class="text-text-primary flex-shrink-0" data-i18n="migration.breadcrumb.migration">迁移指南</span>
144
+ </nav>
145
+
146
+ <!-- 页面标题 -->
147
+ <div class="mb-6">
148
+ <h1 class="text-2xl sm:text-3xl font-bold text-text-primary mb-2" data-i18n="migration.title">v3.0 迁移指南</h1>
149
+ <p class="text-sm sm:text-base text-text-secondary" data-i18n="migration.subtitle">从 v2.x 平滑迁移到 v3.0,了解重大变更和新特性</p>
150
+ <div class="flex flex-wrap items-center gap-2 mt-3 text-xs text-text-tertiary">
151
+ <span class="bg-blue-100 text-blue-700 px-2 py-0.5 rounded">v3.0.5</span>
152
+ <span>MCP 2025-11-25</span>
153
+ <span>SDK 1.27.1</span>
154
+ </div>
155
+ </div>
156
+
157
+ <!-- 概述 -->
158
+ <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
159
+ <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.overview.title">概述</h2>
160
+ <p class="text-text-secondary mb-4 text-sm" data-i18n="migration.overview.description">MCP Probe Kit v3.0 是一个重大版本更新,精简优化到 20 个核心工具,带来了更强大的功能和更好的开发体验。</p>
161
+ <div class="p-3 bg-blue-50 border-l-3 border-blue-500 rounded-r text-sm">
162
+ <strong>💡 <span data-i18n="migration.overview.migrationTime">迁移时间:</span></strong><span data-i18n="migration.overview.migrationTimeText">大多数项目可以在 10-15 分钟内完成迁移,v2.x 的核心工具在 v3.0 中都保持兼容。</span>
163
+ </div>
164
+ </section>
165
+
166
+ <!-- 主要变更 -->
167
+ <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
168
+ <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.changes.title">主要变更</h2>
169
+
170
+ <div class="mb-4">
171
+ <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
172
+ <span>🛠️</span>
173
+ <span data-i18n="migration.changes.toolsOptimization.title">1. 工具精简优化</span>
174
+ </h3>
175
+ <p class="text-text-secondary text-sm pl-7" data-i18n="migration.changes.toolsOptimization.description">v2.x: 39 个工具 → v3.0: 20 个核心工具(移除低频工具,保留高价值工具)</p>
176
+ </div>
177
+
178
+ <div class="mb-4">
179
+ <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
180
+ <span>🔄</span>
181
+ <span data-i18n="migration.changes.workflows.title">2. 新增工作流编排</span>
182
+ </h3>
183
+ <p class="text-text-secondary text-sm pl-7 mb-2"><span data-i18n="migration.changes.workflows.description">11 个</span> <code class="bg-gray-200 px-1 rounded text-xs">start_*</code> <span data-i18n="migration.changes.workflows.description2">工作流编排工具,提供端到端的自动化开发流程:</span></p>
184
+ <ul class="list-disc list-inside space-y-1 text-sm text-text-primary pl-7">
185
+ <li><code class="bg-gray-200 px-1 rounded text-xs">start_feature</code> - <span data-i18n="migration.changes.workflows.startFeature">功能开发工作流</span></li>
186
+ <li><code class="bg-gray-200 px-1 rounded text-xs">start_bugfix</code> - <span data-i18n="migration.changes.workflows.startBugfix">Bug 修复工作流</span></li>
187
+ <li><code class="bg-gray-200 px-1 rounded text-xs">start_ui</code> - <span data-i18n="migration.changes.workflows.startUi">UI 开发工作流</span></li>
188
+ <li><code class="bg-gray-200 px-1 rounded text-xs">start_product</code> - <span data-i18n="migration.changes.workflows.startProduct">产品设计工作流</span></li>
189
+ <li><code class="bg-gray-200 px-1 rounded text-xs">start_ralph</code> - <span data-i18n="migration.changes.workflows.startRalph">Ralph Loop 自动化开发</span></li>
190
+ </ul>
191
+ </div>
192
+
193
+ <div class="mb-4">
194
+ <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
195
+ <span>🎨</span>
196
+ <span data-i18n="migration.changes.uiTools.title">3. 新增 UI/UX 工具集</span>
197
+ </h3>
198
+ <p class="text-text-secondary text-sm pl-7 mb-2" data-i18n="migration.changes.uiTools.description">完整的 UI/UX 工具链:</p>
199
+ <ul class="list-disc list-inside space-y-1 text-sm text-text-primary pl-7">
200
+ <li><code class="bg-gray-200 px-1 rounded text-xs">ui_design_system</code> - <span data-i18n="migration.changes.uiTools.designSystem">智能设计系统生成器</span></li>
201
+ <li><code class="bg-gray-200 px-1 rounded text-xs">ui_search</code> - <span data-i18n="migration.changes.uiTools.uiSearch">UI/UX 数据库搜索</span></li>
202
+ <li><code class="bg-gray-200 px-1 rounded text-xs">sync_ui_data</code> - <span data-i18n="migration.changes.uiTools.syncUiData">UI/UX 数据同步</span></li>
203
+ <li><code class="bg-gray-200 px-1 rounded text-xs">init_component_catalog</code> - <span data-i18n="migration.changes.uiTools.componentCatalog">组件目录初始化</span></li>
204
+ <li><code class="bg-gray-200 px-1 rounded text-xs">render_ui</code> - <span data-i18n="migration.changes.uiTools.renderUi">UI 渲染引擎</span></li>
205
+ </ul>
206
+ </div>
207
+
208
+ <div>
209
+ <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
210
+ <span>📊</span>
211
+ <span data-i18n="migration.changes.structuredOutput.title">4. 结构化输出升级</span>
212
+ </h3>
213
+ <p class="text-text-secondary text-sm pl-7" data-i18n="migration.changes.structuredOutput.description">核心与编排工具优先支持结构化输出,输出格式一致、可预测,便于工具串联与状态追踪。</p>
214
+ </div>
215
+ </section>
216
+
217
+ <!-- 迁移步骤 -->
218
+ <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
219
+ <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.steps.title">迁移步骤</h2>
220
+
221
+ <div class="mb-4">
222
+ <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
223
+ <span>📦</span>
224
+ <span data-i18n="migration.steps.step1.title">步骤 1:更新版本</span>
225
+ </h3>
226
+ <div class="bg-slate-900 rounded-lg overflow-hidden ml-7">
227
+ <div class="flex items-center justify-between px-3 py-2 bg-slate-800">
228
+ <span class="text-xs text-slate-300 font-medium">Bash</span>
229
+ </div>
230
+ <pre class="code-block p-4 text-sm text-slate-200 overflow-x-auto"><code><span data-i18n="migration.steps.step1.npxNote"># 如果使用 npx(推荐)</span>
231
+ <span data-i18n="migration.steps.step1.npxDesc"># 无需操作,自动使用最新版本</span>
232
+
233
+ <span data-i18n="migration.steps.step1.globalNote"># 如果全局安装</span>
234
+ npm update -g mcp-probe-kit</code></pre>
235
+ </div>
236
+ </div>
237
+
238
+ <div>
239
+ <h3 class="font-medium text-text-primary mb-2 flex items-center gap-2">
240
+ <span>📝</span>
241
+ <span data-i18n="migration.steps.step2.title">步骤 2:检查配置文件</span>
242
+ </h3>
243
+ <p class="text-text-secondary text-sm ml-7 mb-3" data-i18n="migration.steps.step2.description">v3.0 的配置文件格式与 v2.x 完全兼容,无需修改。</p>
244
+ <div class="ml-7 p-3 bg-green-50 border-l-3 border-green-500 rounded-r text-sm">
245
+ <strong>✅ <span data-i18n="migration.steps.step2.compatible">向后兼容:</span></strong><span data-i18n="migration.steps.step2.compatibleText">v2.x 的核心工具在 v3.0 中都保持兼容,可以无缝升级。</span>
246
+ </div>
247
+ </div>
248
+ </section>
249
+
250
+ <!-- 获取帮助 -->
251
+ <section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
252
+ <h2 class="text-lg sm:text-xl font-semibold text-text-primary mb-4" data-i18n="migration.help.title">获取帮助</h2>
253
+ <p class="text-text-secondary text-sm mb-4" data-i18n="migration.help.description">如果在迁移过程中遇到问题:</p>
254
+ <ul class="list-disc list-inside space-y-2 text-sm text-text-primary">
255
+ <li>📖 <span data-i18n="migration.help.viewDocs">查看</span> <a href="./all-tools.html" class="text-primary hover:underline" data-i18n="migration.help.toolsReference">完整工具参考</a></li>
256
+ <li>💬 <span data-i18n="migration.help.askIn">在</span> <a href="https://github.com/mybolide/mcp-probe-kit/discussions" target="_blank" rel="noopener" class="text-primary hover:underline">GitHub Discussions</a> <span data-i18n="migration.help.askQuestion">提问</span></li>
257
+ <li>🐛 <span data-i18n="migration.help.reportIn">在</span> <a href="https://github.com/mybolide/mcp-probe-kit/issues" target="_blank" rel="noopener" class="text-primary hover:underline">GitHub Issues</a> <span data-i18n="migration.help.reportBug">报告 Bug</span></li>
258
+ </ul>
259
+ </section>
260
+
261
+ <!-- 迁移完成 -->
262
+ <section class="bg-gradient-to-br from-primary to-primary-hover text-white rounded-xl p-4 sm:p-6 mb-6 shadow-sm">
263
+ <h2 class="text-lg sm:text-xl font-semibold mb-3" data-i18n="migration.complete.title">🎉 迁移完成!</h2>
264
+ <p class="text-sm opacity-95 mb-4" data-i18n="migration.complete.description">开始探索 v3.0 的强大功能</p>
265
+ <div class="flex flex-col sm:flex-row gap-3">
266
+ <a href="./all-tools.html" class="bg-white/20 text-white px-4 py-2.5 rounded-md text-sm font-medium text-center hover:bg-white/30 transition-colors no-underline">
267
+ 🛠️ <span data-i18n="migration.complete.viewTools">查看所有工具</span>
268
+ </a>
269
+ <a href="./examples.html" class="bg-white/20 text-white px-4 py-2.5 rounded-md text-sm font-medium text-center hover:bg-white/30 transition-colors no-underline">
270
+ 💡 <span data-i18n="migration.complete.learnBestPractices">学习最佳实践</span>
271
+ </a>
272
+ </div>
273
+ </section>
274
+
275
+ <!-- Footer -->
276
+ <footer class="text-center text-sm text-text-tertiary py-4 border-t border-border">
277
+ <p><span data-i18n="footer.madeWith">Made with ❤️ by</span> <a href="https://www.bytezonex.com/" target="_blank" rel="noopener" class="text-primary hover:underline">小墨 (Kyle)</a></p>
278
+ <p class="mt-1">© 2024-2026 MCP Probe Kit · <a href="https://github.com/mybolide/mcp-probe-kit" target="_blank" rel="noopener" class="text-primary hover:underline">GitHub ↗</a></p>
279
+ </footer>
280
+ </div>
281
+ </main>
282
+
283
+ <script>
284
+ function toggleSidebar() {
285
+ const sidebar = document.getElementById('sidebar');
286
+ const backdrop = document.getElementById('backdrop');
287
+ const isOpen = sidebar.classList.contains('open');
288
+ if (isOpen) {
289
+ sidebar.classList.remove('open');
290
+ backdrop.classList.remove('active');
291
+ } else {
292
+ sidebar.classList.add('open');
293
+ backdrop.classList.add('active');
294
+ }
295
+ }
296
+ </script>
297
+ <script src="../assets/js/i18n.js"></script>
298
+ </body>
299
299
  </html>