@tostudy-ai/mcp-setup 1.3.0 → 1.4.1

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 (94) hide show
  1. package/README.md +26 -25
  2. package/dist/index.d.ts +2 -14
  3. package/dist/index.js +2999 -613
  4. package/dist/index.js.map +1 -1
  5. package/package.json +7 -3
  6. package/dist/__tests__/e2e-diagnostic-repair-flow.test.d.ts +0 -52
  7. package/dist/__tests__/e2e-diagnostic-repair-flow.test.d.ts.map +0 -1
  8. package/dist/__tests__/e2e-diagnostic-repair-flow.test.js +0 -720
  9. package/dist/__tests__/e2e-diagnostic-repair-flow.test.js.map +0 -1
  10. package/dist/__tests__/e2e-wizard-flow.test.d.ts +0 -43
  11. package/dist/__tests__/e2e-wizard-flow.test.d.ts.map +0 -1
  12. package/dist/__tests__/e2e-wizard-flow.test.js +0 -418
  13. package/dist/__tests__/e2e-wizard-flow.test.js.map +0 -1
  14. package/dist/__tests__/ide-handlers.test.d.ts +0 -10
  15. package/dist/__tests__/ide-handlers.test.d.ts.map +0 -1
  16. package/dist/__tests__/ide-handlers.test.js +0 -358
  17. package/dist/__tests__/ide-handlers.test.js.map +0 -1
  18. package/dist/__tests__/install-command.test.d.ts +0 -10
  19. package/dist/__tests__/install-command.test.d.ts.map +0 -1
  20. package/dist/__tests__/install-command.test.js +0 -248
  21. package/dist/__tests__/install-command.test.js.map +0 -1
  22. package/dist/callback-page.d.ts +0 -6
  23. package/dist/callback-page.d.ts.map +0 -1
  24. package/dist/callback-page.js +0 -96
  25. package/dist/callback-page.js.map +0 -1
  26. package/dist/config.d.ts +0 -62
  27. package/dist/config.d.ts.map +0 -1
  28. package/dist/config.js +0 -167
  29. package/dist/config.js.map +0 -1
  30. package/dist/detect.d.ts +0 -42
  31. package/dist/detect.d.ts.map +0 -1
  32. package/dist/detect.js +0 -277
  33. package/dist/detect.js.map +0 -1
  34. package/dist/diagnose.d.ts +0 -36
  35. package/dist/diagnose.d.ts.map +0 -1
  36. package/dist/diagnose.js +0 -502
  37. package/dist/diagnose.js.map +0 -1
  38. package/dist/ide-handlers/antigravity.d.ts +0 -16
  39. package/dist/ide-handlers/antigravity.d.ts.map +0 -1
  40. package/dist/ide-handlers/antigravity.js +0 -46
  41. package/dist/ide-handlers/antigravity.js.map +0 -1
  42. package/dist/ide-handlers/base.d.ts +0 -36
  43. package/dist/ide-handlers/base.d.ts.map +0 -1
  44. package/dist/ide-handlers/base.js +0 -66
  45. package/dist/ide-handlers/base.js.map +0 -1
  46. package/dist/ide-handlers/claude-code.d.ts +0 -15
  47. package/dist/ide-handlers/claude-code.d.ts.map +0 -1
  48. package/dist/ide-handlers/claude-code.js +0 -50
  49. package/dist/ide-handlers/claude-code.js.map +0 -1
  50. package/dist/ide-handlers/codex.d.ts +0 -15
  51. package/dist/ide-handlers/codex.d.ts.map +0 -1
  52. package/dist/ide-handlers/codex.js +0 -53
  53. package/dist/ide-handlers/codex.js.map +0 -1
  54. package/dist/ide-handlers/cursor.d.ts +0 -15
  55. package/dist/ide-handlers/cursor.d.ts.map +0 -1
  56. package/dist/ide-handlers/cursor.js +0 -61
  57. package/dist/ide-handlers/cursor.js.map +0 -1
  58. package/dist/ide-handlers/desktop.d.ts +0 -16
  59. package/dist/ide-handlers/desktop.d.ts.map +0 -1
  60. package/dist/ide-handlers/desktop.js +0 -50
  61. package/dist/ide-handlers/desktop.js.map +0 -1
  62. package/dist/ide-handlers/index.d.ts +0 -21
  63. package/dist/ide-handlers/index.d.ts.map +0 -1
  64. package/dist/ide-handlers/index.js +0 -55
  65. package/dist/ide-handlers/index.js.map +0 -1
  66. package/dist/ide-handlers/manual.d.ts +0 -16
  67. package/dist/ide-handlers/manual.d.ts.map +0 -1
  68. package/dist/ide-handlers/manual.js +0 -34
  69. package/dist/ide-handlers/manual.js.map +0 -1
  70. package/dist/ide-handlers/opencode.d.ts +0 -15
  71. package/dist/ide-handlers/opencode.d.ts.map +0 -1
  72. package/dist/ide-handlers/opencode.js +0 -57
  73. package/dist/ide-handlers/opencode.js.map +0 -1
  74. package/dist/ide-handlers/vscode.d.ts +0 -16
  75. package/dist/ide-handlers/vscode.d.ts.map +0 -1
  76. package/dist/ide-handlers/vscode.js +0 -62
  77. package/dist/ide-handlers/vscode.js.map +0 -1
  78. package/dist/ide-handlers/windsurf.d.ts +0 -16
  79. package/dist/ide-handlers/windsurf.d.ts.map +0 -1
  80. package/dist/ide-handlers/windsurf.js +0 -46
  81. package/dist/ide-handlers/windsurf.js.map +0 -1
  82. package/dist/index.d.ts.map +0 -1
  83. package/dist/oauth-server.d.ts +0 -4
  84. package/dist/oauth-server.d.ts.map +0 -1
  85. package/dist/oauth-server.js +0 -49
  86. package/dist/oauth-server.js.map +0 -1
  87. package/dist/prompts.d.ts +0 -23
  88. package/dist/prompts.d.ts.map +0 -1
  89. package/dist/prompts.js +0 -68
  90. package/dist/prompts.js.map +0 -1
  91. package/dist/repair.d.ts +0 -50
  92. package/dist/repair.d.ts.map +0 -1
  93. package/dist/repair.js +0 -633
  94. package/dist/repair.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tostudy-ai/mcp-setup",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "CLI to configure IDE Code AI for ToStudyAI MCP server",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "dist"
