@programinglive/dev-workflow-mcp-server 1.5.0 → 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.
Files changed (99) hide show
  1. package/.agent/workflows/dev-workflow-bugfix.md +250 -250
  2. package/.agent/workflows/dev-workflow-feature.md +201 -201
  3. package/.agent/workflows/dev-workflow-full-cycle.md +400 -400
  4. package/.agent/workflows/dev-workflow-refactor.md +238 -238
  5. package/.github/ISSUE_TEMPLATE/bug_report.md +34 -34
  6. package/.github/ISSUE_TEMPLATE/feature_request.md +25 -25
  7. package/.github/pull_request_template.md +22 -22
  8. package/.github/workflows/npm-publish.yml +50 -47
  9. package/.husky/commit-msg +0 -0
  10. package/CHANGELOG.md +750 -491
  11. package/CODE_OF_CONDUCT.md +79 -79
  12. package/CONTRIBUTING.md +60 -60
  13. package/LICENSE +21 -21
  14. package/README.md +632 -609
  15. package/SECURITY.md +20 -20
  16. package/db/index.js +204 -204
  17. package/docs/NETLIFY_DEPLOYMENT.md +125 -0
  18. package/docs/PLESK_DEPLOYMENT.md +170 -0
  19. package/docs/WORKFLOW-BEST-PRACTICES.md +58 -0
  20. package/docs/antigravity/EXAMPLES.md +535 -535
  21. package/docs/antigravity/GETTING-STARTED.md +292 -292
  22. package/docs/antigravity/TROUBLESHOOTING.md +742 -742
  23. package/docs/antigravity/WALKTHROUGH.md +25 -25
  24. package/docs/antigravity/WORKFLOW-TEMPLATES.md +670 -670
  25. package/docs/product/PRD.md +67 -64
  26. package/docs/release-notes/RELEASE_NOTES.md +226 -132
  27. package/docs/web-dashboard.md +175 -163
  28. package/exec.js +49 -49
  29. package/index.js +279 -279
  30. package/install.js +73 -73
  31. package/package.json +11 -9
  32. package/release-wrapper.js +192 -157
  33. package/scripts/build-docs.js +63 -63
  34. package/scripts/hello-world.js +1 -1
  35. package/scripts/release.cjs +252 -252
  36. package/scripts/update-release-notes.cjs +178 -182
  37. package/server.json +23 -0
  38. package/tailwind.config.js +8 -10
  39. package/tests/build.test.js +83 -48
  40. package/tests/exec.test.js +35 -35
  41. package/tests/handlers.test.js +1058 -980
  42. package/tests/hello-world.test.js +13 -13
  43. package/tests/mcpRegistry.test.js +65 -0
  44. package/tests/release-wrapper.test.js +107 -105
  45. package/tests/workflowState.test.js +505 -502
  46. package/tools/definitions.js +332 -332
  47. package/tools/handlers.js +1019 -1019
  48. package/vite.config.js +43 -43
  49. package/vite.web.config.js +23 -0
  50. package/web/README.md +36 -0
  51. package/web/app/docs/page.tsx +202 -0
  52. package/web/app/favicon.ico +0 -0
  53. package/web/app/globals.css +91 -0
  54. package/web/app/layout.tsx +36 -0
  55. package/web/app/page.tsx +15 -0
  56. package/web/components/ApiReference.tsx +20 -0
  57. package/web/components/Features.tsx +61 -0
  58. package/web/components/Footer.tsx +9 -0
  59. package/web/components/Hero.tsx +96 -0
  60. package/web/components/History.tsx +143 -0
  61. package/web/components/Navbar.tsx +64 -0
  62. package/web/components/Terminal.tsx +114 -0
  63. package/web/eslint.config.mjs +18 -0
  64. package/web/lib/db.js +131 -0
  65. package/web/lib/docs.js +73 -0
  66. package/web/netlify.toml +3 -0
  67. package/web/next.config.ts +12 -0
  68. package/web/package-lock.json +6560 -0
  69. package/web/package.json +28 -0
  70. package/web/postcss.config.mjs +9 -0
  71. package/web/public/assets/android-chrome-192x192.png +0 -0
  72. package/web/public/assets/android-chrome-512x512.png +0 -0
  73. package/web/public/assets/apple-touch-icon.png +0 -0
  74. package/web/public/assets/favicon-16x16.png +0 -0
  75. package/web/public/assets/favicon-32x32.png +0 -0
  76. package/web/public/assets/favicon.ico +0 -0
  77. package/web/public/assets/favicon.png +0 -0
  78. package/web/public/assets/logo.png +0 -0
  79. package/web/public/assets/og-preview.png +0 -0
  80. package/web/public/assets/site.webmanifest +1 -0
  81. package/web/public/file.svg +1 -0
  82. package/web/public/globe.svg +1 -0
  83. package/web/public/next.svg +1 -0
  84. package/web/public/vercel.svg +1 -0
  85. package/web/public/window.svg +1 -0
  86. package/web/server.js +31 -159
  87. package/web/tailwind.config.ts +19 -0
  88. package/web/tsconfig.json +42 -0
  89. package/workflow-state.js +612 -626
  90. package/dist/docs/EXAMPLES.html +0 -411
  91. package/dist/docs/GETTING-STARTED.html +0 -233
  92. package/dist/docs/README.html +0 -535
  93. package/dist/docs/RELEASE_NOTES.html +0 -167
  94. package/dist/docs/TROUBLESHOOTING.html +0 -542
  95. package/dist/docs/WORKFLOW-TEMPLATES.html +0 -591
  96. package/dist/docs/web-dashboard.html +0 -158
  97. package/web/public/index.html +0 -1046
  98. package/web/public/input.css +0 -3
  99. package/web/public/output.css +0 -1
