@programinglive/dev-workflow-mcp-server 1.5.1 → 1.5.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/.agent/workflows/dev-workflow-bugfix.md +250 -250
- package/.agent/workflows/dev-workflow-feature.md +201 -201
- package/.agent/workflows/dev-workflow-full-cycle.md +400 -400
- package/.agent/workflows/dev-workflow-refactor.md +238 -238
- package/.github/ISSUE_TEMPLATE/bug_report.md +34 -34
- package/.github/ISSUE_TEMPLATE/feature_request.md +25 -25
- package/.github/pull_request_template.md +22 -22
- package/.github/workflows/npm-publish.yml +50 -50
- package/.husky/commit-msg +0 -0
- package/CHANGELOG.md +749 -739
- package/CODE_OF_CONDUCT.md +79 -79
- package/CONTRIBUTING.md +60 -60
- package/LICENSE +21 -21
- package/README.md +632 -632
- package/SECURITY.md +20 -20
- package/db/index.js +204 -204
- package/docs/NETLIFY_DEPLOYMENT.md +125 -125
- package/docs/PLESK_DEPLOYMENT.md +170 -170
- package/docs/WORKFLOW-BEST-PRACTICES.md +58 -58
- package/docs/antigravity/EXAMPLES.md +535 -535
- package/docs/antigravity/GETTING-STARTED.md +292 -292
- package/docs/antigravity/TROUBLESHOOTING.md +742 -742
- package/docs/antigravity/WALKTHROUGH.md +25 -25
- package/docs/antigravity/WORKFLOW-TEMPLATES.md +670 -670
- package/docs/product/PRD.md +67 -67
- package/docs/release-notes/RELEASE_NOTES.md +226 -226
- package/docs/web-dashboard.md +175 -175
- package/exec.js +49 -49
- package/index.js +279 -279
- package/install.js +73 -73
- package/package.json +4 -4
- package/release-wrapper.js +192 -192
- package/scripts/build-docs.js +63 -63
- package/scripts/hello-world.js +1 -1
- package/scripts/release.cjs +252 -252
- package/scripts/update-release-notes.cjs +178 -178
- package/server.json +23 -23
- package/tailwind.config.js +8 -8
- package/tests/build.test.js +83 -91
- package/tests/exec.test.js +35 -35
- package/tests/handlers.test.js +1058 -1058
- package/tests/hello-world.test.js +13 -13
- package/tests/mcpRegistry.test.js +65 -65
- package/tests/release-wrapper.test.js +107 -107
- package/tests/workflowState.test.js +505 -505
- package/tools/definitions.js +332 -332
- package/tools/handlers.js +1019 -1019
- package/vite.config.js +43 -43
- package/vite.web.config.js +23 -23
- package/web/README.md +36 -36
- package/web/app/docs/page.tsx +202 -202
- package/web/app/globals.css +90 -90
- package/web/app/layout.tsx +36 -36
- package/web/app/page.tsx +15 -15
- package/web/components/ApiReference.tsx +20 -20
- package/web/components/Features.tsx +61 -61
- package/web/components/Footer.tsx +9 -9
- package/web/components/Hero.tsx +96 -97
- package/web/components/History.tsx +143 -143
- package/web/components/Navbar.tsx +64 -64
- package/web/components/Terminal.tsx +114 -114
- package/web/eslint.config.mjs +18 -18
- package/web/lib/db.js +131 -131
- package/web/lib/docs.js +73 -73
- package/web/netlify.toml +3 -6
- package/web/next.config.ts +12 -7
- package/web/package-lock.json +6560 -6560
- package/web/package.json +28 -28
- package/web/postcss.config.mjs +9 -9
- package/web/server.js +31 -31
- package/web/tailwind.config.ts +19 -19
- package/web/tsconfig.json +42 -42
- package/workflow-state.js +612 -612
- package/web/app/api/docs/route.ts +0 -32
- package/web/app/api/history/route.ts +0 -12
- package/web/app/api/npm-downloads/route.ts +0 -21
- package/web/app/api/summary/route.ts +0 -13
- package/web/app/api/version/route.ts +0 -8
|
@@ -1,292 +1,292 @@
|
|
|
1
|
-
# Getting Started with Dev-Workflow MCP Server in Antigravity
|
|
2
|
-
|
|
3
|
-
This guide will help you set up and use the dev-workflow MCP server in the Antigravity text editor.
|
|
4
|
-
|
|
5
|
-
## What is Dev-Workflow MCP Server?
|
|
6
|
-
|
|
7
|
-
The dev-workflow MCP server is a development discipline enforcer that guides you through proper software development workflows. It ensures you:
|
|
8
|
-
|
|
9
|
-
- ✅ Start with a clear task description
|
|
10
|
-
- ✅ Write tests for your changes
|
|
11
|
-
- ✅ Run tests (and block commits if they fail)
|
|
12
|
-
- ✅ Document your work
|
|
13
|
-
- ✅ Follow a structured commit and release process
|
|
14
|
-
- ✅ Track your development history
|
|
15
|
-
|
|
16
|
-
## Prerequisites
|
|
17
|
-
|
|
18
|
-
- **Node.js** (v18 or later)
|
|
19
|
-
- **Antigravity** text editor
|
|
20
|
-
- **Git** installed and configured
|
|
21
|
-
- Basic understanding of terminal commands
|
|
22
|
-
|
|
23
|
-
## Installation
|
|
24
|
-
|
|
25
|
-
### Option 1: Install in Your Project (Recommended)
|
|
26
|
-
|
|
27
|
-
This creates a project-specific workflow state:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
cd your-project
|
|
31
|
-
npm install @programinglive/dev-workflow-mcp-server
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
This automatically creates `.state/workflow-state.json` in your project root.
|
|
35
|
-
|
|
36
|
-
### Option 2: Install from Source
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
git clone https://github.com/programinglive/dev-workflow-mcp-server.git
|
|
40
|
-
cd dev-workflow-mcp-server
|
|
41
|
-
npm install
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Configuration in Antigravity
|
|
45
|
-
|
|
46
|
-
Antigravity uses an MCP configuration file located at:
|
|
47
|
-
|
|
48
|
-
**Windows:** `%APPDATA%\Antigravity\mcp_config.json` or `C:\Users\<USERNAME>\.gemini\antigravity\mcp_config.json`
|
|
49
|
-
|
|
50
|
-
**macOS:** `~/Library/Application Support/Antigravity/mcp_config.json`
|
|
51
|
-
|
|
52
|
-
**Linux:** `~/.config/antigravity/mcp_config.json`
|
|
53
|
-
|
|
54
|
-
### Configuration File
|
|
55
|
-
|
|
56
|
-
Create or edit the `mcp_config.json` file:
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"mcpServers": {
|
|
61
|
-
"dev-workflow": {
|
|
62
|
-
"command": "node",
|
|
63
|
-
"args": [
|
|
64
|
-
"d:\\code\\dev-workflow-mcp-server\\index.js"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
**Important Notes:**
|
|
72
|
-
- Use **absolute paths** to `index.js`
|
|
73
|
-
- On Windows, use **escaped backslashes** (`\\`) in JSON
|
|
74
|
-
- Restart Antigravity after editing the configuration
|
|
75
|
-
|
|
76
|
-
### Verify Installation
|
|
77
|
-
|
|
78
|
-
After restarting Antigravity, you should see dev-workflow tools available. You can verify by:
|
|
79
|
-
|
|
80
|
-
1. Opening Antigravity
|
|
81
|
-
2. Checking if MCP tools like `start_task`, `get_workflow_status` are available
|
|
82
|
-
3. Running `get_workflow_status` to see the initial state
|
|
83
|
-
|
|
84
|
-
## Your First Workflow
|
|
85
|
-
|
|
86
|
-
Let's walk through a complete development workflow:
|
|
87
|
-
|
|
88
|
-
### 1. Start a New Task
|
|
89
|
-
|
|
90
|
-
```
|
|
91
|
-
Use start_task to begin:
|
|
92
|
-
- description: "Add header component to landing page"
|
|
93
|
-
- type: "feature"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
The MCP server responds with your task ID and current phase.
|
|
97
|
-
|
|
98
|
-
### 2. Write Your Code
|
|
99
|
-
|
|
100
|
-
Implement your feature as you normally would. The workflow doesn't interfere with your coding.
|
|
101
|
-
|
|
102
|
-
### 3. Mark as Fixed
|
|
103
|
-
|
|
104
|
-
Once you've completed the implementation:
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
Use mark_bug_fixed:
|
|
108
|
-
- summary: "Header component with logo and navigation menu"
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### 4. Create Tests
|
|
112
|
-
|
|
113
|
-
The server will remind you to create tests. Write your tests, then:
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
Use create_tests (no parameters needed)
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### 5. Run Tests
|
|
120
|
-
|
|
121
|
-
Execute your test suite and record the results:
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
Use run_tests:
|
|
125
|
-
- passed: true
|
|
126
|
-
- testCommand: "npm test"
|
|
127
|
-
- details: "All 25 tests passed"
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
> **Important:** If tests fail, the workflow will block you from proceeding!
|
|
131
|
-
|
|
132
|
-
### 6. Create Documentation
|
|
133
|
-
|
|
134
|
-
Update your documentation (README, inline comments, etc.):
|
|
135
|
-
|
|
136
|
-
```
|
|
137
|
-
Use create_documentation:
|
|
138
|
-
- documentationType: "README"
|
|
139
|
-
- summary: "Added header component documentation and usage examples"
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### 7. Commit and Push
|
|
143
|
-
|
|
144
|
-
The server will automatically stage, commit, and push your changes:
|
|
145
|
-
|
|
146
|
-
```
|
|
147
|
-
Use commit_and_push:
|
|
148
|
-
- commitMessage: "feat: add header component with navigation"
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
The branch is auto-detected (main or master).
|
|
152
|
-
|
|
153
|
-
### 8. Perform Release
|
|
154
|
-
|
|
155
|
-
Record your release:
|
|
156
|
-
|
|
157
|
-
```
|
|
158
|
-
Use perform_release:
|
|
159
|
-
- command: "npm run release:patch"
|
|
160
|
-
- notes: "Released header component"
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
### 9. Complete Task
|
|
164
|
-
|
|
165
|
-
Finally, mark the task as complete:
|
|
166
|
-
|
|
167
|
-
```
|
|
168
|
-
Use complete_task:
|
|
169
|
-
- commitMessage: "feat: add header component with navigation"
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
## Antigravity vs. Windsurf
|
|
173
|
-
|
|
174
|
-
### Key Differences
|
|
175
|
-
|
|
176
|
-
| Feature | Antigravity | Windsurf |
|
|
177
|
-
|---------|-------------|----------|
|
|
178
|
-
| **Configuration** | `mcp_config.json` in `.gemini` | `config.json` in app data |
|
|
179
|
-
| **Tool Invocation** | Direct MCP tool calls | May use different interfaces |
|
|
180
|
-
| **Workflow State** | Per-user isolation with `DEV_WORKFLOW_USER_ID` | Shared state |
|
|
181
|
-
| **Path Format** | Windows requires `\\` escaping | Same |
|
|
182
|
-
|
|
183
|
-
### Avoiding Conflicts
|
|
184
|
-
|
|
185
|
-
If you use both Antigravity and Windsurf:
|
|
186
|
-
|
|
187
|
-
1. **Use separate user IDs** to isolate workflow states:
|
|
188
|
-
|
|
189
|
-
```bash
|
|
190
|
-
# In Antigravity MCP config, add environment variable
|
|
191
|
-
export DEV_WORKFLOW_USER_ID=antigravity-user
|
|
192
|
-
|
|
193
|
-
# In Windsurf, use different ID
|
|
194
|
-
export DEV_WORKFLOW_USER_ID=windsurf-user
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
2. **Don't run both simultaneously** on the same project to avoid state conflicts
|
|
198
|
-
|
|
199
|
-
3. **Use project-specific installations** to keep states isolated per project
|
|
200
|
-
|
|
201
|
-
## Common Workflows
|
|
202
|
-
|
|
203
|
-
### Quick Feature Development
|
|
204
|
-
|
|
205
|
-
For simple features, use `run_full_workflow`:
|
|
206
|
-
|
|
207
|
-
```
|
|
208
|
-
Use run_full_workflow with:
|
|
209
|
-
- summary: "Add contact form"
|
|
210
|
-
- testCommand: "npm test"
|
|
211
|
-
- documentationType: "README"
|
|
212
|
-
- documentationSummary: "Added contact form docs"
|
|
213
|
-
- commitMessage: "feat: add contact form"
|
|
214
|
-
- releaseCommand: "npm run release:minor"
|
|
215
|
-
- testsPassed: true
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
This executes all workflow steps in one go!
|
|
219
|
-
|
|
220
|
-
### Bug Fix Workflow
|
|
221
|
-
|
|
222
|
-
1. `start_task` with type "bugfix"
|
|
223
|
-
2. Fix the bug
|
|
224
|
-
3. `mark_bug_fixed`
|
|
225
|
-
4. Create regression tests
|
|
226
|
-
5. `create_tests`
|
|
227
|
-
6. `run_tests`
|
|
228
|
-
7. `create_documentation` (changelog)
|
|
229
|
-
8. `commit_and_push`
|
|
230
|
-
9. `perform_release`
|
|
231
|
-
10. `complete_task`
|
|
232
|
-
|
|
233
|
-
### When Tests Can't Be Automated
|
|
234
|
-
|
|
235
|
-
Sometimes automated tests aren't feasible (e.g., manual UI testing):
|
|
236
|
-
|
|
237
|
-
```
|
|
238
|
-
Use skip_tests:
|
|
239
|
-
- reason: "Mobile device testing requires manual QA on physical devices"
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
This flags the task for manual verification but allows the workflow to continue.
|
|
243
|
-
|
|
244
|
-
## Checking Your Status
|
|
245
|
-
|
|
246
|
-
At any time, check where you are:
|
|
247
|
-
|
|
248
|
-
```
|
|
249
|
-
Use get_workflow_status
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
This shows:
|
|
253
|
-
- Current task description
|
|
254
|
-
- Active phase (implementation, testing, documentation, etc.)
|
|
255
|
-
- Completed steps
|
|
256
|
-
- Next required step
|
|
257
|
-
|
|
258
|
-
## Viewing History
|
|
259
|
-
|
|
260
|
-
See your completed tasks:
|
|
261
|
-
|
|
262
|
-
```
|
|
263
|
-
Use view_history:
|
|
264
|
-
- limit: 10
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
This displays your recent workflow completions.
|
|
268
|
-
|
|
269
|
-
## Next Steps
|
|
270
|
-
|
|
271
|
-
- Read [EXAMPLES.md](./EXAMPLES.md) for detailed real-world examples
|
|
272
|
-
- Check [WORKFLOW-TEMPLATES.md](./WORKFLOW-TEMPLATES.md) for ready-to-use templates
|
|
273
|
-
- See [TROUBLESHOOTING.md](./TROUBLESHOOTING.md) if you encounter issues
|
|
274
|
-
|
|
275
|
-
## Tips for Success
|
|
276
|
-
|
|
277
|
-
1. **Always start with `start_task`** - This clarifies your intention
|
|
278
|
-
2. **Never skip tests** - They're mandatory for production code
|
|
279
|
-
3. **Use conventional commit messages** - e.g., `feat:`, `fix:`, `docs:`
|
|
280
|
-
4. **Keep tasks focused** - One feature/bugfix per workflow
|
|
281
|
-
5. **Check status frequently** - Use `get_workflow_status` to stay on track
|
|
282
|
-
6. **Review history** - Learn from your past workflows
|
|
283
|
-
|
|
284
|
-
## Getting Help
|
|
285
|
-
|
|
286
|
-
- **Documentation:** [Main README](../../README.md)
|
|
287
|
-
- **GitHub Issues:** [Report bugs or request features](https://github.com/programinglive/dev-workflow-mcp-server/issues)
|
|
288
|
-
- **Troubleshooting:** [Common issues and solutions](./TROUBLESHOOTING.md)
|
|
289
|
-
|
|
290
|
-
---
|
|
291
|
-
|
|
292
|
-
**Ready to enforce development discipline with Antigravity? Start your first workflow now!** 🚀
|
|
1
|
+
# Getting Started with Dev-Workflow MCP Server in Antigravity
|
|
2
|
+
|
|
3
|
+
This guide will help you set up and use the dev-workflow MCP server in the Antigravity text editor.
|
|
4
|
+
|
|
5
|
+
## What is Dev-Workflow MCP Server?
|
|
6
|
+
|
|
7
|
+
The dev-workflow MCP server is a development discipline enforcer that guides you through proper software development workflows. It ensures you:
|
|
8
|
+
|
|
9
|
+
- ✅ Start with a clear task description
|
|
10
|
+
- ✅ Write tests for your changes
|
|
11
|
+
- ✅ Run tests (and block commits if they fail)
|
|
12
|
+
- ✅ Document your work
|
|
13
|
+
- ✅ Follow a structured commit and release process
|
|
14
|
+
- ✅ Track your development history
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
- **Node.js** (v18 or later)
|
|
19
|
+
- **Antigravity** text editor
|
|
20
|
+
- **Git** installed and configured
|
|
21
|
+
- Basic understanding of terminal commands
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
### Option 1: Install in Your Project (Recommended)
|
|
26
|
+
|
|
27
|
+
This creates a project-specific workflow state:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cd your-project
|
|
31
|
+
npm install @programinglive/dev-workflow-mcp-server
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
This automatically creates `.state/workflow-state.json` in your project root.
|
|
35
|
+
|
|
36
|
+
### Option 2: Install from Source
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone https://github.com/programinglive/dev-workflow-mcp-server.git
|
|
40
|
+
cd dev-workflow-mcp-server
|
|
41
|
+
npm install
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Configuration in Antigravity
|
|
45
|
+
|
|
46
|
+
Antigravity uses an MCP configuration file located at:
|
|
47
|
+
|
|
48
|
+
**Windows:** `%APPDATA%\Antigravity\mcp_config.json` or `C:\Users\<USERNAME>\.gemini\antigravity\mcp_config.json`
|
|
49
|
+
|
|
50
|
+
**macOS:** `~/Library/Application Support/Antigravity/mcp_config.json`
|
|
51
|
+
|
|
52
|
+
**Linux:** `~/.config/antigravity/mcp_config.json`
|
|
53
|
+
|
|
54
|
+
### Configuration File
|
|
55
|
+
|
|
56
|
+
Create or edit the `mcp_config.json` file:
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"mcpServers": {
|
|
61
|
+
"dev-workflow": {
|
|
62
|
+
"command": "node",
|
|
63
|
+
"args": [
|
|
64
|
+
"d:\\code\\dev-workflow-mcp-server\\index.js"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Important Notes:**
|
|
72
|
+
- Use **absolute paths** to `index.js`
|
|
73
|
+
- On Windows, use **escaped backslashes** (`\\`) in JSON
|
|
74
|
+
- Restart Antigravity after editing the configuration
|
|
75
|
+
|
|
76
|
+
### Verify Installation
|
|
77
|
+
|
|
78
|
+
After restarting Antigravity, you should see dev-workflow tools available. You can verify by:
|
|
79
|
+
|
|
80
|
+
1. Opening Antigravity
|
|
81
|
+
2. Checking if MCP tools like `start_task`, `get_workflow_status` are available
|
|
82
|
+
3. Running `get_workflow_status` to see the initial state
|
|
83
|
+
|
|
84
|
+
## Your First Workflow
|
|
85
|
+
|
|
86
|
+
Let's walk through a complete development workflow:
|
|
87
|
+
|
|
88
|
+
### 1. Start a New Task
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
Use start_task to begin:
|
|
92
|
+
- description: "Add header component to landing page"
|
|
93
|
+
- type: "feature"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The MCP server responds with your task ID and current phase.
|
|
97
|
+
|
|
98
|
+
### 2. Write Your Code
|
|
99
|
+
|
|
100
|
+
Implement your feature as you normally would. The workflow doesn't interfere with your coding.
|
|
101
|
+
|
|
102
|
+
### 3. Mark as Fixed
|
|
103
|
+
|
|
104
|
+
Once you've completed the implementation:
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
Use mark_bug_fixed:
|
|
108
|
+
- summary: "Header component with logo and navigation menu"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### 4. Create Tests
|
|
112
|
+
|
|
113
|
+
The server will remind you to create tests. Write your tests, then:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
Use create_tests (no parameters needed)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### 5. Run Tests
|
|
120
|
+
|
|
121
|
+
Execute your test suite and record the results:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
Use run_tests:
|
|
125
|
+
- passed: true
|
|
126
|
+
- testCommand: "npm test"
|
|
127
|
+
- details: "All 25 tests passed"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
> **Important:** If tests fail, the workflow will block you from proceeding!
|
|
131
|
+
|
|
132
|
+
### 6. Create Documentation
|
|
133
|
+
|
|
134
|
+
Update your documentation (README, inline comments, etc.):
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
Use create_documentation:
|
|
138
|
+
- documentationType: "README"
|
|
139
|
+
- summary: "Added header component documentation and usage examples"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### 7. Commit and Push
|
|
143
|
+
|
|
144
|
+
The server will automatically stage, commit, and push your changes:
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
Use commit_and_push:
|
|
148
|
+
- commitMessage: "feat: add header component with navigation"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The branch is auto-detected (main or master).
|
|
152
|
+
|
|
153
|
+
### 8. Perform Release
|
|
154
|
+
|
|
155
|
+
Record your release:
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
Use perform_release:
|
|
159
|
+
- command: "npm run release:patch"
|
|
160
|
+
- notes: "Released header component"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### 9. Complete Task
|
|
164
|
+
|
|
165
|
+
Finally, mark the task as complete:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
Use complete_task:
|
|
169
|
+
- commitMessage: "feat: add header component with navigation"
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Antigravity vs. Windsurf
|
|
173
|
+
|
|
174
|
+
### Key Differences
|
|
175
|
+
|
|
176
|
+
| Feature | Antigravity | Windsurf |
|
|
177
|
+
|---------|-------------|----------|
|
|
178
|
+
| **Configuration** | `mcp_config.json` in `.gemini` | `config.json` in app data |
|
|
179
|
+
| **Tool Invocation** | Direct MCP tool calls | May use different interfaces |
|
|
180
|
+
| **Workflow State** | Per-user isolation with `DEV_WORKFLOW_USER_ID` | Shared state |
|
|
181
|
+
| **Path Format** | Windows requires `\\` escaping | Same |
|
|
182
|
+
|
|
183
|
+
### Avoiding Conflicts
|
|
184
|
+
|
|
185
|
+
If you use both Antigravity and Windsurf:
|
|
186
|
+
|
|
187
|
+
1. **Use separate user IDs** to isolate workflow states:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# In Antigravity MCP config, add environment variable
|
|
191
|
+
export DEV_WORKFLOW_USER_ID=antigravity-user
|
|
192
|
+
|
|
193
|
+
# In Windsurf, use different ID
|
|
194
|
+
export DEV_WORKFLOW_USER_ID=windsurf-user
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
2. **Don't run both simultaneously** on the same project to avoid state conflicts
|
|
198
|
+
|
|
199
|
+
3. **Use project-specific installations** to keep states isolated per project
|
|
200
|
+
|
|
201
|
+
## Common Workflows
|
|
202
|
+
|
|
203
|
+
### Quick Feature Development
|
|
204
|
+
|
|
205
|
+
For simple features, use `run_full_workflow`:
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
Use run_full_workflow with:
|
|
209
|
+
- summary: "Add contact form"
|
|
210
|
+
- testCommand: "npm test"
|
|
211
|
+
- documentationType: "README"
|
|
212
|
+
- documentationSummary: "Added contact form docs"
|
|
213
|
+
- commitMessage: "feat: add contact form"
|
|
214
|
+
- releaseCommand: "npm run release:minor"
|
|
215
|
+
- testsPassed: true
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
This executes all workflow steps in one go!
|
|
219
|
+
|
|
220
|
+
### Bug Fix Workflow
|
|
221
|
+
|
|
222
|
+
1. `start_task` with type "bugfix"
|
|
223
|
+
2. Fix the bug
|
|
224
|
+
3. `mark_bug_fixed`
|
|
225
|
+
4. Create regression tests
|
|
226
|
+
5. `create_tests`
|
|
227
|
+
6. `run_tests`
|
|
228
|
+
7. `create_documentation` (changelog)
|
|
229
|
+
8. `commit_and_push`
|
|
230
|
+
9. `perform_release`
|
|
231
|
+
10. `complete_task`
|
|
232
|
+
|
|
233
|
+
### When Tests Can't Be Automated
|
|
234
|
+
|
|
235
|
+
Sometimes automated tests aren't feasible (e.g., manual UI testing):
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
Use skip_tests:
|
|
239
|
+
- reason: "Mobile device testing requires manual QA on physical devices"
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
This flags the task for manual verification but allows the workflow to continue.
|
|
243
|
+
|
|
244
|
+
## Checking Your Status
|
|
245
|
+
|
|
246
|
+
At any time, check where you are:
|
|
247
|
+
|
|
248
|
+
```
|
|
249
|
+
Use get_workflow_status
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
This shows:
|
|
253
|
+
- Current task description
|
|
254
|
+
- Active phase (implementation, testing, documentation, etc.)
|
|
255
|
+
- Completed steps
|
|
256
|
+
- Next required step
|
|
257
|
+
|
|
258
|
+
## Viewing History
|
|
259
|
+
|
|
260
|
+
See your completed tasks:
|
|
261
|
+
|
|
262
|
+
```
|
|
263
|
+
Use view_history:
|
|
264
|
+
- limit: 10
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
This displays your recent workflow completions.
|
|
268
|
+
|
|
269
|
+
## Next Steps
|
|
270
|
+
|
|
271
|
+
- Read [EXAMPLES.md](./EXAMPLES.md) for detailed real-world examples
|
|
272
|
+
- Check [WORKFLOW-TEMPLATES.md](./WORKFLOW-TEMPLATES.md) for ready-to-use templates
|
|
273
|
+
- See [TROUBLESHOOTING.md](./TROUBLESHOOTING.md) if you encounter issues
|
|
274
|
+
|
|
275
|
+
## Tips for Success
|
|
276
|
+
|
|
277
|
+
1. **Always start with `start_task`** - This clarifies your intention
|
|
278
|
+
2. **Never skip tests** - They're mandatory for production code
|
|
279
|
+
3. **Use conventional commit messages** - e.g., `feat:`, `fix:`, `docs:`
|
|
280
|
+
4. **Keep tasks focused** - One feature/bugfix per workflow
|
|
281
|
+
5. **Check status frequently** - Use `get_workflow_status` to stay on track
|
|
282
|
+
6. **Review history** - Learn from your past workflows
|
|
283
|
+
|
|
284
|
+
## Getting Help
|
|
285
|
+
|
|
286
|
+
- **Documentation:** [Main README](../../README.md)
|
|
287
|
+
- **GitHub Issues:** [Report bugs or request features](https://github.com/programinglive/dev-workflow-mcp-server/issues)
|
|
288
|
+
- **Troubleshooting:** [Common issues and solutions](./TROUBLESHOOTING.md)
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
**Ready to enforce development discipline with Antigravity? Start your first workflow now!** 🚀
|