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
package/README.md CHANGED
@@ -1,439 +1,466 @@
1
- <div align="center">
2
- <img src="docs/assets/logo.png" alt="知时MCP Logo" width="160"/>
3
- <h1>知时MCP | mcp-probe-kit</h1>
4
- <p><strong>Know the Context, Feed the Moment.</strong></p>
5
- <p>
6
- <code>Introspection</code> · <code>Context Hydration</code> · <code>Delegated Orchestration</code>
7
- </p>
8
- </div>
9
-
10
- ---
11
-
12
- > **Talk is cheap, show me the Context.**
13
- >
14
- > mcp-probe-kit is a protocol-level toolkit designed for developers who want AI to truly understand their project's intent. It's not just a collection of 21 tools—it's a context-aware system that helps AI agents grasp what you're building.
15
-
16
- **Languages**: [English](README.md) | [简体中文](i18n/README.zh-CN.md) | [日本語](i18n/README.ja-JP.md) | [한국어](i18n/README.ko-KR.md) | [Español](i18n/README.es-ES.md) | [Français](i18n/README.fr-FR.md) | [Deutsch](i18n/README.de-DE.md) | [Português (BR)](i18n/README.pt-BR.md)
17
-
18
- [![npm version](https://img.shields.io/npm/v/mcp-probe-kit.svg)](https://www.npmjs.com/package/mcp-probe-kit)
19
- [![npm downloads](https://img.shields.io/npm/dm/mcp-probe-kit.svg)](https://www.npmjs.com/package/mcp-probe-kit)
20
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
21
- [![GitHub stars](https://img.shields.io/github/stars/mybolide/mcp-probe-kit.svg)](https://github.com/mybolide/mcp-probe-kit/stargazers)
22
-
23
- > 🚀 AI-Powered Complete Development Toolkit - Covering the Entire Development Lifecycle
24
-
25
- A powerful MCP (Model Context Protocol) server providing **21 tools** covering the complete workflow from product analysis to final release (Requirements → Design → Development → Quality → Release), all tools support **structured output**.
26
-
27
- **🎉 v3.0 Major Update**: Streamlined tool count, focus on core competencies, eliminate choice paralysis, let AI do more native work
28
-
29
- **Supports All MCP Clients**: Cursor, Claude Desktop, Cline, Continue, and more
30
-
31
- **Protocol Version**: MCP 2025-11-25 · **SDK**: @modelcontextprotocol/sdk 1.25.3
32
-
33
- ---
34
-
35
- ## 📚 Complete Documentation
36
-
37
- **👉 [https://mcp-probe-kit.bytezonex.com](https://mcp-probe-kit.bytezonex.com/)**
38
-
39
- - [Quick Start](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html) - Setup in 5 minutes
40
- - [All Tools](https://mcp-probe-kit.bytezonex.com/pages/all-tools.html) - Complete list of 21 tools
41
- - [Best Practices](https://mcp-probe-kit.bytezonex.com/pages/examples.html) - Full development workflow guide
42
- - [v3.0 Migration Guide](https://mcp-probe-kit.bytezonex.com/pages/migration.html) - Upgrade from v2.x to v3.0
43
-
44
- ---
45
-
46
- ## ✨ Core Features
47
-
48
- ### 📦 21 Tools
49
-
50
- - **🔄 Workflow Orchestration** (6 tools) - One-click complex development workflows
51
- - `start_feature`, `start_bugfix`, `start_onboard`, `start_ui`, `start_product`, `start_ralph`
52
- - **🔍 Code Analysis** (3 tools) - Code quality and refactoring
53
- - `code_review`, `fix_bug`, `refactor`
54
- - **📝 Git Tools** (2 tools) - Git commits and work reports
55
- - `gencommit`, `git_work_report`
56
- - **⚡ Code Generation** (1 tool) - Test generation
57
- - `gentest`
58
- - **📦 Project Management** (7 tools) - Project initialization and requirements management
1
+ <div align="center">
2
+ <img src="docs/assets/logo.png" alt="知时MCP Logo" width="160"/>
3
+ <h1>知时MCP | mcp-probe-kit</h1>
4
+ <p><strong>Know the Context, Feed the Moment.</strong></p>
5
+ <p>
6
+ <code>Introspection</code> · <code>Context Hydration</code> · <code>Delegated Orchestration</code>
7
+ </p>
8
+ </div>
9
+
10
+ ---
11
+
12
+ <!-- mcp-name: io.github.mybolide/mcp-probe-kit -->
13
+
14
+ > **Talk is cheap, show me the Context.**
15
+ >
16
+ > mcp-probe-kit is a protocol-level toolkit designed for developers who want AI to truly understand their project's intent. It's not just a collection of 22 tools—it's a context-aware system that helps AI agents grasp what you're building.
17
+
18
+ **Languages**: [English](README.md) | [简体中文](i18n/README.zh-CN.md) | [日本語](i18n/README.ja-JP.md) | [한국어](i18n/README.ko-KR.md) | [Español](i18n/README.es-ES.md) | [Français](i18n/README.fr-FR.md) | [Deutsch](i18n/README.de-DE.md) | [Português (BR)](i18n/README.pt-BR.md)
19
+
20
+ [![npm version](https://img.shields.io/npm/v/mcp-probe-kit.svg)](https://www.npmjs.com/package/mcp-probe-kit)
21
+ [![npm downloads](https://img.shields.io/npm/dm/mcp-probe-kit.svg)](https://www.npmjs.com/package/mcp-probe-kit)
22
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
23
+ [![GitHub stars](https://img.shields.io/github/stars/mybolide/mcp-probe-kit.svg)](https://github.com/mybolide/mcp-probe-kit/stargazers)
24
+
25
+ > 🚀 AI-Powered Complete Development Toolkit - Covering the Entire Development Lifecycle
26
+
27
+ A powerful MCP (Model Context Protocol) server providing **22 tools** covering the complete workflow from product analysis to final release (Requirements → Design → Development → Quality → Release), all tools support **structured output**.
28
+
29
+ **🎉 v3.0 Major Update**: Streamlined tool count, focus on core competencies, eliminate choice paralysis, let AI do more native work
30
+
31
+ **Supports All MCP Clients**: Cursor, Claude Desktop, Cline, Continue, and more
32
+
33
+ **Protocol Version**: MCP 2025-11-25 · **SDK**: @modelcontextprotocol/sdk 1.27.1
34
+
35
+ ---
36
+
37
+ ## 📚 Complete Documentation
38
+
39
+ **👉 [https://mcp-probe-kit.bytezonex.com](https://mcp-probe-kit.bytezonex.com/)**
40
+
41
+ - [Quick Start](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html) - Setup in 5 minutes
42
+ - [All Tools](https://mcp-probe-kit.bytezonex.com/pages/all-tools.html) - Complete list of 22 tools
43
+ - [Best Practices](https://mcp-probe-kit.bytezonex.com/pages/examples.html) - Full development workflow guide
44
+ - [v3.0 Migration Guide](https://mcp-probe-kit.bytezonex.com/pages/migration.html) - Upgrade from v2.x to v3.0
45
+
46
+ ---
47
+
48
+ ## Core Features
49
+
50
+ ### 📦 22 Tools
51
+
52
+ - **🔄 Workflow Orchestration** (6 tools) - One-click complex development workflows
53
+ - `start_feature`, `start_bugfix`, `start_onboard`, `start_ui`, `start_product`, `start_ralph`
54
+ - **🔍 Code Analysis** (4 tools) - Code quality, refactoring, and graph insight
55
+ - `code_review`, `code_insight`, `fix_bug`, `refactor`
56
+ - **📝 Git Tools** (2 tools) - Git commits and work reports
57
+ - `gencommit`, `git_work_report`
58
+ - **⚡ Code Generation** (1 tool) - Test generation
59
+ - `gentest`
60
+ - **📦 Project Management** (6 tools) - Project initialization and requirements management
59
61
  - `init_project`, `init_project_context`, `add_feature`, `estimate`, `interview`, `ask_user`
60
62
  - **🎨 UI/UX Tools** (3 tools) - Design systems and data synchronization
61
63
  - `ui_design_system`, `ui_search`, `sync_ui_data`
62
64
 
65
+ ### 🧠 Code Graph Bridge (GitNexus)
66
+
67
+ - `code_insight` bridges GitNexus by default for query/context/impact analysis
68
+ - `start_feature` and `start_bugfix` automatically enrich plans with graph context when available
69
+ - If GitNexus is unavailable, the server falls back automatically without breaking orchestration
70
+ - Graph snapshots are exposed as resources (`probe://graph/latest`, `probe://graph/history`, `probe://graph/latest.md`)
71
+ - Graph snapshots are also persisted to readable files in `.mcp-probe-kit/graph-snapshots` (customizable via `MCP_GRAPH_SNAPSHOT_DIR`)
72
+ - Tool responses include `_meta.graph` with snapshot URI and local JSON/Markdown file paths
73
+
63
74
  ### 🎯 Structured Output
64
75
 
65
76
  Core and orchestration tools support **structured output**, returning machine-readable JSON data, improving AI parsing accuracy, supporting tool chaining and state tracking.
66
77
 
67
- ### 🧭 Delegated Orchestration Protocol
68
-
69
- All `start_*` orchestration tools return an **execution plan** in `structuredContent.metadata.plan`.
70
- AI needs to **call tools step by step and persist files**, rather than the tool executing internally.
71
-
72
- **Plan Schema (Core Fields)**:
73
- ```json
74
- {
75
- "mode": "delegated",
76
- "steps": [
77
- {
78
- "id": "spec",
79
- "tool": "add_feature",
80
- "args": { "feature_name": "user-auth", "description": "User authentication feature" },
81
- "outputs": ["docs/specs/user-auth/requirements.md"]
82
- }
83
- ]
84
- }
85
- ```
86
-
87
- **Field Description**:
88
- - `mode`: Fixed as `delegated`
89
- - `steps`: Array of execution steps
90
- - `tool`: Tool name (e.g. `add_feature`)
91
- - `action`: Manual action description when no tool (e.g. `update_project_context`)
92
- - `args`: Tool parameters
93
- - `outputs`: Expected artifacts
94
- - `when/dependsOn/note`: Optional conditions and notes
95
-
96
- ### 🧩 Structured Output Field Specification (Key Fields)
97
-
98
- Both orchestration and atomic tools return `structuredContent`, common fields:
99
- - `summary`: One-line summary
100
- - `status`: Status (pending/success/failed/partial)
101
- - `steps`: Execution steps (orchestration tools)
102
- - `artifacts`: Artifact list (path + purpose)
103
- - `metadata.plan`: Delegated execution plan (only start_*)
104
- - `specArtifacts`: Specification artifacts (start_feature)
105
- - `estimate`: Estimation results (start_feature / estimate)
106
-
107
- ### 🧠 Requirements Clarification Mode (Requirements Loop)
108
-
109
- When requirements are unclear, use `requirements_mode=loop` in `start_feature / start_bugfix / start_ui`.
110
- This mode performs 1-2 rounds of structured clarification before entering spec/fix/UI execution.
111
-
112
- **Example:**
113
- ```json
114
- {
115
- "feature_name": "user-auth",
116
- "description": "User authentication feature",
117
- "requirements_mode": "loop",
118
- "loop_max_rounds": 2,
119
- "loop_question_budget": 5
120
- }
121
- ```
122
-
123
- ### 🧩 Template System (Regular Model Friendly)
124
-
125
- `add_feature` supports template profiles, default `auto` auto-selects: prefers `guided` when requirements are incomplete (includes detailed filling rules and checklists), selects `strict` when requirements are complete (more compact structure, suitable for high-capability models or archival scenarios).
126
-
127
- **Example:**
128
- ```json
129
- {
130
- "description": "Add user authentication feature",
131
- "template_profile": "auto"
132
- }
133
- ```
134
-
135
- **Applicable Tools**:
136
- - `start_feature` passes `template_profile` to `add_feature`
137
- - `start_bugfix` / `start_ui` also support `template_profile` for controlling guidance strength (auto/guided/strict)
138
-
139
- **Template Profile Strategy**:
140
- - `guided`: Less/incomplete requirements info, regular model priority
141
- - `strict`: Requirements structured, prefer more compact guidance
142
- - `auto`: Default recommendation, auto-selects guided/strict
143
-
144
- ### 🔄 Workflow Orchestration
145
-
146
- 6 intelligent orchestration tools that automatically combine multiple basic tools for one-click complex development workflows:
147
- - `start_feature` - New feature development (Requirements → Design → Estimation)
148
- - `start_bugfix` - Bug fixing (Analysis → Fix → Testing)
149
- - `start_onboard` - Project onboarding (Generate project context docs)
150
- - `start_ui` - UI development (Design system → Components → Code)
151
- - `start_product` - Product design (PRD → Prototype → Design system → HTML)
152
- - `start_ralph` - Ralph Loop (Iterative development until goal completion)
153
-
154
- ### 🚀 Product Design Workflow
155
-
156
- `start_product` is a complete product design orchestration tool, from requirements to interactive prototype:
157
-
158
- **Workflow:**
159
- 1. **Requirements Analysis** - Generate standard PRD (product overview, feature requirements, page list)
160
- 2. **Prototype Design** - Generate detailed prototype docs for each page
161
- 3. **Design System** - Generate design specifications based on product type
162
- 4. **HTML Prototype** - Generate interactive prototype viewable in browser
163
- 5. **Project Context** - Auto-update project documentation
164
-
165
- **Structured Output Additions**:
166
- - `start_product.structuredContent.artifacts`: Artifact list (PRD, prototypes, design system, etc.)
167
- - `interview.structuredContent.mode`: `usage` / `questions` / `record`
168
-
169
- ### 🎨 UI/UX Pro Max
170
-
171
- 3 UI/UX tools with `start_ui` as the unified entry point:
172
- - `start_ui` - One-click UI development (supports intelligent mode) (orchestration tool)
173
- - `ui_design_system` - Intelligent design system generation
174
- - `ui_search` - UI/UX data search (BM25 algorithm)
175
- - `sync_ui_data` - Sync latest UI/UX data locally
176
-
177
- **Note**: `start_ui` automatically calls `ui_design_system` and `ui_search`, you don't need to call them separately.
178
-
179
- **Inspiration:**
180
- - [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX design system philosophy
181
- - [json-render](https://github.com/vercel-labs/json-render) - JSON template rendering engine
182
-
183
- **Why use `sync_ui_data`?**
184
-
185
- Our `start_ui` tool relies on a rich UI/UX database (colors, icons, charts, components, design patterns, etc.) to generate high-quality design systems and code. This data comes from npm package [uipro-cli](https://www.npmjs.com/package/uipro-cli), including:
186
- - 🎨 Color schemes (mainstream brand colors, color palettes)
187
- - 🔣 Icon libraries (React Icons, Heroicons, etc.)
188
- - 📊 Chart components (Recharts, Chart.js, etc.)
189
- - 🎯 Landing page templates (SaaS, e-commerce, government, etc.)
190
- - 📐 Design specifications (spacing, fonts, shadows, etc.)
191
-
192
- **Data Sync Strategy:**
193
- 1. **Embedded Data**: Synced at build time, works offline
194
- 2. **Cached Data**: Runtime updates to `~/.mcp-probe-kit/ui-ux-data/`
195
- 3. **Manual Sync**: Use `sync_ui_data` to force update latest data
196
-
197
- This ensures `start_ui` can generate professional-grade UI code even offline.
198
-
199
- ### 🎤 Requirements Interview
200
-
201
- 2 interview tools to clarify requirements before development:
202
- - `interview` - Structured requirements interview
203
- - `ask_user` - AI proactive questioning
204
-
205
- ---
206
-
207
- ## 🧭 Tool Selection Guide
208
-
209
- ### When to use orchestration tools vs individual tools?
210
-
211
- **Use orchestration tools (start_*) when:**
212
- - ✅ Need complete workflow (multiple steps)
213
- - Want to automate multiple tasks
214
- - ✅ Need to generate multiple artifacts (docs, code, tests, etc.)
215
-
216
- **Use individual tools when:**
217
- - Only need specific functionality
218
- - Already have project context docs
219
- - Need more fine-grained control
220
-
221
- ### Common Scenario Selection
222
-
223
- | Scenario | Recommended Tool | Reason |
224
- |---------|-----------------|--------|
225
- | Develop new feature (complete flow) | `start_feature` | Auto-complete: spec→estimation |
226
- | Only need feature spec docs | `add_feature` | More lightweight, only generates docs |
227
- | Fix bug (complete flow) | `start_bugfix` | Auto-complete: analysis→fix→test |
228
- | Only need bug analysis | `fix_bug` | Faster, only analyzes problem |
229
- | Generate design system | `ui_design_system` | Directly generate design specs |
230
- | Develop UI components | `start_ui` | Complete flow: design→components→code |
231
- | Product design (requirements to prototype) | `start_product` | One-click: PRD→prototype→HTML |
232
- | One-sentence requirement analysis | `init_project` | Generate complete project spec docs |
233
- | Project onboarding docs | `init_project_context` | Generate tech stack/architecture/conventions |
234
-
235
- ---
236
-
237
- ## 🚀 Quick Start
238
-
239
- ### Method 1: Use directly with npx (Recommended)
240
-
241
- No installation needed, use the latest version directly.
242
-
243
- #### Cursor / Cline Configuration
244
-
245
- **Config file location:**
246
- - Windows: `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
247
- - macOS: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
248
- - Linux: `~/.config/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
249
-
250
- **Config content:**
251
- ```json
252
- {
253
- "mcpServers": {
254
- "mcp-probe-kit": {
255
- "command": "npx",
256
- "args": ["mcp-probe-kit@latest"]
257
- }
258
- }
259
- }
260
- ```
261
-
262
- #### Claude Desktop Configuration
263
-
264
- **Config file location:**
265
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
266
- - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
267
- - Linux: `~/.config/Claude/claude_desktop_config.json`
268
-
269
- **Config content:**
270
- ```json
271
- {
272
- "mcpServers": {
273
- "mcp-probe-kit": {
274
- "command": "npx",
275
- "args": ["-y", "mcp-probe-kit@latest"]
276
- }
277
- }
278
- }
279
- ```
280
-
281
- ### Method 2: Global Installation
282
-
283
- ```bash
284
- npm install -g mcp-probe-kit
285
- ```
286
-
287
- Use in config file:
288
- ```json
289
- {
290
- "mcpServers": {
291
- "mcp-probe-kit": {
292
- "command": "mcp-probe-kit"
293
- }
294
- }
295
- }
296
- ```
297
-
298
- ### Restart Client
299
-
300
- After configuration, **completely quit and reopen** your MCP client.
301
-
302
- **👉 [Detailed Installation Guide](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html)**
303
-
304
- ---
305
-
306
- ## 💡 Usage Examples
307
-
308
- ### Daily Development
309
- ```bash
310
- code_review @feature.ts # Code review
311
- gentest @feature.ts # Generate tests
312
- gencommit # Generate commit message
313
- ```
314
-
315
- ### New Feature Development
316
- ```bash
317
- start_feature user-auth "User authentication feature"
318
- # Auto-complete: Requirements analysis → Design → Effort estimation
319
- ```
320
-
321
- ### Bug Fixing
322
- ```bash
323
- start_bugfix
324
- # Then paste error message
325
- # Auto-complete: Problem location → Fix solution → Test code
326
- ```
327
-
328
- ### Product Design
329
- ```bash
330
- start_product "Online Education Platform" --product_type=SaaS
331
- # Auto-complete: PRD → Prototype → Design system → HTML prototype
332
- ```
333
-
334
- ### UI Development
335
- ```bash
336
- start_ui "Login Page" --mode=auto
337
- # Auto-complete: Design system → Component generation → Code output
338
- ```
339
-
340
- ### Project Context Documentation
341
- ```bash
342
- # Single file mode (default) - Generate a complete project-context.md
343
- init_project_context
344
-
345
- # Modular mode - Generate 6 category docs (suitable for large projects)
346
- init_project_context --mode=modular
347
- # Generates: project-context.md (index) + 5 category docs
348
- ```
349
-
350
- ### Git Work Report
351
- ```bash
352
- # Generate daily report
353
- git_work_report --date 2026-02-03
354
-
355
- # Generate weekly report
356
- git_work_report --start_date 2026-02-01 --end_date 2026-02-07
357
-
358
- # Save to file
359
- git_work_report --date 2026-02-03 --output_file daily-report.md
360
- # Auto-analyze Git diff, generate concise professional report
361
- # If direct command fails, auto-provides temp script solution (auto-deletes after execution)
362
- ```
363
-
364
- **👉 [More Usage Examples](https://mcp-probe-kit.bytezonex.com/pages/examples.html)**
365
-
366
- ---
367
-
368
- ## FAQ
369
-
370
- ### Q1: Tool not working or errors?
371
-
372
- Check detailed logs:
373
-
374
- **Windows (PowerShell):**
375
- ```powershell
376
- npx -y mcp-probe-kit@latest 2>&1 | Tee-Object -FilePath .\mcp-probe-kit.log
377
- ```
378
-
379
- **macOS/Linux:**
380
- ```bash
381
- npx -y mcp-probe-kit@latest 2>&1 | tee ./mcp-probe-kit.log
382
- ```
383
-
384
- ### Q2: Client not recognizing tools after configuration?
385
-
386
- 1. **Restart client** (completely quit then reopen)
387
- 2. Check config file path is correct
388
- 3. Confirm JSON format is correct, no syntax errors
389
- 4. Check client developer tools or logs for error messages
390
-
391
- ### Q3: How to update to latest version?
392
-
393
- **npx method (Recommended):**
394
- Use `@latest` tag in config, automatically uses latest version.
395
-
396
- **Global installation method:**
397
- ```bash
398
- npm update -g mcp-probe-kit
399
- ```
400
-
401
- **👉 [More FAQ](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html)**
402
-
403
- ---
404
-
405
- ## 🤝 Contributing
406
-
407
- Issues and Pull Requests welcome!
408
-
409
- **Improvement suggestions:**
410
- - Add useful tools
411
- - Optimize existing tool prompts
412
- - Improve documentation and examples
413
- - Fix bugs
414
-
415
- ---
416
-
417
- ## 📄 License
418
-
419
- MIT License
420
-
421
- ---
422
-
423
- ## 🔗 Related Links
424
-
425
- - **Author**: [Kyle (小墨)](https://www.bytezonex.com/)
426
- - **GitHub**: [mcp-probe-kit](https://github.com/mybolide/mcp-probe-kit)
427
- - **npm**: [mcp-probe-kit](https://www.npmjs.com/package/mcp-probe-kit)
428
- - **Documentation**: [https://mcp-probe-kit.bytezonex.com](https://mcp-probe-kit.bytezonex.com/)
429
-
430
- **Related Projects:**
431
- - [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) - Official MCP protocol docs
432
- - [GitHub Spec-Kit](https://github.com/github/spec-kit) - GitHub spec-driven development toolkit
433
- - [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX design system philosophy source
434
- - [json-render](https://github.com/vercel-labs/json-render) - JSON template rendering engine inspiration
435
- - [uipro-cli](https://www.npmjs.com/package/uipro-cli) - UI/UX data source
436
-
437
- ---
438
-
439
- **Made with ❤️ for AI-Powered Development**
78
+ ### ⏱️ Native Tasks, Progress, and Cancellation
79
+
80
+ - Built on MCP SDK native task support (`taskStore` + `taskMessageQueue`)
81
+ - Supports task lifecycle endpoints: `tasks/get`, `tasks/result`, `tasks/list`, `tasks/cancel`
82
+ - Advertises `capabilities.tasks.requests.tools.call` so clients can create tasks for `tools/call`
83
+ - Emits `notifications/progress` when client provides `_meta.progressToken`
84
+ - Handles request cancellation via `AbortSignal` and returns a clear cancellation error
85
+ - Long-running orchestration tools (`start_*`) and `sync_ui_data` support cooperative cancellation/progress callbacks
86
+
87
+ ### 🔌 Extensions & UI Apps (Optional)
88
+
89
+ - Trace metadata passthrough: request `_meta.trace` is preserved in tool responses (`_meta.trace`)
90
+ - Optional extensions capability switch: enable with `MCP_ENABLE_EXTENSIONS_CAPABILITY=1`
91
+ - Optional MCP Apps resource output for UI tools: enable with `MCP_ENABLE_UI_APPS=1`
92
+ - UI tools can expose preview resources via `ui://...` and response `_meta.ui.resourceUri`
93
+
94
+ ### 🧭 Delegated Orchestration Protocol
95
+
96
+ All `start_*` orchestration tools return an **execution plan** in `structuredContent.metadata.plan`.
97
+ AI needs to **call tools step by step and persist files**, rather than the tool executing internally.
98
+
99
+ **Plan Schema (Core Fields)**:
100
+ ```json
101
+ {
102
+ "mode": "delegated",
103
+ "steps": [
104
+ {
105
+ "id": "spec",
106
+ "tool": "add_feature",
107
+ "args": { "feature_name": "user-auth", "description": "User authentication feature" },
108
+ "outputs": ["docs/specs/user-auth/requirements.md"]
109
+ }
110
+ ]
111
+ }
112
+ ```
113
+
114
+ **Field Description**:
115
+ - `mode`: Fixed as `delegated`
116
+ - `steps`: Array of execution steps
117
+ - `tool`: Tool name (e.g. `add_feature`)
118
+ - `action`: Manual action description when no tool (e.g. `update_project_context`)
119
+ - `args`: Tool parameters
120
+ - `outputs`: Expected artifacts
121
+ - `when/dependsOn/note`: Optional conditions and notes
122
+
123
+ ### 🧩 Structured Output Field Specification (Key Fields)
124
+
125
+ Both orchestration and atomic tools return `structuredContent`, common fields:
126
+ - `summary`: One-line summary
127
+ - `status`: Status (pending/success/failed/partial)
128
+ - `steps`: Execution steps (orchestration tools)
129
+ - `artifacts`: Artifact list (path + purpose)
130
+ - `metadata.plan`: Delegated execution plan (only start_*)
131
+ - `specArtifacts`: Specification artifacts (start_feature)
132
+ - `estimate`: Estimation results (start_feature / estimate)
133
+
134
+ ### 🧠 Requirements Clarification Mode (Requirements Loop)
135
+
136
+ When requirements are unclear, use `requirements_mode=loop` in `start_feature / start_bugfix / start_ui`.
137
+ This mode performs 1-2 rounds of structured clarification before entering spec/fix/UI execution.
138
+
139
+ **Example:**
140
+ ```json
141
+ {
142
+ "feature_name": "user-auth",
143
+ "description": "User authentication feature",
144
+ "requirements_mode": "loop",
145
+ "loop_max_rounds": 2,
146
+ "loop_question_budget": 5
147
+ }
148
+ ```
149
+
150
+ ### 🧩 Template System (Regular Model Friendly)
151
+
152
+ `add_feature` supports template profiles, default `auto` auto-selects: prefers `guided` when requirements are incomplete (includes detailed filling rules and checklists), selects `strict` when requirements are complete (more compact structure, suitable for high-capability models or archival scenarios).
153
+
154
+ **Example:**
155
+ ```json
156
+ {
157
+ "description": "Add user authentication feature",
158
+ "template_profile": "auto"
159
+ }
160
+ ```
161
+
162
+ **Applicable Tools**:
163
+ - `start_feature` passes `template_profile` to `add_feature`
164
+ - `start_bugfix` / `start_ui` also support `template_profile` for controlling guidance strength (auto/guided/strict)
165
+
166
+ **Template Profile Strategy**:
167
+ - `guided`: Less/incomplete requirements info, regular model priority
168
+ - `strict`: Requirements structured, prefer more compact guidance
169
+ - `auto`: Default recommendation, auto-selects guided/strict
170
+
171
+ ### 🔄 Workflow Orchestration
172
+
173
+ 6 intelligent orchestration tools that automatically combine multiple basic tools for one-click complex development workflows:
174
+ - `start_feature` - New feature development (Requirements → Design → Estimation)
175
+ - `start_bugfix` - Bug fixing (Analysis → Fix → Testing)
176
+ - `start_onboard` - Project onboarding (Generate project context docs)
177
+ - `start_ui` - UI development (Design system Components → Code)
178
+ - `start_product` - Product design (PRD → Prototype → Design system → HTML)
179
+ - `start_ralph` - Ralph Loop (Iterative development until goal completion)
180
+
181
+ ### 🚀 Product Design Workflow
182
+
183
+ `start_product` is a complete product design orchestration tool, from requirements to interactive prototype:
184
+
185
+ **Workflow:**
186
+ 1. **Requirements Analysis** - Generate standard PRD (product overview, feature requirements, page list)
187
+ 2. **Prototype Design** - Generate detailed prototype docs for each page
188
+ 3. **Design System** - Generate design specifications based on product type
189
+ 4. **HTML Prototype** - Generate interactive prototype viewable in browser
190
+ 5. **Project Context** - Auto-update project documentation
191
+
192
+ **Structured Output Additions**:
193
+ - `start_product.structuredContent.artifacts`: Artifact list (PRD, prototypes, design system, etc.)
194
+ - `interview.structuredContent.mode`: `usage` / `questions` / `record`
195
+
196
+ ### 🎨 UI/UX Pro Max
197
+
198
+ 3 UI/UX tools with `start_ui` as the unified entry point:
199
+ - `start_ui` - One-click UI development (supports intelligent mode) (orchestration tool)
200
+ - `ui_design_system` - Intelligent design system generation
201
+ - `ui_search` - UI/UX data search (BM25 algorithm)
202
+ - `sync_ui_data` - Sync latest UI/UX data locally
203
+
204
+ **Note**: `start_ui` automatically calls `ui_design_system` and `ui_search`, you don't need to call them separately.
205
+
206
+ **Inspiration:**
207
+ - [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX design system philosophy
208
+ - [json-render](https://github.com/vercel-labs/json-render) - JSON template rendering engine
209
+
210
+ **Why use `sync_ui_data`?**
211
+
212
+ Our `start_ui` tool relies on a rich UI/UX database (colors, icons, charts, components, design patterns, etc.) to generate high-quality design systems and code. This data comes from npm package [uipro-cli](https://www.npmjs.com/package/uipro-cli), including:
213
+ - 🎨 Color schemes (mainstream brand colors, color palettes)
214
+ - 🔣 Icon libraries (React Icons, Heroicons, etc.)
215
+ - 📊 Chart components (Recharts, Chart.js, etc.)
216
+ - 🎯 Landing page templates (SaaS, e-commerce, government, etc.)
217
+ - 📐 Design specifications (spacing, fonts, shadows, etc.)
218
+
219
+ **Data Sync Strategy:**
220
+ 1. **Embedded Data**: Synced at build time, works offline
221
+ 2. **Cached Data**: Runtime updates to `~/.mcp-probe-kit/ui-ux-data/`
222
+ 3. **Manual Sync**: Use `sync_ui_data` to force update latest data
223
+
224
+ This ensures `start_ui` can generate professional-grade UI code even offline.
225
+
226
+ ### 🎤 Requirements Interview
227
+
228
+ 2 interview tools to clarify requirements before development:
229
+ - `interview` - Structured requirements interview
230
+ - `ask_user` - AI proactive questioning
231
+
232
+ ---
233
+
234
+ ## 🧭 Tool Selection Guide
235
+
236
+ ### When to use orchestration tools vs individual tools?
237
+
238
+ **Use orchestration tools (start_*) when:**
239
+ - Need complete workflow (multiple steps)
240
+ - Want to automate multiple tasks
241
+ - Need to generate multiple artifacts (docs, code, tests, etc.)
242
+
243
+ **Use individual tools when:**
244
+ - Only need specific functionality
245
+ - ✅ Already have project context docs
246
+ - ✅ Need more fine-grained control
247
+
248
+ ### Common Scenario Selection
249
+
250
+ | Scenario | Recommended Tool | Reason |
251
+ |---------|-----------------|--------|
252
+ | Develop new feature (complete flow) | `start_feature` | Auto-complete: spec→estimation |
253
+ | Only need feature spec docs | `add_feature` | More lightweight, only generates docs |
254
+ | Fix bug (complete flow) | `start_bugfix` | Auto-complete: analysis→fix→test |
255
+ | Only need bug analysis | `fix_bug` | Faster, only analyzes problem |
256
+ | Generate design system | `ui_design_system` | Directly generate design specs |
257
+ | Develop UI components | `start_ui` | Complete flow: design→components→code |
258
+ | Product design (requirements to prototype) | `start_product` | One-click: PRD→prototype→HTML |
259
+ | One-sentence requirement analysis | `init_project` | Generate complete project spec docs |
260
+ | Project onboarding docs | `init_project_context` | Generate tech stack/architecture/conventions |
261
+
262
+ ---
263
+
264
+ ## 🚀 Quick Start
265
+
266
+ ### Method 1: Use directly with npx (Recommended)
267
+
268
+ No installation needed, use the latest version directly.
269
+
270
+ #### Cursor / Cline Configuration
271
+
272
+ **Config file location:**
273
+ - Windows: `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
274
+ - macOS: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
275
+ - Linux: `~/.config/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
276
+
277
+ **Config content:**
278
+ ```json
279
+ {
280
+ "mcpServers": {
281
+ "mcp-probe-kit": {
282
+ "command": "npx",
283
+ "args": ["mcp-probe-kit@latest"]
284
+ }
285
+ }
286
+ }
287
+ ```
288
+
289
+ #### Claude Desktop Configuration
290
+
291
+ **Config file location:**
292
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
293
+ - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
294
+ - Linux: `~/.config/Claude/claude_desktop_config.json`
295
+
296
+ **Config content:**
297
+ ```json
298
+ {
299
+ "mcpServers": {
300
+ "mcp-probe-kit": {
301
+ "command": "npx",
302
+ "args": ["-y", "mcp-probe-kit@latest"]
303
+ }
304
+ }
305
+ }
306
+ ```
307
+
308
+ ### Method 2: Global Installation
309
+
310
+ ```bash
311
+ npm install -g mcp-probe-kit
312
+ ```
313
+
314
+ Use in config file:
315
+ ```json
316
+ {
317
+ "mcpServers": {
318
+ "mcp-probe-kit": {
319
+ "command": "mcp-probe-kit"
320
+ }
321
+ }
322
+ }
323
+ ```
324
+
325
+ ### Restart Client
326
+
327
+ After configuration, **completely quit and reopen** your MCP client.
328
+
329
+ **👉 [Detailed Installation Guide](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html)**
330
+
331
+ ---
332
+
333
+ ## 💡 Usage Examples
334
+
335
+ ### Daily Development
336
+ ```bash
337
+ code_review @feature.ts # Code review
338
+ gentest @feature.ts # Generate tests
339
+ gencommit # Generate commit message
340
+ ```
341
+
342
+ ### New Feature Development
343
+ ```bash
344
+ start_feature user-auth "User authentication feature"
345
+ # Auto-complete: Requirements analysis → Design → Effort estimation
346
+ ```
347
+
348
+ ### Bug Fixing
349
+ ```bash
350
+ start_bugfix
351
+ # Then paste error message
352
+ # Auto-complete: Problem location → Fix solution → Test code
353
+ ```
354
+
355
+ ### Product Design
356
+ ```bash
357
+ start_product "Online Education Platform" --product_type=SaaS
358
+ # Auto-complete: PRD Prototype Design system → HTML prototype
359
+ ```
360
+
361
+ ### UI Development
362
+ ```bash
363
+ start_ui "Login Page" --mode=auto
364
+ # Auto-complete: Design system → Component generation → Code output
365
+ ```
366
+
367
+ ### Project Context Documentation
368
+ ```bash
369
+ # Single file mode (default) - Generate a complete project-context.md
370
+ init_project_context
371
+
372
+ # Modular mode - Generate 6 category docs (suitable for large projects)
373
+ init_project_context --mode=modular
374
+ # Generates: project-context.md (index) + 5 category docs
375
+ ```
376
+
377
+ ### Git Work Report
378
+ ```bash
379
+ # Generate daily report
380
+ git_work_report --date 2026-02-03
381
+
382
+ # Generate weekly report
383
+ git_work_report --start_date 2026-02-01 --end_date 2026-02-07
384
+
385
+ # Save to file
386
+ git_work_report --date 2026-02-03 --output_file daily-report.md
387
+ # Auto-analyze Git diff, generate concise professional report
388
+ # If direct command fails, auto-provides temp script solution (auto-deletes after execution)
389
+ ```
390
+
391
+ **👉 [More Usage Examples](https://mcp-probe-kit.bytezonex.com/pages/examples.html)**
392
+
393
+ ---
394
+
395
+ ## FAQ
396
+
397
+ ### Q1: Tool not working or errors?
398
+
399
+ Check detailed logs:
400
+
401
+ **Windows (PowerShell):**
402
+ ```powershell
403
+ npx -y mcp-probe-kit@latest 2>&1 | Tee-Object -FilePath .\mcp-probe-kit.log
404
+ ```
405
+
406
+ **macOS/Linux:**
407
+ ```bash
408
+ npx -y mcp-probe-kit@latest 2>&1 | tee ./mcp-probe-kit.log
409
+ ```
410
+
411
+ ### Q2: Client not recognizing tools after configuration?
412
+
413
+ 1. **Restart client** (completely quit then reopen)
414
+ 2. Check config file path is correct
415
+ 3. Confirm JSON format is correct, no syntax errors
416
+ 4. Check client developer tools or logs for error messages
417
+
418
+ ### Q3: How to update to latest version?
419
+
420
+ **npx method (Recommended):**
421
+ Use `@latest` tag in config, automatically uses latest version.
422
+
423
+ **Global installation method:**
424
+ ```bash
425
+ npm update -g mcp-probe-kit
426
+ ```
427
+
428
+ **👉 [More FAQ](https://mcp-probe-kit.bytezonex.com/pages/getting-started.html)**
429
+
430
+ ---
431
+
432
+ ## 🤝 Contributing
433
+
434
+ Issues and Pull Requests welcome!
435
+
436
+ **Improvement suggestions:**
437
+ - Add useful tools
438
+ - Optimize existing tool prompts
439
+ - Improve documentation and examples
440
+ - Fix bugs
441
+
442
+ ---
443
+
444
+ ## 📄 License
445
+
446
+ MIT License
447
+
448
+ ---
449
+
450
+ ## 🔗 Related Links
451
+
452
+ - **Author**: [Kyle (小墨)](https://www.bytezonex.com/)
453
+ - **GitHub**: [mcp-probe-kit](https://github.com/mybolide/mcp-probe-kit)
454
+ - **npm**: [mcp-probe-kit](https://www.npmjs.com/package/mcp-probe-kit)
455
+ - **Documentation**: [https://mcp-probe-kit.bytezonex.com](https://mcp-probe-kit.bytezonex.com/)
456
+
457
+ **Related Projects:**
458
+ - [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) - Official MCP protocol docs
459
+ - [GitHub Spec-Kit](https://github.com/github/spec-kit) - GitHub spec-driven development toolkit
460
+ - [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - UI/UX design system philosophy source
461
+ - [json-render](https://github.com/vercel-labs/json-render) - JSON template rendering engine inspiration
462
+ - [uipro-cli](https://www.npmjs.com/package/uipro-cli) - UI/UX data source
463
+
464
+ ---
465
+
466
+ **Made with ❤️ for AI-Powered Development**