smart-spec-kit-mcp 2.1.1 → 2.1.2
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
CHANGED
|
@@ -8,7 +8,7 @@ Plateforme d'orchestration automatisée pour le **développement piloté par les
|
|
|
8
8
|
## ✨ Fonctionnalités
|
|
9
9
|
|
|
10
10
|
- **🤖 Commandes Naturelles**: Utilisez `speckit: spec`, `speckit: plan`, etc. directement dans Copilot Chat
|
|
11
|
-
- **📝
|
|
11
|
+
- **📝 Prompts Versionnés**: Prompts personnalisables et versionnables dans `.spec-kit/prompts/`
|
|
12
12
|
- **🔄 Workflows YAML**: Processus personnalisables étape par étape
|
|
13
13
|
- **📋 Templates**: Spécifications fonctionnelles, plans d'implémentation, rapports de bugs
|
|
14
14
|
- **🛡️ Gouvernance Intégrée**: Constitution projet, principes de développement
|
|
@@ -26,6 +26,7 @@ npx smart-spec-kit-mcp setup
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
Cette commande configure automatiquement:
|
|
29
|
+
|
|
29
30
|
- ✅ VS Code settings.json (MCP server)
|
|
30
31
|
- ✅ `.github/copilot-instructions.md` (guide Copilot)
|
|
31
32
|
- ✅ `.spec-kit/` avec prompts, templates et workflows
|
|
@@ -55,7 +56,7 @@ Puis rechargez VS Code: `Ctrl+Shift+P` → "Developer: Reload Window"
|
|
|
55
56
|
|
|
56
57
|
Après installation, votre projet contient:
|
|
57
58
|
|
|
58
|
-
```
|
|
59
|
+
```text
|
|
59
60
|
votre-projet/
|
|
60
61
|
├── .github/
|
|
61
62
|
│ └── copilot-instructions.md # Guide Copilot sur l'utilisation de Spec-Kit
|
|
@@ -119,25 +120,25 @@ Utilisez ces phrases dans Copilot Chat pour déclencher les outils MCP:
|
|
|
119
120
|
|
|
120
121
|
### 2. Créer une spécification
|
|
121
122
|
|
|
122
|
-
```
|
|
123
|
+
```text
|
|
123
124
|
speckit: spec pour un système de notifications push
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
### 3. Planifier l'implémentation
|
|
127
128
|
|
|
128
|
-
```
|
|
129
|
+
```text
|
|
129
130
|
speckit: plan
|
|
130
131
|
```
|
|
131
132
|
|
|
132
133
|
### 4. Générer les tâches
|
|
133
134
|
|
|
134
|
-
```
|
|
135
|
+
```text
|
|
135
136
|
speckit: tasks
|
|
136
137
|
```
|
|
137
138
|
|
|
138
139
|
### 5. Implémenter
|
|
139
140
|
|
|
140
|
-
```
|
|
141
|
+
```text
|
|
141
142
|
speckit: implement
|
|
142
143
|
```
|
|
143
144
|
|
|
@@ -194,15 +195,15 @@ steps:
|
|
|
194
195
|
|
|
195
196
|
Demandez de l'aide directement dans Copilot Chat:
|
|
196
197
|
|
|
197
|
-
```
|
|
198
|
+
```text
|
|
198
199
|
speckit: help comment créer un nouveau workflow ?
|
|
199
200
|
```
|
|
200
201
|
|
|
201
|
-
```
|
|
202
|
+
```text
|
|
202
203
|
speckit: help comment personnaliser les templates ?
|
|
203
204
|
```
|
|
204
205
|
|
|
205
|
-
```
|
|
206
|
+
```text
|
|
206
207
|
speckit: help quels sont les agents disponibles ?
|
|
207
208
|
```
|
|
208
209
|
|
|
@@ -234,7 +235,8 @@ Pour récupérer automatiquement les work items:
|
|
|
234
235
|
```
|
|
235
236
|
|
|
236
237
|
Puis utilisez:
|
|
237
|
-
|
|
238
|
+
|
|
239
|
+
```text
|
|
238
240
|
speckit: spec pour le work item #12345
|
|
239
241
|
```
|
|
240
242
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Prompt Tools for Spec-Kit
|
|
3
3
|
*
|
|
4
|
-
* MCP tools that load and execute
|
|
4
|
+
* MCP tools that load and execute customizable prompts from .spec-kit/prompts/
|
|
5
5
|
* These tools are callable via natural language in Copilot Chat.
|
|
6
6
|
*/
|
|
7
7
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Prompt Tools for Spec-Kit
|
|
3
3
|
*
|
|
4
|
-
* MCP tools that load and execute
|
|
4
|
+
* MCP tools that load and execute customizable prompts from .spec-kit/prompts/
|
|
5
5
|
* These tools are callable via natural language in Copilot Chat.
|
|
6
6
|
*/
|
|
7
7
|
import * as fs from "node:fs/promises";
|
|
@@ -89,7 +89,7 @@ The memory tool helps you enrich project context:
|
|
|
89
89
|
|
|
90
90
|
\`\`\`
|
|
91
91
|
.spec-kit/
|
|
92
|
-
├── prompts/ #
|
|
92
|
+
├── prompts/ # Customizable prompts (read by MCP tools)
|
|
93
93
|
├── templates/ # Document templates (customize format)
|
|
94
94
|
├── memory/ # Project constitution (your principles)
|
|
95
95
|
└── workflows/ # YAML workflows (multi-step processes)
|
|
@@ -238,7 +238,7 @@ export function formatInstallReport(result, projectPath) {
|
|
|
238
238
|
report += "├── .github/\n";
|
|
239
239
|
report += "│ └── copilot-instructions.md # Instructions for Copilot\n";
|
|
240
240
|
report += "├── .spec-kit/\n";
|
|
241
|
-
report += "│ ├── prompts/ #
|
|
241
|
+
report += "│ ├── prompts/ # Customizable prompts (read by MCP)\n";
|
|
242
242
|
report += "│ │ ├── specify.md\n";
|
|
243
243
|
report += "│ │ ├── plan.md\n";
|
|
244
244
|
report += "│ │ ├── tasks.md\n";
|
package/docs/DOCUMENTATION.md
CHANGED
|
@@ -4,7 +4,7 @@ This is the comprehensive documentation for Spec-Kit. Copilot can read this file
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
Spec-Kit is an MCP (Model Context Protocol) server that provides **
|
|
7
|
+
Spec-Kit is an MCP (Model Context Protocol) server that provides **customizable prompts** and workflow orchestration for specification-driven development. It integrates with GitHub Copilot in VS Code to guide developers through creating specifications, plans, tasks, and implementation.
|
|
8
8
|
|
|
9
9
|
## Architecture
|
|
10
10
|
|
|
@@ -20,9 +20,9 @@ Spec-Kit is an MCP (Model Context Protocol) server that provides **Prompt-as-Cod
|
|
|
20
20
|
- Defines command keywords and aliases
|
|
21
21
|
|
|
22
22
|
3. **Prompts** (`.spec-kit/prompts/`)
|
|
23
|
-
-
|
|
23
|
+
- Customizable prompt files read by MCP tools
|
|
24
24
|
- Define behavior for each command
|
|
25
|
-
-
|
|
25
|
+
- Versioned and maintainable in your project
|
|
26
26
|
|
|
27
27
|
4. **Templates** (`.spec-kit/templates/`)
|
|
28
28
|
- Document templates for specs, plans, tasks
|
|
@@ -50,6 +50,7 @@ Spec-Kit is an MCP (Model Context Protocol) server that provides **Prompt-as-Cod
|
|
|
50
50
|
**Triggers**: `speckit: spec`, `speckit: specify`, `créer une spec`
|
|
51
51
|
|
|
52
52
|
**Parameters** (all optional):
|
|
53
|
+
|
|
53
54
|
- `requirements`: What you want to build. Can be:
|
|
54
55
|
- A feature description: "user authentication with email/password"
|
|
55
56
|
- A user story: "As a user, I want to..."
|
|
@@ -57,13 +58,15 @@ Spec-Kit is an MCP (Model Context Protocol) server that provides **Prompt-as-Cod
|
|
|
57
58
|
- `contextId`: ID for the specification filename
|
|
58
59
|
|
|
59
60
|
**Examples**:
|
|
60
|
-
|
|
61
|
+
|
|
62
|
+
```text
|
|
61
63
|
speckit: spec
|
|
62
64
|
speckit: spec pour un système de notifications push
|
|
63
65
|
speckit: spec user authentication with OAuth
|
|
64
66
|
```
|
|
65
67
|
|
|
66
68
|
**Behavior**:
|
|
69
|
+
|
|
67
70
|
1. Loads prompt from `.spec-kit/prompts/specify.md`
|
|
68
71
|
2. Loads constitution from `.spec-kit/memory/constitution.md`
|
|
69
72
|
3. Loads template from `.spec-kit/templates/functional-spec.md`
|
|
@@ -77,15 +80,18 @@ speckit: spec user authentication with OAuth
|
|
|
77
80
|
**Triggers**: `speckit: plan`, `planifier`, `créer un plan`
|
|
78
81
|
|
|
79
82
|
**Parameters** (all optional):
|
|
83
|
+
|
|
80
84
|
- `specPath`: Path to specification file (auto-detects most recent if not provided)
|
|
81
85
|
|
|
82
86
|
**Examples**:
|
|
83
|
-
|
|
87
|
+
|
|
88
|
+
```text
|
|
84
89
|
speckit: plan
|
|
85
90
|
speckit: plan pour la spec specs/auth-spec.md
|
|
86
91
|
```
|
|
87
92
|
|
|
88
93
|
**Behavior**:
|
|
94
|
+
|
|
89
95
|
1. Finds the most recent specification in `specs/`
|
|
90
96
|
2. Loads prompt from `.spec-kit/prompts/plan.md`
|
|
91
97
|
3. Returns context for generating the plan
|
|
@@ -98,15 +104,18 @@ speckit: plan pour la spec specs/auth-spec.md
|
|
|
98
104
|
**Triggers**: `speckit: tasks`, `générer les tâches`, `créer les tâches`
|
|
99
105
|
|
|
100
106
|
**Parameters** (all optional):
|
|
107
|
+
|
|
101
108
|
- `planPath`: Path to plan file (auto-detects most recent if not provided)
|
|
102
109
|
|
|
103
110
|
**Examples**:
|
|
104
|
-
|
|
111
|
+
|
|
112
|
+
```text
|
|
105
113
|
speckit: tasks
|
|
106
114
|
speckit: générer les tâches
|
|
107
115
|
```
|
|
108
116
|
|
|
109
117
|
**Behavior**:
|
|
118
|
+
|
|
110
119
|
1. Finds the most recent plan in `specs/`
|
|
111
120
|
2. Loads prompt from `.spec-kit/prompts/tasks.md`
|
|
112
121
|
3. Returns context for generating tasks
|
|
@@ -119,16 +128,19 @@ speckit: générer les tâches
|
|
|
119
128
|
**Triggers**: `speckit: implement`, `implémenter`, `coder`
|
|
120
129
|
|
|
121
130
|
**Parameters** (all optional):
|
|
131
|
+
|
|
122
132
|
- `taskId`: Specific task ID to implement (picks next pending if not provided)
|
|
123
133
|
|
|
124
134
|
**Examples**:
|
|
125
|
-
|
|
135
|
+
|
|
136
|
+
```text
|
|
126
137
|
speckit: implement
|
|
127
138
|
speckit: implement task 3
|
|
128
139
|
speckit: implémenter la tâche 5
|
|
129
140
|
```
|
|
130
141
|
|
|
131
142
|
**Behavior**:
|
|
143
|
+
|
|
132
144
|
1. Loads tasks from `specs/tasks.md`
|
|
133
145
|
2. Finds next pending task (or specified task)
|
|
134
146
|
3. Loads prompt from `.spec-kit/prompts/implement.md`
|
|
@@ -142,16 +154,19 @@ speckit: implémenter la tâche 5
|
|
|
142
154
|
**Triggers**: `speckit: clarify`, `clarifier`, `préciser`
|
|
143
155
|
|
|
144
156
|
**Parameters** (all optional):
|
|
157
|
+
|
|
145
158
|
- `specPath`: Path to specification (auto-detects if not provided)
|
|
146
159
|
- `questions`: Specific questions to clarify
|
|
147
160
|
|
|
148
161
|
**Examples**:
|
|
149
|
-
|
|
162
|
+
|
|
163
|
+
```text
|
|
150
164
|
speckit: clarify
|
|
151
165
|
speckit: clarifier les critères d'acceptation
|
|
152
166
|
```
|
|
153
167
|
|
|
154
168
|
**Behavior**:
|
|
169
|
+
|
|
155
170
|
1. Finds `[NEEDS CLARIFICATION]` markers
|
|
156
171
|
2. Loads prompt from `.spec-kit/prompts/clarify.md`
|
|
157
172
|
3. Returns targeted questions for stakeholders
|
|
@@ -163,16 +178,19 @@ speckit: clarifier les critères d'acceptation
|
|
|
163
178
|
**Triggers**: `speckit: help`, `aide sur speckit`
|
|
164
179
|
|
|
165
180
|
**Parameters** (all optional):
|
|
181
|
+
|
|
166
182
|
- `topic`: Specific topic to get help on
|
|
167
183
|
|
|
168
184
|
**Examples**:
|
|
169
|
-
|
|
185
|
+
|
|
186
|
+
```text
|
|
170
187
|
speckit: help
|
|
171
188
|
speckit: help workflows
|
|
172
189
|
speckit: help comment créer un template ?
|
|
173
190
|
```
|
|
174
191
|
|
|
175
192
|
**Topics covered**:
|
|
193
|
+
|
|
176
194
|
- Commands and usage
|
|
177
195
|
- Customization (prompts, templates, workflows)
|
|
178
196
|
- Troubleshooting
|
|
@@ -185,6 +203,7 @@ speckit: help comment créer un template ?
|
|
|
185
203
|
**Triggers**: `speckit: memory`, `enrichir la mémoire`, `ajouter au contexte`
|
|
186
204
|
|
|
187
205
|
**Parameters** (all optional):
|
|
206
|
+
|
|
188
207
|
- `action`: Action to perform
|
|
189
208
|
- `add` - Add new memory file (default)
|
|
190
209
|
- `update` - Update existing memory file
|
|
@@ -195,7 +214,8 @@ speckit: help comment créer un template ?
|
|
|
195
214
|
- `category`: Category for organizing (`decisions`, `conventions`, `architecture`, `learnings`, `context`)
|
|
196
215
|
|
|
197
216
|
**Examples**:
|
|
198
|
-
|
|
217
|
+
|
|
218
|
+
```text
|
|
199
219
|
speckit: memory list
|
|
200
220
|
speckit: memory add decisions
|
|
201
221
|
speckit: memory auto
|
|
@@ -204,6 +224,7 @@ speckit: memory ajouter une décision technique
|
|
|
204
224
|
```
|
|
205
225
|
|
|
206
226
|
**Memory Categories**:
|
|
227
|
+
|
|
207
228
|
- **decisions** - Technical and architectural decisions
|
|
208
229
|
- **conventions** - Coding standards and patterns
|
|
209
230
|
- **architecture** - System design and structure
|
|
@@ -212,6 +233,7 @@ speckit: memory ajouter une décision technique
|
|
|
212
233
|
- **glossary** - Domain terms and definitions
|
|
213
234
|
|
|
214
235
|
**Behavior**:
|
|
236
|
+
|
|
215
237
|
1. Lists, creates, or updates files in `.spec-kit/memory/`
|
|
216
238
|
2. Structures content with dates and context
|
|
217
239
|
3. Auto mode analyzes conversation to extract insights
|
|
@@ -288,12 +310,14 @@ steps:
|
|
|
288
310
|
```
|
|
289
311
|
|
|
290
312
|
**Available actions**:
|
|
313
|
+
|
|
291
314
|
- `call_agent` - Call an AI agent
|
|
292
315
|
- `fetch_ado` - Fetch Azure DevOps work item
|
|
293
316
|
- `save_artifact` - Save to file
|
|
294
317
|
- `validate` - Validate output
|
|
295
318
|
|
|
296
319
|
**Available agents**:
|
|
320
|
+
|
|
297
321
|
- `SpecAgent` - Writes specifications
|
|
298
322
|
- `PlanAgent` - Creates plans
|
|
299
323
|
- `GovAgent` - Validates governance
|
|
@@ -336,6 +360,7 @@ The constitution defines project principles. Edit `.spec-kit/memory/constitution
|
|
|
336
360
|
### Commands Not Working
|
|
337
361
|
|
|
338
362
|
1. **Check MCP configuration** in `.vscode/settings.json`:
|
|
363
|
+
|
|
339
364
|
```json
|
|
340
365
|
{
|
|
341
366
|
"mcp": {
|
|
@@ -356,6 +381,7 @@ The constitution defines project principles. Edit `.spec-kit/memory/constitution
|
|
|
356
381
|
### Setup Not Finding Files
|
|
357
382
|
|
|
358
383
|
Run setup with the project path:
|
|
384
|
+
|
|
359
385
|
```bash
|
|
360
386
|
npx smart-spec-kit-mcp setup --project /path/to/project
|
|
361
387
|
```
|
|
@@ -365,6 +391,7 @@ npx smart-spec-kit-mcp setup --project /path/to/project
|
|
|
365
391
|
1. Check files exist in `.spec-kit/prompts/`
|
|
366
392
|
2. Ensure valid Markdown format
|
|
367
393
|
3. Run setup again to reinstall:
|
|
394
|
+
|
|
368
395
|
```bash
|
|
369
396
|
npx smart-spec-kit-mcp setup --project . --force
|
|
370
397
|
```
|
|
@@ -383,6 +410,7 @@ npx smart-spec-kit-mcp setup --project . --force
|
|
|
383
410
|
Standard feature specification workflow.
|
|
384
411
|
|
|
385
412
|
**Steps**:
|
|
413
|
+
|
|
386
414
|
1. Fetch requirements
|
|
387
415
|
2. Generate specification
|
|
388
416
|
3. Create plan
|
|
@@ -394,6 +422,7 @@ Standard feature specification workflow.
|
|
|
394
422
|
Complete workflow with governance.
|
|
395
423
|
|
|
396
424
|
**Steps**:
|
|
425
|
+
|
|
397
426
|
1. Fetch requirements
|
|
398
427
|
2. Generate specification
|
|
399
428
|
3. Security review
|
|
@@ -410,6 +439,7 @@ Complete workflow with governance.
|
|
|
410
439
|
Bug fix workflow.
|
|
411
440
|
|
|
412
441
|
**Steps**:
|
|
442
|
+
|
|
413
443
|
1. Fetch bug report
|
|
414
444
|
2. Root cause analysis
|
|
415
445
|
3. Fix plan
|
package/package.json
CHANGED
|
@@ -45,12 +45,13 @@ speckit_specify → speckit_plan → speckit_tasks → speckit_implement
|
|
|
45
45
|
|
|
46
46
|
```
|
|
47
47
|
.spec-kit/
|
|
48
|
-
├── prompts/ #
|
|
48
|
+
├── prompts/ # Customizable prompts (define command behavior)
|
|
49
49
|
│ ├── specify.md
|
|
50
50
|
│ ├── plan.md
|
|
51
51
|
│ ├── tasks.md
|
|
52
52
|
│ ├── implement.md
|
|
53
|
-
│
|
|
53
|
+
│ ├── clarify.md
|
|
54
|
+
│ └── memory.md
|
|
54
55
|
├── templates/ # Document templates
|
|
55
56
|
│ ├── functional-spec.md
|
|
56
57
|
│ ├── plan-template.md
|