@@ -1,742 +1,742 @@
1
- # Troubleshooting Dev-Workflow MCP Server in Antigravity
2
-
3
- Common issues and solutions when using dev-workflow MCP server with Antigravity.
4
-
5
- ## Table of Contents
6
-
7
- - [MCP Server Not Appearing](#mcp-server-not-appearing)
8
- - [Workflow State Conflicts](#workflow-state-conflicts)
9
- - [Git Conflicts with Automated Commits](#git-conflicts-with-automated-commits)
10
- - [Path Resolution Issues on Windows](#path-resolution-issues-on-windows)
11
- - [SQLite Database Locking](#sqlite-database-locking)
12
- - [Multi-User Workflow Isolation Problems](#multi-user-workflow-isolation-problems)
13
- - [Windsurf Editor Conflicts](#windsurf-editor-conflicts)
14
- - [Tests Not Running](#tests-not-running)
15
- - [Commit and Push Failures](#commit-and-push-failures)
16
-
17
- ---
18
-
19
- ## MCP Server Not Appearing
20
-
21
- ### Symptoms
22
- - Dev-workflow tools not visible in Antigravity
23
- - MCP server commands not available
24
- - No response when trying to use workflow tools
25
-
26
- ### Solutions
27
-
28
- #### 1. Verify Configuration Path
29
-
30
- Check that `mcp_config.json` is in the correct location:
31
-
32
- **Windows:**
33
- ```powershell
34
- # Check if file exists
35
- Test-Path "C:\Users\$env:USERNAME\.gemini\antigravity\mcp_config.json"
36
-
37
- # Or alternative location
38
- Test-Path "$env:APPDATA\Antigravity\mcp_config.json"
39
- ```
40
-
41
- **macOS/Linux:**
42
- ```bash
43
- # Check config file
44
- ls -la ~/.gemini/antigravity/mcp_config.json
45
- # or
46
- ls -la ~/Library/Application\ Support/Antigravity/mcp_config.json
47
- ```
48
-
49
- #### 2. Validate JSON Syntax
50
-
51
- Ensure `mcp_config.json` has valid JSON:
52
-
53
- ```json
54
- {
55
- "mcpServers": {
56
- "dev-workflow": {
57
- "command": "node",
58
- "args": [
59
- "d:\\code\\dev-workflow-mcp-server\\index.js"
60
- ]
61
- }
62
- }
63
- }
64
- ```
65
-
66
- Common mistakes:
67
- - ❌ Missing quotes around strings
68
- - ❌ Trailing commas
69
- - ❌ Single quotes instead of double quotes
70
- - ❌ Unescaped backslashes on Windows
71
-
72
- Use a JSON validator: `node -e "console.log(JSON.parse(require('fs').readFileSync('path/to/mcp_config.json')))"`
73
-
74
- #### 3. Check Node.js Path
75
-
76
- Verify Node.js is accessible:
77
-
78
- ```bash
79
- node --version
80
- ```
81
-
82
- If not found, specify full Node.js path in config:
83
-
84
- ```json
85
- {
86
- "mcpServers": {
87
- "dev-workflow": {
88
- "command": "C:\\Program Files\\nodejs\\node.exe",
89
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"]
90
- }
91
- }
92
- }
93
- ```
94
-
95
- #### 4. Verify Server Path
96
-
97
- Check that `index.js` exists:
98
-
99
- ```powershell
100
- # Windows
101
- Test-Path "d:\code\dev-workflow-mcp-server\index.js"
102
- ```
103
-
104
- ```bash
105
- # macOS/Linux
106
- ls -la /path/to/dev-workflow-mcp-server/index.js
107
- ```
108
-
109
- #### 5. Restart Antigravity
110
-
111
- After configuration changes, **fully restart Antigravity**:
112
- 1. Close all Antigravity windows
113
- 2. Quit from system tray if present
114
- 3. Reopen Antigravity
115
-
116
- #### 6. Check Server Logs
117
-
118
- Run the server manually to see errors:
119
-
120
- ```bash
121
- cd d:\code\dev-workflow-mcp-server
122
- node index.js
123
- ```
124
-
125
- Look for error messages. Common issues:
126
- - Missing dependencies (`npm install`)
127
- - Permission errors
128
- - Port conflicts
129
-
130
- ---
131
-
132
- ## Workflow State Conflicts
133
-
134
- ### Symptoms
135
- - Workflow shows incorrect phase
136
- - History from different projects appearing
137
- - State not persisting between sessions
138
-
139
- ### Solutions
140
-
141
- #### 1. Check State File Location
142
-
143
- Verify state file exists:
144
-
145
- ```bash
146
- # In your project directory
147
- ls -la .state/workflow-state.json
148
- ```
149
-
150
- If missing, the server creates it on first use.
151
-
152
- #### 2. Reset Workflow State
153
-
154
- If state is corrupted:
155
-
156
- ```bash
157
- # Backup existing state
158
- cp .state/workflow-state.json .state/workflow-state.json.backup
159
-
160
- # Start fresh (server recreates on next use)
161
- rm .state/workflow-state.json
162
- ```
163
-
164
- Re-run `get_workflow_status` to initialize.
165
-
166
- #### 3. Per-Project Isolation
167
-
168
- Ensure each project has its own state:
169
-
170
- ```bash
171
- # Project A
172
- cd ~/projects/app-frontend
173
- npm install @programinglive/dev-workflow-mcp-server
174
- # Creates .state/ in app-frontend/
175
-
176
- # Project B
177
- cd ~/projects/app-backend
178
- npm install @programinglive/dev-workflow-mcp-server
179
- # Creates .state/ in app-backend/
180
- ```
181
-
182
- #### 4. Custom State File Path
183
-
184
- Override state location with environment variable:
185
-
186
- ```json
187
- {
188
- "mcpServers": {
189
- "dev-workflow": {
190
- "command": "node",
191
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
192
- "env": {
193
- "DEV_WORKFLOW_STATE_FILE": "d:\\projects\\my-app\\.state\\workflow-state.json"
194
- }
195
- }
196
- }
197
- }
198
- ```
199
-
200
- ---
201
-
202
- ## Git Conflicts with Automated Commits
203
-
204
- ### Symptoms
205
- - `commit_and_push` fails with merge conflicts
206
- - Diverged branch errors
207
- - Uncommitted changes blocking workflow
208
-
209
- ### Solutions
210
-
211
- #### 1. Pull Before Committing
212
-
213
- Always pull latest changes first:
214
-
215
- ```bash
216
- git pull origin main
217
- ```
218
-
219
- Then run workflow commands.
220
-
221
- #### 2. Resolve Conflicts Manually
222
-
223
- If conflicts occur:
224
-
225
- ```bash
226
- # See conflicts
227
- git status
228
-
229
- # Resolve conflicts in files
230
- # Then:
231
- git add .
232
- git commit -m "resolve conflicts"
233
- git push
234
- ```
235
-
236
- Then resume workflow with `get_workflow_status`.
237
-
238
- #### 3. Use Correct Branch
239
-
240
- Ensure you're on the right branch:
241
-
242
- ```bash
243
- git branch # Check current branch
244
- git checkout your-feature-branch
245
- ```
246
-
247
- Then specify in workflow:
248
-
249
- ```
250
- commit_and_push:
251
- commitMessage: "feat: add feature"
252
- branch: "your-feature-branch"
253
- ```
254
-
255
- #### 4. Stash Uncommitted Changes
256
-
257
- If you have uncommitted changes blocking the workflow:
258
-
259
- ```bash
260
- # Stash changes
261
- git stash
262
-
263
- # Run workflow
264
- # ...
265
-
266
- # Restore changes
267
- git stash pop
268
- ```
269
-
270
- ---
271
-
272
- ## Path Resolution Issues on Windows
273
-
274
- ### Symptoms
275
- - "Cannot find module" errors
276
- - Path not found errors
277
- - Server fails to start
278
-
279
- ### Solutions
280
-
281
- #### 1. Use Escaped Backslashes
282
-
283
- In JSON, escape backslashes:
284
-
285
- ```json
286
- {
287
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"]
288
- }
289
- ```
290
-
291
- Not:
292
- ```json
293
- {
294
- "args": ["d:\code\dev-workflow-mcp-server\index.js"] // ❌ Wrong
295
- }
296
- ```
297
-
298
- #### 2. Use Forward Slashes
299
-
300
- Alternative: use forward slashes (works on Windows):
301
-
302
- ```json
303
- {
304
- "args": ["d:/code/dev-workflow-mcp-server/index.js"]
305
- }
306
- ```
307
-
308
- #### 3. Use Absolute Paths
309
-
310
- Always use full paths, not relative:
311
-
312
- ```json
313
- {
314
- "args": ["C:\\Users\\Username\\Projects\\dev-workflow-mcp-server\\index.js"]
315
- }
316
- ```
317
-
318
- #### 4. Avoid Spaces in Paths
319
-
320
- If path has spaces, ensure proper escaping:
321
-
322
- ```json
323
- {
324
- "args": ["C:\\Program Files\\My Project\\dev-workflow-mcp-server\\index.js"]
325
- }
326
- ```
327
-
328
- Or move to path without spaces.
329
-
330
- ---
331
-
332
- ## SQLite Database Locking
333
-
334
- ### Symptoms
335
- - "Database is locked" errors
336
- - Cannot save workflow state
337
- - Timeouts when updating workflow
338
-
339
- ### Solutions
340
-
341
- #### 1. Close Other Processes
342
-
343
- Ensure no other processes have the database open:
344
-
345
- ```powershell
346
- # Windows: Find processes with file open
347
- handle .state\users\
348
-
349
- # macOS/Linux
350
- lsof .state/users/*/workflow-state.db
351
- ```
352
-
353
- Close conflicting processes.
354
-
355
- #### 2. One MCP Server Per User
356
-
357
- Don't run multiple MCP server instances for same user:
358
-
359
- - Close other editors using the MCP server
360
- - Ensure only one Antigravity instance is active
361
-
362
- #### 3. Use Different User IDs
363
-
364
- If multiple users/editors need simultaneous access:
365
-
366
- ```json
367
- {
368
- "mcpServers": {
369
- "dev-workflow": {
370
- "command": "node",
371
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
372
- "env": {
373
- "DEV_WORKFLOW_USER_ID": "antigravity-user"
374
- }
375
- }
376
- }
377
- }
378
- ```
379
-
380
- In Windsurf:
381
- ```json
382
- {
383
- "env": {
384
- "DEV_WORKFLOW_USER_ID": "windsurf-user"
385
- }
386
- }
387
- ```
388
-
389
- #### 4. Repair Database
390
-
391
- If database is corrupted:
392
-
393
- ```bash
394
- cd .state/users/your-user-id/
395
-
396
- # Backup
397
- cp workflow-state.db workflow-state.db.backup
398
-
399
- # Check integrity
400
- sqlite3 workflow-state.db "PRAGMA integrity_check;"
401
-
402
- # If corrupted, start fresh
403
- rm workflow-state.db
404
- ```
405
-
406
- ---
407
-
408
- ## Multi-User Workflow Isolation Problems
409
-
410
- ### Symptoms
411
- - Users see each other's workflows
412
- - History mixing between developers
413
- - State conflicts on shared machines
414
-
415
- ### Solutions
416
-
417
- #### 1. Set Unique User IDs
418
-
419
- Each developer should have unique `DEV_WORKFLOW_USER_ID`:
420
-
421
- **Developer Alice:**
422
- ```json
423
- {
424
- "mcpServers": {
425
- "dev-workflow": {
426
- "command": "node",
427
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
428
- "env": {
429
- "DEV_WORKFLOW_USER_ID": "alice"
430
- }
431
- }
432
- }
433
- }
434
- ```
435
-
436
- **Developer Bob:**
437
- ```json
438
- {
439
- "env": {
440
- "DEV_WORKFLOW_USER_ID": "bob"
441
- }
442
- }
443
- ```
444
-
445
- #### 2. Verify User Isolation
446
-
447
- Check that separate DB files exist:
448
-
449
- ```bash
450
- ls -la .state/users/
451
- # Should see:
452
- # alice/workflow-state.db
453
- # bob/workflow-state.db
454
- ```
455
-
456
- #### 3. View Specific User History
457
-
458
- In web dashboard:
459
-
460
- ```bash
461
- npm run web
462
- # Open: http://localhost:3111?user=alice
463
- # Or: http://localhost:3111?user=bob
464
- ```
465
-
466
- ---
467
-
468
- ## Windsurf Editor Conflicts
469
-
470
- ### Symptoms
471
- - Workflow state corrupted when switching between Antigravity and Windsurf
472
- - Both editors showing different workflow phases
473
- - SQLite locking errors
474
-
475
- ### Root Cause
476
-
477
- Both editors try to use the same workflow state file simultaneously.
478
-
479
- ### Solutions
480
-
481
- #### Solution 1: Use Different User IDs (Recommended)
482
-
483
- Most reliable approach - complete isolation:
484
-
485
- **Antigravity config:**
486
- ```json
487
- {
488
- "mcpServers": {
489
- "dev-workflow": {
490
- "command": "node",
491
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
492
- "env": {
493
- "DEV_WORKFLOW_USER_ID": "antigravity"
494
- }
495
- }
496
- }
497
- }
498
- ```
499
-
500
- **Windsurf config:**
501
- ```json
502
- {
503
- "mcpServers": {
504
- "dev-workflow": {
505
- "command": "node",
506
- "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
507
- "env": {
508
- "DEV_WORKFLOW_USER_ID": "windsurf"
509
- }
510
- }
511
- }
512
- }
513
- ```
514
-
515
- This creates:
516
- - `.state/users/antigravity/workflow-state.db` for Antigravity
517
- - `.state/users/windsurf/workflow-state.db` for Windsurf
518
-
519
- #### Solution 2: Use One Editor at a Time
520
-
521
- If you want shared state:
522
- 1. **Close Windsurf completely** before opening Antigravity
523
- 2. Or **close Antigravity** before opening Windsurf
524
- 3. Only ONE editor should access workflow at a time
525
-
526
- #### Solution 3: Separate Projects
527
-
528
- Use the MCP server in different projects:
529
-
530
- - Antigravity → Project A
531
- - Windsurf → Project B
532
-
533
- Each project has isolated `.state/` directory.
534
-
535
- #### Solution 4: Disable in One Editor
536
-
537
- Keep MCP server active in only one editor:
538
-
539
- Remove or comment out from one config:
540
-
541
- ```json
542
- {
543
- "mcpServers": {
544
- // "dev-workflow": { ... } // Disabled
545
- }
546
- }
547
- ```
548
-
549
- ---
550
-
551
- ## Tests Not Running
552
-
553
- ### Symptoms
554
- - `run_tests` accepts any input
555
- - Tests marked as passed but didn't actually run
556
- - No test output shown
557
-
558
- ### Explanation
559
-
560
- The MCP server **records** test results; it doesn't execute tests. You must run tests manually first.
561
-
562
- ### Solution
563
-
564
- #### 1. Run Tests Manually
565
-
566
- ```bash
567
- # Run your test suite
568
- npm test
569
- # or
570
- npm run test
571
- # or
572
- yarn test
573
- ```
574
-
575
- #### 2. Record Results
576
-
577
- Then record in workflow:
578
-
579
- ```
580
- run_tests:
581
- passed: true
582
- testCommand: "npm test"
583
- details: "127 tests passed"
584
- ```
585
-
586
- #### 3. Workflow Blocking
587
-
588
- The workflow **blocks commits if you record `passed: false`**:
589
-
590
- ```
591
- run_tests:
592
- passed: false
593
- testCommand: "npm test"
594
- details: "3 tests failed"
595
- ```
596
-
597
- Response:
598
- ```
599
- ❌ Tests FAILED!
600
- 🚫 Cannot proceed with failing tests
601
- ```
602
-
603
- Fix tests, re-run, then record:
604
-
605
- ```
606
- run_tests:
607
- passed: true
608
- testCommand: "npm test"
609
- details: "All 127 tests now pass"
610
- ```
611
-
612
- ---
613
-
614
- ## Commit and Push Failures
615
-
616
- ### Symptoms
617
- - `commit_and_push` fails
618
- - No changes committ push rejected
619
- - Authentication errors
620
-
621
- ### Solutions
622
-
623
- #### 1. Verify Git Configuration
624
-
625
- ```bash
626
- git config --list
627
-
628
- # Should have:
629
- # user.name=Your Name
630
- # user.email=your@email.com
631
- ```
632
-
633
- If missing:
634
- ```bash
635
- git config --global user.name "Your Name"
636
- git config --global user.email "your@email.com"
637
- ```
638
-
639
- #### 2. Ensure Changes Exist
640
-
641
- MCP server stages files with `git add .`. Verify changes:
642
-
643
- ```bash
644
- git status
645
- ```
646
-
647
- If no changes, the commit will fail.
648
-
649
- #### 3. Check Remote Configuration
650
-
651
- ```bash
652
- git remote -v
653
- ```
654
-
655
- Should show:
656
- ```
657
- origin https://github.com/user/repo.git (fetch)
658
- origin https://github.com/user/repo.git (push)
659
- ```
660
-
661
- If missing:
662
- ```bash
663
- git remote add origin https://github.com/user/repo.git
664
- ```
665
-
666
- #### 4. Authentication Issues
667
-
668
- **GitHub HTTPS:**
669
- ```bash
670
- # Use personal access token
671
- git config --global credential.helper store
672
- git push # Enter token when prompted
673
- ```
674
-
675
- **GitHub SSH:**
676
- ```bash
677
- # Verify SSH key
678
- ssh -T git@github.com
679
-
680
- # Change remote to SSH
681
- git remote set-url origin git@github.com:user/repo.git
682
- ```
683
-
684
- #### 5. Branch Protection
685
-
686
- If branch is protected:
687
- - Create a feature branch
688
- - Push to feature branch instead:
689
-
690
- ```
691
- commit_and_push:
692
- commitMessage: "feat: add feature"
693
- branch: "feature/my-feature"
694
- ```
695
-
696
- ---
697
-
698
- ## Getting More Help
699
-
700
- ### Enable Debug Logging
701
-
702
- Run server with debug output:
703
-
704
- ```bash
705
- NODE_ENV=development node index.js
706
- ```
707
-
708
- ### Check Server Health
709
-
710
- Test manually:
711
-
712
- ```bash
713
- cd dev-workflow-mcp-server
714
- node index.js
715
-
716
- # Type to test:
717
- # get_workflow_status
718
- ```
719
-
720
- ### Community Support
721
-
722
- - **GitHub Issues:** [Report bugs](https://github.com/programinglive/dev-workflow-mcp-server/issues)
723
- - **Discussions:** [Ask questions](https://github.com/programinglive/dev-workflow-mcp-server/discussions)
724
-
725
- ### Documentation
726
-
727
- - [Getting Started](./GETTING-STARTED.md)
728
- - [Examples](./EXAMPLES.md)
729
- - [Workflow Templates](./WORKFLOW-TEMPLATES.md)
730
- - [Main README](../../README.md)
731
-
732
- ---
733
-
734
- **Still having issues?** Open a GitHub issue with:
735
- 1. Your `mcp_config.json` (redact sensitive paths)
736
- 2. Error messages
737
- 3. Steps to reproduce
738
- 4. Antigravity version
739
- 5. Node.js version (`node --version`)
740
- 6. Operating system
741
-
742
- We're here to help! 🛠️
1
+ # Troubleshooting Dev-Workflow MCP Server in Antigravity
2
+
3
+ Common issues and solutions when using dev-workflow MCP server with Antigravity.
4
+
5
+ ## Table of Contents
6
+
7
+ - [MCP Server Not Appearing](#mcp-server-not-appearing)
8
+ - [Workflow State Conflicts](#workflow-state-conflicts)
9
+ - [Git Conflicts with Automated Commits](#git-conflicts-with-automated-commits)
10
+ - [Path Resolution Issues on Windows](#path-resolution-issues-on-windows)
11
+ - [SQLite Database Locking](#sqlite-database-locking)
12
+ - [Multi-User Workflow Isolation Problems](#multi-user-workflow-isolation-problems)
13
+ - [Windsurf Editor Conflicts](#windsurf-editor-conflicts)
14
+ - [Tests Not Running](#tests-not-running)
15
+ - [Commit and Push Failures](#commit-and-push-failures)
16
+
17
+ ---
18
+
19
+ ## MCP Server Not Appearing
20
+
21
+ ### Symptoms
22
+ - Dev-workflow tools not visible in Antigravity
23
+ - MCP server commands not available
24
+ - No response when trying to use workflow tools
25
+
26
+ ### Solutions
27
+
28
+ #### 1. Verify Configuration Path
29
+
30
+ Check that `mcp_config.json` is in the correct location:
31
+
32
+ **Windows:**
33
+ ```powershell
34
+ # Check if file exists
35
+ Test-Path "C:\Users\$env:USERNAME\.gemini\antigravity\mcp_config.json"
36
+
37
+ # Or alternative location
38
+ Test-Path "$env:APPDATA\Antigravity\mcp_config.json"
39
+ ```
40
+
41
+ **macOS/Linux:**
42
+ ```bash
43
+ # Check config file
44
+ ls -la ~/.gemini/antigravity/mcp_config.json
45
+ # or
46
+ ls -la ~/Library/Application\ Support/Antigravity/mcp_config.json
47
+ ```
48
+
49
+ #### 2. Validate JSON Syntax
50
+
51
+ Ensure `mcp_config.json` has valid JSON:
52
+
53
+ ```json
54
+ {
55
+ "mcpServers": {
56
+ "dev-workflow": {
57
+ "command": "node",
58
+ "args": [
59
+ "d:\\code\\dev-workflow-mcp-server\\index.js"
60
+ ]
61
+ }
62
+ }
63
+ }
64
+ ```
65
+
66
+ Common mistakes:
67
+ - ❌ Missing quotes around strings
68
+ - ❌ Trailing commas
69
+ - ❌ Single quotes instead of double quotes
70
+ - ❌ Unescaped backslashes on Windows
71
+
72
+ Use a JSON validator: `node -e "console.log(JSON.parse(require('fs').readFileSync('path/to/mcp_config.json')))"`
73
+
74
+ #### 3. Check Node.js Path
75
+
76
+ Verify Node.js is accessible:
77
+
78
+ ```bash
79
+ node --version
80
+ ```
81
+
82
+ If not found, specify full Node.js path in config:
83
+
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "dev-workflow": {
88
+ "command": "C:\\Program Files\\nodejs\\node.exe",
89
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"]
90
+ }
91
+ }
92
+ }
93
+ ```
94
+
95
+ #### 4. Verify Server Path
96
+
97
+ Check that `index.js` exists:
98
+
99
+ ```powershell
100
+ # Windows
101
+ Test-Path "d:\code\dev-workflow-mcp-server\index.js"
102
+ ```
103
+
104
+ ```bash
105
+ # macOS/Linux
106
+ ls -la /path/to/dev-workflow-mcp-server/index.js
107
+ ```
108
+
109
+ #### 5. Restart Antigravity
110
+
111
+ After configuration changes, **fully restart Antigravity**:
112
+ 1. Close all Antigravity windows
113
+ 2. Quit from system tray if present
114
+ 3. Reopen Antigravity
115
+
116
+ #### 6. Check Server Logs
117
+
118
+ Run the server manually to see errors:
119
+
120
+ ```bash
121
+ cd d:\code\dev-workflow-mcp-server
122
+ node index.js
123
+ ```
124
+
125
+ Look for error messages. Common issues:
126
+ - Missing dependencies (`npm install`)
127
+ - Permission errors
128
+ - Port conflicts
129
+
130
+ ---
131
+
132
+ ## Workflow State Conflicts
133
+
134
+ ### Symptoms
135
+ - Workflow shows incorrect phase
136
+ - History from different projects appearing
137
+ - State not persisting between sessions
138
+
139
+ ### Solutions
140
+
141
+ #### 1. Check State File Location
142
+
143
+ Verify state file exists:
144
+
145
+ ```bash
146
+ # In your project directory
147
+ ls -la .state/workflow-state.json
148
+ ```
149
+
150
+ If missing, the server creates it on first use.
151
+
152
+ #### 2. Reset Workflow State
153
+
154
+ If state is corrupted:
155
+
156
+ ```bash
157
+ # Backup existing state
158
+ cp .state/workflow-state.json .state/workflow-state.json.backup
159
+
160
+ # Start fresh (server recreates on next use)
161
+ rm .state/workflow-state.json
162
+ ```
163
+
164
+ Re-run `get_workflow_status` to initialize.
165
+
166
+ #### 3. Per-Project Isolation
167
+
168
+ Ensure each project has its own state:
169
+
170
+ ```bash
171
+ # Project A
172
+ cd ~/projects/app-frontend
173
+ npm install @programinglive/dev-workflow-mcp-server
174
+ # Creates .state/ in app-frontend/
175
+
176
+ # Project B
177
+ cd ~/projects/app-backend
178
+ npm install @programinglive/dev-workflow-mcp-server
179
+ # Creates .state/ in app-backend/
180
+ ```
181
+
182
+ #### 4. Custom State File Path
183
+
184
+ Override state location with environment variable:
185
+
186
+ ```json
187
+ {
188
+ "mcpServers": {
189
+ "dev-workflow": {
190
+ "command": "node",
191
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
192
+ "env": {
193
+ "DEV_WORKFLOW_STATE_FILE": "d:\\projects\\my-app\\.state\\workflow-state.json"
194
+ }
195
+ }
196
+ }
197
+ }
198
+ ```
199
+
200
+ ---
201
+
202
+ ## Git Conflicts with Automated Commits
203
+
204
+ ### Symptoms
205
+ - `commit_and_push` fails with merge conflicts
206
+ - Diverged branch errors
207
+ - Uncommitted changes blocking workflow
208
+
209
+ ### Solutions
210
+
211
+ #### 1. Pull Before Committing
212
+
213
+ Always pull latest changes first:
214
+
215
+ ```bash
216
+ git pull origin main
217
+ ```
218
+
219
+ Then run workflow commands.
220
+
221
+ #### 2. Resolve Conflicts Manually
222
+
223
+ If conflicts occur:
224
+
225
+ ```bash
226
+ # See conflicts
227
+ git status
228
+
229
+ # Resolve conflicts in files
230
+ # Then:
231
+ git add .
232
+ git commit -m "resolve conflicts"
233
+ git push
234
+ ```
235
+
236
+ Then resume workflow with `get_workflow_status`.
237
+
238
+ #### 3. Use Correct Branch
239
+
240
+ Ensure you're on the right branch:
241
+
242
+ ```bash
243
+ git branch # Check current branch
244
+ git checkout your-feature-branch
245
+ ```
246
+
247
+ Then specify in workflow:
248
+
249
+ ```
250
+ commit_and_push:
251
+ commitMessage: "feat: add feature"
252
+ branch: "your-feature-branch"
253
+ ```
254
+
255
+ #### 4. Stash Uncommitted Changes
256
+
257
+ If you have uncommitted changes blocking the workflow:
258
+
259
+ ```bash
260
+ # Stash changes
261
+ git stash
262
+
263
+ # Run workflow
264
+ # ...
265
+
266
+ # Restore changes
267
+ git stash pop
268
+ ```
269
+
270
+ ---
271
+
272
+ ## Path Resolution Issues on Windows
273
+
274
+ ### Symptoms
275
+ - "Cannot find module" errors
276
+ - Path not found errors
277
+ - Server fails to start
278
+
279
+ ### Solutions
280
+
281
+ #### 1. Use Escaped Backslashes
282
+
283
+ In JSON, escape backslashes:
284
+
285
+ ```json
286
+ {
287
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"]
288
+ }
289
+ ```
290
+
291
+ Not:
292
+ ```json
293
+ {
294
+ "args": ["d:\code\dev-workflow-mcp-server\index.js"] // ❌ Wrong
295
+ }
296
+ ```
297
+
298
+ #### 2. Use Forward Slashes
299
+
300
+ Alternative: use forward slashes (works on Windows):
301
+
302
+ ```json
303
+ {
304
+ "args": ["d:/code/dev-workflow-mcp-server/index.js"]
305
+ }
306
+ ```
307
+
308
+ #### 3. Use Absolute Paths
309
+
310
+ Always use full paths, not relative:
311
+
312
+ ```json
313
+ {
314
+ "args": ["C:\\Users\\Username\\Projects\\dev-workflow-mcp-server\\index.js"]
315
+ }
316
+ ```
317
+
318
+ #### 4. Avoid Spaces in Paths
319
+
320
+ If path has spaces, ensure proper escaping:
321
+
322
+ ```json
323
+ {
324
+ "args": ["C:\\Program Files\\My Project\\dev-workflow-mcp-server\\index.js"]
325
+ }
326
+ ```
327
+
328
+ Or move to path without spaces.
329
+
330
+ ---
331
+
332
+ ## SQLite Database Locking
333
+
334
+ ### Symptoms
335
+ - "Database is locked" errors
336
+ - Cannot save workflow state
337
+ - Timeouts when updating workflow
338
+
339
+ ### Solutions
340
+
341
+ #### 1. Close Other Processes
342
+
343
+ Ensure no other processes have the database open:
344
+
345
+ ```powershell
346
+ # Windows: Find processes with file open
347
+ handle .state\users\
348
+
349
+ # macOS/Linux
350
+ lsof .state/users/*/workflow-state.db
351
+ ```
352
+
353
+ Close conflicting processes.
354
+
355
+ #### 2. One MCP Server Per User
356
+
357
+ Don't run multiple MCP server instances for same user:
358
+
359
+ - Close other editors using the MCP server
360
+ - Ensure only one Antigravity instance is active
361
+
362
+ #### 3. Use Different User IDs
363
+
364
+ If multiple users/editors need simultaneous access:
365
+
366
+ ```json
367
+ {
368
+ "mcpServers": {
369
+ "dev-workflow": {
370
+ "command": "node",
371
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
372
+ "env": {
373
+ "DEV_WORKFLOW_USER_ID": "antigravity-user"
374
+ }
375
+ }
376
+ }
377
+ }
378
+ ```
379
+
380
+ In Windsurf:
381
+ ```json
382
+ {
383
+ "env": {
384
+ "DEV_WORKFLOW_USER_ID": "windsurf-user"
385
+ }
386
+ }
387
+ ```
388
+
389
+ #### 4. Repair Database
390
+
391
+ If database is corrupted:
392
+
393
+ ```bash
394
+ cd .state/users/your-user-id/
395
+
396
+ # Backup
397
+ cp workflow-state.db workflow-state.db.backup
398
+
399
+ # Check integrity
400
+ sqlite3 workflow-state.db "PRAGMA integrity_check;"
401
+
402
+ # If corrupted, start fresh
403
+ rm workflow-state.db
404
+ ```
405
+
406
+ ---
407
+
408
+ ## Multi-User Workflow Isolation Problems
409
+
410
+ ### Symptoms
411
+ - Users see each other's workflows
412
+ - History mixing between developers
413
+ - State conflicts on shared machines
414
+
415
+ ### Solutions
416
+
417
+ #### 1. Set Unique User IDs
418
+
419
+ Each developer should have unique `DEV_WORKFLOW_USER_ID`:
420
+
421
+ **Developer Alice:**
422
+ ```json
423
+ {
424
+ "mcpServers": {
425
+ "dev-workflow": {
426
+ "command": "node",
427
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
428
+ "env": {
429
+ "DEV_WORKFLOW_USER_ID": "alice"
430
+ }
431
+ }
432
+ }
433
+ }
434
+ ```
435
+
436
+ **Developer Bob:**
437
+ ```json
438
+ {
439
+ "env": {
440
+ "DEV_WORKFLOW_USER_ID": "bob"
441
+ }
442
+ }
443
+ ```
444
+
445
+ #### 2. Verify User Isolation
446
+
447
+ Check that separate DB files exist:
448
+
449
+ ```bash
450
+ ls -la .state/users/
451
+ # Should see:
452
+ # alice/workflow-state.db
453
+ # bob/workflow-state.db
454
+ ```
455
+
456
+ #### 3. View Specific User History
457
+
458
+ In web dashboard:
459
+
460
+ ```bash
461
+ npm run web
462
+ # Open: http://localhost:3111?user=alice
463
+ # Or: http://localhost:3111?user=bob
464
+ ```
465
+
466
+ ---
467
+
468
+ ## Windsurf Editor Conflicts
469
+
470
+ ### Symptoms
471
+ - Workflow state corrupted when switching between Antigravity and Windsurf
472
+ - Both editors showing different workflow phases
473
+ - SQLite locking errors
474
+
475
+ ### Root Cause
476
+
477
+ Both editors try to use the same workflow state file simultaneously.
478
+
479
+ ### Solutions
480
+
481
+ #### Solution 1: Use Different User IDs (Recommended)
482
+
483
+ Most reliable approach - complete isolation:
484
+
485
+ **Antigravity config:**
486
+ ```json
487
+ {
488
+ "mcpServers": {
489
+ "dev-workflow": {
490
+ "command": "node",
491
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
492
+ "env": {
493
+ "DEV_WORKFLOW_USER_ID": "antigravity"
494
+ }
495
+ }
496
+ }
497
+ }
498
+ ```
499
+
500
+ **Windsurf config:**
501
+ ```json
502
+ {
503
+ "mcpServers": {
504
+ "dev-workflow": {
505
+ "command": "node",
506
+ "args": ["d:\\code\\dev-workflow-mcp-server\\index.js"],
507
+ "env": {
508
+ "DEV_WORKFLOW_USER_ID": "windsurf"
509
+ }
510
+ }
511
+ }
512
+ }
513
+ ```
514
+
515
+ This creates:
516
+ - `.state/users/antigravity/workflow-state.db` for Antigravity
517
+ - `.state/users/windsurf/workflow-state.db` for Windsurf
518
+
519
+ #### Solution 2: Use One Editor at a Time
520
+
521
+ If you want shared state:
522
+ 1. **Close Windsurf completely** before opening Antigravity
523
+ 2. Or **close Antigravity** before opening Windsurf
524
+ 3. Only ONE editor should access workflow at a time
525
+
526
+ #### Solution 3: Separate Projects
527
+
528
+ Use the MCP server in different projects:
529
+
530
+ - Antigravity → Project A
531
+ - Windsurf → Project B
532
+
533
+ Each project has isolated `.state/` directory.
534
+
535
+ #### Solution 4: Disable in One Editor
536
+
537
+ Keep MCP server active in only one editor:
538
+
539
+ Remove or comment out from one config:
540
+
541
+ ```json
542
+ {
543
+ "mcpServers": {
544
+ // "dev-workflow": { ... } // Disabled
545
+ }
546
+ }
547
+ ```
548
+
549
+ ---
550
+
551
+ ## Tests Not Running
552
+
553
+ ### Symptoms
554
+ - `run_tests` accepts any input
555
+ - Tests marked as passed but didn't actually run
556
+ - No test output shown
557
+
558
+ ### Explanation
559
+
560
+ The MCP server **records** test results; it doesn't execute tests. You must run tests manually first.
561
+
562
+ ### Solution
563
+
564
+ #### 1. Run Tests Manually
565
+
566
+ ```bash
567
+ # Run your test suite
568
+ npm test
569
+ # or
570
+ npm run test
571
+ # or
572
+ yarn test
573
+ ```
574
+
575
+ #### 2. Record Results
576
+
577
+ Then record in workflow:
578
+
579
+ ```
580
+ run_tests:
581
+ passed: true
582
+ testCommand: "npm test"
583
+ details: "127 tests passed"
584
+ ```
585
+
586
+ #### 3. Workflow Blocking
587
+
588
+ The workflow **blocks commits if you record `passed: false`**:
589
+
590
+ ```
591
+ run_tests:
592
+ passed: false
593
+ testCommand: "npm test"
594
+ details: "3 tests failed"
595
+ ```
596
+
597
+ Response:
598
+ ```
599
+ ❌ Tests FAILED!
600
+ 🚫 Cannot proceed with failing tests
601
+ ```
602
+
603
+ Fix tests, re-run, then record:
604
+
605
+ ```
606
+ run_tests:
607
+ passed: true
608
+ testCommand: "npm test"
609
+ details: "All 127 tests now pass"
610
+ ```
611
+
612
+ ---
613
+
614
+ ## Commit and Push Failures
615
+
616
+ ### Symptoms
617
+ - `commit_and_push` fails
618
+ - No changes committ push rejected
619
+ - Authentication errors
620
+
621
+ ### Solutions
622
+
623
+ #### 1. Verify Git Configuration
624
+
625
+ ```bash
626
+ git config --list
627
+
628
+ # Should have:
629
+ # user.name=Your Name
630
+ # user.email=your@email.com
631
+ ```
632
+
633
+ If missing:
634
+ ```bash
635
+ git config --global user.name "Your Name"
636
+ git config --global user.email "your@email.com"
637
+ ```
638
+
639
+ #### 2. Ensure Changes Exist
640
+
641
+ MCP server stages files with `git add .`. Verify changes:
642
+
643
+ ```bash
644
+ git status
645
+ ```
646
+
647
+ If no changes, the commit will fail.
648
+
649
+ #### 3. Check Remote Configuration
650
+
651
+ ```bash
652
+ git remote -v
653
+ ```
654
+
655
+ Should show:
656
+ ```
657
+ origin https://github.com/user/repo.git (fetch)
658
+ origin https://github.com/user/repo.git (push)
659
+ ```
660
+
661
+ If missing:
662
+ ```bash
663
+ git remote add origin https://github.com/user/repo.git
664
+ ```
665
+
666
+ #### 4. Authentication Issues
667
+
668
+ **GitHub HTTPS:**
669
+ ```bash
670
+ # Use personal access token
671
+ git config --global credential.helper store
672
+ git push # Enter token when prompted
673
+ ```
674
+
675
+ **GitHub SSH:**
676
+ ```bash
677
+ # Verify SSH key
678
+ ssh -T git@github.com
679
+
680
+ # Change remote to SSH
681
+ git remote set-url origin git@github.com:user/repo.git
682
+ ```
683
+
684
+ #### 5. Branch Protection
685
+
686
+ If branch is protected:
687
+ - Create a feature branch
688
+ - Push to feature branch instead:
689
+
690
+ ```
691
+ commit_and_push:
692
+ commitMessage: "feat: add feature"
693
+ branch: "feature/my-feature"
694
+ ```
695
+
696
+ ---
697
+
698
+ ## Getting More Help
699
+
700
+ ### Enable Debug Logging
701
+
702
+ Run server with debug output:
703
+
704
+ ```bash
705
+ NODE_ENV=development node index.js
706
+ ```
707
+
708
+ ### Check Server Health
709
+
710
+ Test manually:
711
+
712
+ ```bash
713
+ cd dev-workflow-mcp-server
714
+ node index.js
715
+
716
+ # Type to test:
717
+ # get_workflow_status
718
+ ```
719
+
720
+ ### Community Support
721
+
722
+ - **GitHub Issues:** [Report bugs](https://github.com/programinglive/dev-workflow-mcp-server/issues)
723
+ - **Discussions:** [Ask questions](https://github.com/programinglive/dev-workflow-mcp-server/discussions)
724
+
725
+ ### Documentation
726
+
727
+ - [Getting Started](./GETTING-STARTED.md)
728
+ - [Examples](./EXAMPLES.md)
729
+ - [Workflow Templates](./WORKFLOW-TEMPLATES.md)
730
+ - [Main README](../../README.md)
731
+
732
+ ---
733
+
734
+ **Still having issues?** Open a GitHub issue with:
735
+ 1. Your `mcp_config.json` (redact sensitive paths)
736
+ 2. Error messages
737
+ 3. Steps to reproduce
738
+ 4. Antigravity version
739
+ 5. Node.js version (`node --version`)
740
+ 6. Operating system
741
+
742
+ We're here to help! 🛠️