14
14
  ],
15
15
  "scripts": {
16
- "build": "tsc",
16
+ "build": "tsup",
17
17
  "type-check": "tsc --noEmit",
18
18
  "test": "node --import tsx src/__tests__/e2e-wizard-flow.test.ts",
19
19
  "test:e2e": "bash src/__tests__/verify-e2e.sh",
@@ -22,7 +22,9 @@
22
22
  "test:diagnostic-repair:shell": "bash src/__tests__/verify-diagnostic-repair.sh",
23
23
  "test:diagnostic-repair:server": "bash src/__tests__/verify-diagnostic-repair.sh --with-server",
24
24
  "test:ide-handlers": "node --import tsx src/__tests__/ide-handlers.test.ts",
25
+ "test:init": "vitest run src/__tests__/init-command.test.ts",
25
26
  "test:install": "node --import tsx src/__tests__/install-command.test.ts",
27
+ "test:sync": "vitest run src/__tests__/sync-command.test.ts",
26
28
  "test:all": "npm run test && npm run test:diagnostic-repair && npm run test:ide-handlers && npm run test:install",
27
29
  "prepublishOnly": "npm run build"
28
30
  },
@@ -41,8 +43,10 @@
41
43
  },
42
44
  "devDependencies": {
43
45
  "@types/node": "^25.0.3",
46
+ "tsup": "^8.4.0",
44
47
  "tsx": "^4.19.2",
45
- "typescript": "^5.7.2"
48
+ "typescript": "^5.7.2",
49
+ "vitest": "^4.0.18"
46
50
  },
47
51
  "engines": {
48
52
  "node": ">=18"
@@ -1,52 +0,0 @@
1
- /**
2
- * E2E Test: Diagnostic and Repair Flow
3
- *
4
- * This test verifies the end-to-end diagnostic and repair flow:
5
- * 1. Simulate common issues (port conflict, missing config, invalid JSON, etc.)
6
- * 2. Run mcp-setup diagnose command
7
- * 3. Verify issue detected with clear description
8
- * 4. Run mcp-setup repair command
9
- * 5. Verify issue fixed and MCP configuration is valid
10
- *
11
- * NOTE: Port conflict tests require elevated permissions on some systems.
12
- * Run with: npx tsx src/__tests__/e2e-diagnostic-repair-flow.test.ts
13
- */
14
- /**
15
- * Step 1: Test detection of missing config file
16
- */
17
- declare function testMissingConfigDetection(): Promise<void>;
18
- /**
19
- * Step 2: Test detection of invalid JSON config
20
- */
21
- declare function testInvalidJsonDetection(): Promise<void>;
22
- /**
23
- * Step 3: Test detection of missing MCP configuration
24
- */
25
- declare function testMissingMcpConfigDetection(): Promise<void>;
26
- /**
27
- * Step 4: Test detection of API key issues
28
- */
29
- declare function testApiKeyIssuesDetection(): Promise<void>;
30
- /**
31
- * Step 5: Test detection of server URL issues
32
- */
33
- declare function testServerUrlIssuesDetection(): Promise<void>;
34
- /**
35
- * Step 6: Test detection of duplicate servers
36
- */
37
- declare function testDuplicateServersDetection(): Promise<void>;
38
- /**
39
- * Step 7: Test port conflict detection
40
- */
41
- declare function testPortConflictDetection(): Promise<void>;
42
- /**
43
- * Step 8: Complete diagnostic and repair flow
44
- */
45
- declare function testCompleteFlow(): Promise<void>;
46
- /**
47
- * Step 9: Test issue helper functions
48
- */
49
- declare function testHelperFunctions(): Promise<void>;
50
- declare function main(): Promise<void>;
51
- export { testMissingConfigDetection, testInvalidJsonDetection, testMissingMcpConfigDetection, testApiKeyIssuesDetection, testServerUrlIssuesDetection, testDuplicateServersDetection, testPortConflictDetection, testCompleteFlow, testHelperFunctions, main as runDiagnosticRepairE2ETests, };
52
- //# sourceMappingURL=e2e-diagnostic-repair-flow.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"e2e-diagnostic-repair-flow.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/e2e-diagnostic-repair-flow.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA2RH;;GAEG;AACH,iBAAe,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,CAuCzD;AAED;;GAEG;AACH,iBAAe,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CA4CvD;AAED;;GAEG;AACH,iBAAe,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CA0C5D;AAED;;GAEG;AACH,iBAAe,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC,CAkDxD;AAED;;GAEG;AACH,iBAAe,4BAA4B,IAAI,OAAO,CAAC,IAAI,CAAC,CAwD3D;AAED;;GAEG;AACH,iBAAe,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CAoC5D;AAED;;GAEG;AACH,iBAAe,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC,CAmCxD;AAED;;GAEG;AACH,iBAAe,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAoF/C;AAED;;GAEG;AACH,iBAAe,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CA4ElD;AAsCD,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAwCnC;AAQD,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,IAAI,IAAI,2BAA2B,GACpC,CAAC"}