@tostudy-ai/mcp-setup 1.3.0 → 1.4.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 (94) hide show
  1. package/README.md +26 -25
  2. package/dist/index.d.ts +2 -14
  3. package/dist/index.js +2983 -613
  4. package/dist/index.js.map +1 -1
  5. package/package.json +5 -2
  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/README.md CHANGED
@@ -30,6 +30,7 @@ npx @tostudy-ai/mcp-setup wizard --auto-repair # Auto-fix detected issues
30
30
  ```
31
31
 
32
32
  The wizard guides through 4 steps:
33
+
33
34
  1. Environment detection (Claude Code, IDEs)
34
35
  2. API key configuration and validation
35
36
  3. Save configuration
@@ -65,17 +66,17 @@ npx @tostudy-ai/mcp-setup install --ide vscode --key <key> --url http://localhos
65
66
 
66
67
  Supported IDEs: `claude-code`, `cursor`, `vscode`, `desktop`, `windsurf`, `opencode`, `codex`, `antigravity`, `manual`
67
68
 
68
- | IDE | Config Location | Config Key |
69
- |-----|----------------|------------|
70
- | `claude-code` | Terminal (`claude mcp add`) | N/A |
71
- | `cursor` | `~/.cursor/mcp.json` | `mcpServers` |
72
- | `vscode` | `.vscode/mcp.json` | `servers` |
73
- | `desktop` | Claude Desktop config | `mcpServers` |
74
- | `windsurf` | `~/.codeium/windsurf/mcp_config.json` | `mcpServers` |
75
- | `opencode` | `~/.opencode/opencode.json` | `mcp` |
76
- | `codex` | `~/.codex/config.toml` (via `codex mcp add`) | `mcp_servers` |
77
- | `antigravity` | `~/.gemini/antigravity/mcp_config.json` | `mcpServers` |
78
- | `manual` | stdout (prints config) | N/A |
69
+ | IDE | Config Location | Config Key |
70
+ | ------------- | -------------------------------------------- | ------------- |
71
+ | `claude-code` | Terminal (`claude mcp add`) | N/A |
72
+ | `cursor` | `~/.cursor/mcp.json` | `mcpServers` |
73
+ | `vscode` | `.vscode/mcp.json` | `servers` |
74
+ | `desktop` | Claude Desktop config | `mcpServers` |
75
+ | `windsurf` | `~/.codeium/windsurf/mcp_config.json` | `mcpServers` |
76
+ | `opencode` | `~/.opencode/opencode.json` | `mcp` |
77
+ | `codex` | `~/.codex/config.toml` (via `codex mcp add`) | `mcp_servers` |
78
+ | `antigravity` | `~/.gemini/antigravity/mcp_config.json` | `mcpServers` |
79
+ | `manual` | stdout (prints a redacted config template) | N/A |
79
80
 
80
81
  Each handler reads-then-merges config to preserve other MCP servers.
81
82
 
@@ -89,10 +90,10 @@ npx @tostudy-ai/mcp-setup
89
90
 
90
91
  ## Environment Variables
91
92
 
92
- | Variable | Description | Default |
93
- |----------|-------------|---------|
94
- | `TOSTUDY_API_KEY` | Platform API key | - |
95
- | `TOSTUDY_PLATFORM_URL` | Platform URL | `https://tostudy.com` |
93
+ | Variable | Description | Default |
94
+ | ---------------------- | ---------------- | --------------------- |
95
+ | `TOSTUDY_API_KEY` | Platform API key | - |
96
+ | `TOSTUDY_PLATFORM_URL` | Platform URL | `https://tostudy.com` |
96
97
 
97
98
  ## Getting Your API Key
98
99
 
@@ -131,20 +132,20 @@ Adds the following configuration:
131
132
 
132
133
  1. Restart Claude Code
133
134
  2. The MCP server will start automatically
134
- 3. Use `/courses` to see your enrolled courses
135
+ 3. Use the `courses` tool to see your enrolled courses
135
136
 
136
137
  ## Scripts
137
138
 
138
- | Command | Description |
139
- |---------|-------------|
140
- | `pnpm build` | Build CLI |
141
- | `pnpm type-check` | TypeScript validation |
142
- | `pnpm test` | Run wizard e2e test |
143
- | `pnpm test:e2e` | Run shell e2e test |
139
+ | Command | Description |
140
+ | ----------------------------- | ------------------------------ |
141
+ | `pnpm build` | Build CLI |
142
+ | `pnpm type-check` | TypeScript validation |
143
+ | `pnpm test` | Run wizard e2e test |
144
+ | `pnpm test:e2e` | Run shell e2e test |
144
145
  | `pnpm test:diagnostic-repair` | Run diagnostic/repair e2e test |
145
- | `pnpm test:ide-handlers` | Run IDE handler unit tests |
146
- | `pnpm test:install` | Run install command unit tests |
147
- | `pnpm test:all` | Run all tests |
146
+ | `pnpm test:ide-handlers` | Run IDE handler unit tests |
147
+ | `pnpm test:install` | Run install command unit tests |
148
+ | `pnpm test:all` | Run all tests |
148
149
 
149
150
  ## Support
150
151
 
package/dist/index.d.ts CHANGED
@@ -1,14 +1,2 @@
1
- #!/usr/bin/env node
2
- /**
3
- * ToStudy MCP Setup CLI
4
- *
5
- * Configures Claude Code to connect to the ToStudy MCP server.
6
- *
7
- * Usage:
8
- * npx @tostudy-ai/mcp-setup
9
- * npx @tostudy-ai/mcp-setup wizard
10
- * npx @tostudy-ai/mcp-setup --api-key <key>
11
- * npx @tostudy-ai/mcp-setup --uninstall
12
- */
13
- export {};
14
- //# sourceMappingURL=index.d.ts.map
1
+
2
+ export { }