@programinglive/dev-workflow-mcp-server 1.8.1 → 1.10.0

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 (114) hide show
  1. package/.env.example +21 -1
  2. package/AGENTS.md +25 -0
  3. package/README.md +372 -649
  4. package/factory-client.js +554 -0
  5. package/git-facade.js +35 -0
  6. package/index.js +9 -34
  7. package/package.json +21 -20
  8. package/scripts/bootstrap-unix.sh +55 -0
  9. package/scripts/bootstrap-windows.ps1 +75 -0
  10. package/scripts/install-husky.js +43 -0
  11. package/scripts/setup-stack.js +436 -0
  12. package/scripts/setup-test-dbs.sh +61 -0
  13. package/scripts/test-db-adapters.sh +71 -0
  14. package/scripts/verify-bundle.mjs +92 -0
  15. package/tools/definitions.js +143 -0
  16. package/tools/handler-modules/commit-handlers.js +2 -1
  17. package/tools/handler-modules/factory-handlers.js +276 -0
  18. package/tools/handler-modules/index.js +24 -7
  19. package/tools/handler-modules/shared.js +7 -41
  20. package/tools/handler-modules/status-handlers.js +25 -3
  21. package/tools/handler-modules/workflow-handlers.js +57 -10
  22. package/vite.config.js +6 -0
  23. package/workflow-state.js +176 -2
  24. package/.agent/workflows/dev-workflow-bugfix.md +0 -250
  25. package/.agent/workflows/dev-workflow-feature.md +0 -201
  26. package/.agent/workflows/dev-workflow-full-cycle.md +0 -400
  27. package/.agent/workflows/dev-workflow-refactor.md +0 -238
  28. package/.env.production +0 -16
  29. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -34
  30. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -25
  31. package/.github/pull_request_template.md +0 -22
  32. package/.github/workflows/github-release.yml +0 -131
  33. package/.husky/commit-msg +0 -3
  34. package/.husky/pre-commit +0 -2
  35. package/CHANGELOG.md +0 -1145
  36. package/docs/GCP_DEPLOYMENT.md +0 -298
  37. package/docs/NETLIFY_DEPLOYMENT.md +0 -125
  38. package/docs/PLESK_DEPLOYMENT.md +0 -170
  39. package/docs/PRD.md +0 -86
  40. package/docs/WORKFLOW-BEST-PRACTICES.md +0 -58
  41. package/docs/antigravity/EXAMPLES.md +0 -535
  42. package/docs/antigravity/GETTING-STARTED.md +0 -292
  43. package/docs/antigravity/TROUBLESHOOTING.md +0 -742
  44. package/docs/antigravity/WALKTHROUGH.md +0 -25
  45. package/docs/antigravity/WORKFLOW-TEMPLATES.md +0 -670
  46. package/docs/release-notes/RELEASE_NOTES.md +0 -524
  47. package/docs/web-dashboard.md +0 -175
  48. package/scripts/test-auth-flow.js +0 -75
  49. package/tailwind.config.js +0 -8
  50. package/tests/build.test.js +0 -74
  51. package/tests/db-adapters.test.js +0 -108
  52. package/tests/env-support.test.js +0 -46
  53. package/tests/exec.test.js +0 -35
  54. package/tests/handlers-commit.test.js +0 -174
  55. package/tests/handlers-release.test.js +0 -212
  56. package/tests/handlers-workflow.test.js +0 -68
  57. package/tests/handlers.test.js +0 -1142
  58. package/tests/hello-world.test.js +0 -13
  59. package/tests/mcpRegistry.test.js +0 -65
  60. package/tests/patch-release.test.js +0 -7
  61. package/tests/release-wrapper.test.js +0 -107
  62. package/tests/startup-resilience.test.js +0 -73
  63. package/tests/test-helpers.js +0 -50
  64. package/tests/workflowState.test.js +0 -520
  65. package/web/Dockerfile.api +0 -25
  66. package/web/README.md +0 -133
  67. package/web/__tests__/api/workflow-history.test.js +0 -63
  68. package/web/api-server.js +0 -211
  69. package/web/app/docs/page.tsx +0 -202
  70. package/web/app/favicon.ico +0 -0
  71. package/web/app/globals.css +0 -91
  72. package/web/app/history/page.tsx +0 -220
  73. package/web/app/layout.tsx +0 -39
  74. package/web/app/login/page.tsx +0 -142
  75. package/web/app/page.tsx +0 -13
  76. package/web/components/ApiReference.tsx +0 -20
  77. package/web/components/Features.tsx +0 -61
  78. package/web/components/Footer.tsx +0 -9
  79. package/web/components/Hero.tsx +0 -96
  80. package/web/components/History.tsx +0 -175
  81. package/web/components/Navbar.tsx +0 -208
  82. package/web/components/Terminal.tsx +0 -114
  83. package/web/components/ThemeProvider.tsx +0 -58
  84. package/web/eslint.config.mjs +0 -18
  85. package/web/lib/api-client.ts +0 -123
  86. package/web/lib/auth.js +0 -75
  87. package/web/lib/db.js +0 -131
  88. package/web/lib/docs.js +0 -73
  89. package/web/middleware/auth.js +0 -26
  90. package/web/netlify.toml +0 -8
  91. package/web/next.config.ts +0 -19
  92. package/web/package-lock.json +0 -10911
  93. package/web/package.json +0 -42
  94. package/web/postcss.config.mjs +0 -9
  95. package/web/public/assets/android-chrome-192x192.png +0 -0
  96. package/web/public/assets/android-chrome-512x512.png +0 -0
  97. package/web/public/assets/apple-touch-icon.png +0 -0
  98. package/web/public/assets/favicon-16x16.png +0 -0
  99. package/web/public/assets/favicon-32x32.png +0 -0
  100. package/web/public/assets/favicon.ico +0 -0
  101. package/web/public/assets/favicon.png +0 -0
  102. package/web/public/assets/logo.png +0 -0
  103. package/web/public/assets/og-preview.png +0 -0
  104. package/web/public/assets/site.webmanifest +0 -1
  105. package/web/public/file.svg +0 -1
  106. package/web/public/globe.svg +0 -1
  107. package/web/public/next.svg +0 -1
  108. package/web/public/vercel.svg +0 -1
  109. package/web/public/window.svg +0 -1
  110. package/web/scripts/db-query-history.js +0 -120
  111. package/web/scripts/smoke-test.js +0 -30
  112. package/web/server.js +0 -184
  113. package/web/tailwind.config.ts +0 -20
  114. package/web/tsconfig.json +0 -42
@@ -1,292 +0,0 @@
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!** 🚀