mcp-probe-kit 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -20
- package/build/lib/__tests__/gitnexus-bridge.unit.test.js +78 -19
- package/build/lib/gitnexus-bridge.d.ts +35 -2
- package/build/lib/gitnexus-bridge.js +311 -68
- package/build/tools/__tests__/code_insight.unit.test.js +51 -1
- package/build/tools/code_insight.d.ts +31 -1
- package/build/tools/code_insight.js +204 -71
- package/docs/i18n/en.json +20 -0
- package/docs/i18n/ja.json +20 -0
- package/docs/i18n/ko.json +20 -0
- package/docs/i18n/zh-CN.json +20 -0
- package/docs/pages/getting-started.html +71 -10
- package/package.json +3 -1
|
@@ -308,9 +308,39 @@ npm run build</code></pre>
|
|
|
308
308
|
<strong data-i18n="gettingStarted.step1.source.note">注意:</strong><span data-i18n="gettingStarted.step1.source.noteText">修改代码后需要重新运行</span> <code class="bg-gray-200 px-1 rounded text-xs">npm run build</code> <span data-i18n="gettingStarted.step1.source.compileText">编译</span>
|
|
309
309
|
</div>
|
|
310
310
|
</div>
|
|
311
|
-
</div>
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
<div class="mt-5 p-4 bg-blue-50 border-l-4 border-blue-500 rounded-r text-sm text-text-primary">
|
|
314
|
+
<h3 class="font-semibold mb-2" data-i18n="gettingStarted.step1.windowsGraph.title">Windows Notes for Graph Tools</h3>
|
|
315
|
+
<p class="mb-2 text-text-secondary" data-i18n="gettingStarted.step1.windowsGraph.description">Graph-aware tools may have a slower first run on Windows because GitNexus is started through npx by default.</p>
|
|
316
|
+
<ul class="list-disc list-inside space-y-1 mb-3">
|
|
317
|
+
<li data-i18n="gettingStarted.step1.windowsGraph.item1">The first cold start may take 20+ seconds while npx checks or downloads dependencies.</li>
|
|
318
|
+
<li data-i18n="gettingStarted.step1.windowsGraph.item2">Some GitNexus dependencies use tree-sitter native modules and may require Visual Studio Build Tools.</li>
|
|
319
|
+
<li data-i18n="gettingStarted.step1.windowsGraph.item3">If your MCP client supports env, prefer a preinstalled gitnexus CLI and raise GitNexus timeouts.</li>
|
|
320
|
+
</ul>
|
|
321
|
+
<p class="mb-2" data-i18n="gettingStarted.step1.windowsGraph.exampleTitle">Example using a preinstalled gitnexus CLI:</p>
|
|
322
|
+
<div class="bg-slate-900 rounded-lg overflow-hidden">
|
|
323
|
+
<div class="flex items-center justify-between px-3 py-2 bg-slate-800">
|
|
324
|
+
<span class="text-xs text-slate-300 font-medium">JSON</span>
|
|
325
|
+
<button onclick="copyCode(this)" class="text-xs text-slate-300 hover:text-white transition-colors">📋</button>
|
|
326
|
+
</div>
|
|
327
|
+
<pre class="code-block p-3 text-sm text-slate-200 overflow-x-auto"><code>{
|
|
328
|
+
"mcpServers": {
|
|
329
|
+
"mcp-probe-kit": {
|
|
330
|
+
"command": "mcp-probe-kit",
|
|
331
|
+
"env": {
|
|
332
|
+
"MCP_GITNEXUS_COMMAND": "gitnexus",
|
|
333
|
+
"MCP_GITNEXUS_ARGS": "mcp",
|
|
334
|
+
"MCP_GITNEXUS_CONNECT_TIMEOUT_MS": "30000",
|
|
335
|
+
"MCP_GITNEXUS_TIMEOUT_MS": "45000"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}</code></pre>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</section>
|
|
314
344
|
|
|
315
345
|
<!-- Step 2: 配置文件位置 -->
|
|
316
346
|
<section class="bg-white rounded-xl border border-border p-4 sm:p-6 mb-6 shadow-sm">
|
|
@@ -493,9 +523,9 @@ npm run build</code></pre>
|
|
|
493
523
|
</div>
|
|
494
524
|
|
|
495
525
|
<!-- 问题 2 -->
|
|
496
|
-
<div class="border border-border rounded-lg overflow-hidden">
|
|
497
|
-
<button onclick="toggleFaq('faq2')" class="w-full px-4 py-3 bg-bg-page flex items-center justify-between text-left hover:bg-gray-100 transition-colors">
|
|
498
|
-
<span class="font-medium text-text-primary" data-i18n="gettingStarted.faq.q2.title">问题 2:MCP 服务器连接失败</span>
|
|
526
|
+
<div class="border border-border rounded-lg overflow-hidden">
|
|
527
|
+
<button onclick="toggleFaq('faq2')" class="w-full px-4 py-3 bg-bg-page flex items-center justify-between text-left hover:bg-gray-100 transition-colors">
|
|
528
|
+
<span class="font-medium text-text-primary" data-i18n="gettingStarted.faq.q2.title">问题 2:MCP 服务器连接失败</span>
|
|
499
529
|
<svg class="w-5 h-5 text-text-tertiary transition-transform" id="faq2-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
500
530
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
|
|
501
531
|
</svg>
|
|
@@ -523,10 +553,41 @@ npm run build</code></pre>
|
|
|
523
553
|
</div>
|
|
524
554
|
</li>
|
|
525
555
|
<li data-i18n="gettingStarted.faq.q2.step4">检查配置文件 JSON 格式是否正确</li>
|
|
526
|
-
</ol>
|
|
527
|
-
</div>
|
|
528
|
-
</div>
|
|
529
|
-
|
|
556
|
+
</ol>
|
|
557
|
+
</div>
|
|
558
|
+
</div>
|
|
559
|
+
|
|
560
|
+
<div class="border border-border rounded-lg overflow-hidden mt-4">
|
|
561
|
+
<button onclick="toggleFaq('faq3')" class="w-full px-4 py-3 bg-bg-page flex items-center justify-between text-left hover:bg-gray-100 transition-colors">
|
|
562
|
+
<span class="font-medium text-text-primary" data-i18n="gettingStarted.faq.q3.title">问题 3:Windows 下图谱工具首次启动很慢或超时</span>
|
|
563
|
+
<svg class="w-5 h-5 text-text-tertiary transition-transform" id="faq3-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
564
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
|
|
565
|
+
</svg>
|
|
566
|
+
</button>
|
|
567
|
+
<div id="faq3-content" class="hidden p-4 border-t border-border">
|
|
568
|
+
<div class="p-3 bg-yellow-50 border-l-3 border-yellow-500 rounded-r text-sm text-text-primary mb-3">
|
|
569
|
+
<strong data-i18n="gettingStarted.faq.q3.affected">Affected tools:</strong>
|
|
570
|
+
<div class="mt-1"><code class="bg-gray-200 px-1 rounded text-xs">code_insight</code>, <code class="bg-gray-200 px-1 rounded text-xs">start_feature</code>, <code class="bg-gray-200 px-1 rounded text-xs">start_bugfix</code>, <code class="bg-gray-200 px-1 rounded text-xs">init_project_context</code></div>
|
|
571
|
+
</div>
|
|
572
|
+
<div class="p-3 bg-red-50 border-l-3 border-red-500 rounded-r text-sm text-text-primary mb-3">
|
|
573
|
+
<strong data-i18n="gettingStarted.faq.q3.error">Typical error:</strong>
|
|
574
|
+
<pre class="code-block mt-2 text-xs text-slate-200 bg-slate-900 p-2 rounded overflow-x-auto"><code>gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
|
|
575
|
+
gyp ERR! find VS - missing any VC++ toolset</code></pre>
|
|
576
|
+
</div>
|
|
577
|
+
<p class="text-sm text-text-primary mb-2"><strong data-i18n="gettingStarted.faq.q3.reasons">Common causes:</strong></p>
|
|
578
|
+
<ul class="list-disc list-inside space-y-1 text-sm text-text-primary mb-3">
|
|
579
|
+
<li data-i18n="gettingStarted.faq.q3.reason1">npx -y gitnexus@latest mcp may spend 20+ seconds checking or downloading dependencies on cold start.</li>
|
|
580
|
+
<li data-i18n="gettingStarted.faq.q3.reason2">GitNexus depends on tree-sitter native modules, which may require Visual Studio Build Tools on Windows.</li>
|
|
581
|
+
</ul>
|
|
582
|
+
<p class="text-sm text-text-primary mb-2"><strong data-i18n="gettingStarted.faq.q3.solution">Recommended actions:</strong></p>
|
|
583
|
+
<ol class="list-decimal list-inside space-y-2 text-sm text-text-primary">
|
|
584
|
+
<li data-i18n="gettingStarted.faq.q3.step1">Install Visual Studio Build Tools with the C++ workload.</li>
|
|
585
|
+
<li data-i18n="gettingStarted.faq.q3.step2">Retry once after dependencies finish installing so the first cold start is not mistaken for steady-state latency.</li>
|
|
586
|
+
<li data-i18n="gettingStarted.faq.q3.step3">If your client supports env, prefer a preinstalled gitnexus CLI and raise MCP_GITNEXUS_CONNECT_TIMEOUT_MS plus MCP_GITNEXUS_TIMEOUT_MS.</li>
|
|
587
|
+
</ol>
|
|
588
|
+
</div>
|
|
589
|
+
</div>
|
|
590
|
+
</section>
|
|
530
591
|
|
|
531
592
|
<!-- Footer -->
|
|
532
593
|
<footer class="text-center text-sm text-text-tertiary py-4 border-t border-border">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-probe-kit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "AI-Powered Development Toolkit - MCP Server with 22 tools covering code quality, development efficiency, project management, and UI/UX design. Features: Structured Output, Workflow Orchestration, UI/UX Pro Max, and Requirements Interview.",
|
|
5
5
|
"mcpName": "io.github.mybolide/mcp-probe-kit",
|
|
6
6
|
"type": "module",
|
|
@@ -64,10 +64,12 @@
|
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
67
|
+
"cross-spawn": "^7.0.6",
|
|
67
68
|
"csv-parse": "^6.1.0",
|
|
68
69
|
"tar": "^7.5.6"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
72
|
+
"@types/cross-spawn": "^6.0.6",
|
|
71
73
|
"@types/node": "^20.0.0",
|
|
72
74
|
"@types/tar": "^6.1.13",
|
|
73
75
|
"@vitest/ui": "^4.0.18",
|