@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.
- package/README.md +26 -25
- package/dist/index.d.ts +2 -14
- package/dist/index.js +2983 -613
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
- package/dist/__tests__/e2e-diagnostic-repair-flow.test.d.ts +0 -52
- package/dist/__tests__/e2e-diagnostic-repair-flow.test.d.ts.map +0 -1
- package/dist/__tests__/e2e-diagnostic-repair-flow.test.js +0 -720
- package/dist/__tests__/e2e-diagnostic-repair-flow.test.js.map +0 -1
- package/dist/__tests__/e2e-wizard-flow.test.d.ts +0 -43
- package/dist/__tests__/e2e-wizard-flow.test.d.ts.map +0 -1
- package/dist/__tests__/e2e-wizard-flow.test.js +0 -418
- package/dist/__tests__/e2e-wizard-flow.test.js.map +0 -1
- package/dist/__tests__/ide-handlers.test.d.ts +0 -10
- package/dist/__tests__/ide-handlers.test.d.ts.map +0 -1
- package/dist/__tests__/ide-handlers.test.js +0 -358
- package/dist/__tests__/ide-handlers.test.js.map +0 -1
- package/dist/__tests__/install-command.test.d.ts +0 -10
- package/dist/__tests__/install-command.test.d.ts.map +0 -1
- package/dist/__tests__/install-command.test.js +0 -248
- package/dist/__tests__/install-command.test.js.map +0 -1
- package/dist/callback-page.d.ts +0 -6
- package/dist/callback-page.d.ts.map +0 -1
- package/dist/callback-page.js +0 -96
- package/dist/callback-page.js.map +0 -1
- package/dist/config.d.ts +0 -62
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -167
- package/dist/config.js.map +0 -1
- package/dist/detect.d.ts +0 -42
- package/dist/detect.d.ts.map +0 -1
- package/dist/detect.js +0 -277
- package/dist/detect.js.map +0 -1
- package/dist/diagnose.d.ts +0 -36
- package/dist/diagnose.d.ts.map +0 -1
- package/dist/diagnose.js +0 -502
- package/dist/diagnose.js.map +0 -1
- package/dist/ide-handlers/antigravity.d.ts +0 -16
- package/dist/ide-handlers/antigravity.d.ts.map +0 -1
- package/dist/ide-handlers/antigravity.js +0 -46
- package/dist/ide-handlers/antigravity.js.map +0 -1
- package/dist/ide-handlers/base.d.ts +0 -36
- package/dist/ide-handlers/base.d.ts.map +0 -1
- package/dist/ide-handlers/base.js +0 -66
- package/dist/ide-handlers/base.js.map +0 -1
- package/dist/ide-handlers/claude-code.d.ts +0 -15
- package/dist/ide-handlers/claude-code.d.ts.map +0 -1
- package/dist/ide-handlers/claude-code.js +0 -50
- package/dist/ide-handlers/claude-code.js.map +0 -1
- package/dist/ide-handlers/codex.d.ts +0 -15
- package/dist/ide-handlers/codex.d.ts.map +0 -1
- package/dist/ide-handlers/codex.js +0 -53
- package/dist/ide-handlers/codex.js.map +0 -1
- package/dist/ide-handlers/cursor.d.ts +0 -15
- package/dist/ide-handlers/cursor.d.ts.map +0 -1
- package/dist/ide-handlers/cursor.js +0 -61
- package/dist/ide-handlers/cursor.js.map +0 -1
- package/dist/ide-handlers/desktop.d.ts +0 -16
- package/dist/ide-handlers/desktop.d.ts.map +0 -1
- package/dist/ide-handlers/desktop.js +0 -50
- package/dist/ide-handlers/desktop.js.map +0 -1
- package/dist/ide-handlers/index.d.ts +0 -21
- package/dist/ide-handlers/index.d.ts.map +0 -1
- package/dist/ide-handlers/index.js +0 -55
- package/dist/ide-handlers/index.js.map +0 -1
- package/dist/ide-handlers/manual.d.ts +0 -16
- package/dist/ide-handlers/manual.d.ts.map +0 -1
- package/dist/ide-handlers/manual.js +0 -34
- package/dist/ide-handlers/manual.js.map +0 -1
- package/dist/ide-handlers/opencode.d.ts +0 -15
- package/dist/ide-handlers/opencode.d.ts.map +0 -1
- package/dist/ide-handlers/opencode.js +0 -57
- package/dist/ide-handlers/opencode.js.map +0 -1
- package/dist/ide-handlers/vscode.d.ts +0 -16
- package/dist/ide-handlers/vscode.d.ts.map +0 -1
- package/dist/ide-handlers/vscode.js +0 -62
- package/dist/ide-handlers/vscode.js.map +0 -1
- package/dist/ide-handlers/windsurf.d.ts +0 -16
- package/dist/ide-handlers/windsurf.d.ts.map +0 -1
- package/dist/ide-handlers/windsurf.js +0 -46
- package/dist/ide-handlers/windsurf.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/oauth-server.d.ts +0 -4
- package/dist/oauth-server.d.ts.map +0 -1
- package/dist/oauth-server.js +0 -49
- package/dist/oauth-server.js.map +0 -1
- package/dist/prompts.d.ts +0 -23
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js +0 -68
- package/dist/prompts.js.map +0 -1
- package/dist/repair.d.ts +0 -50
- package/dist/repair.d.ts.map +0 -1
- package/dist/repair.js +0 -633
- 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
|
|
69
|
-
|
|
70
|
-
| `claude-code` | Terminal (`claude mcp add`)
|
|
71
|
-
| `cursor`
|
|
72
|
-
| `vscode`
|
|
73
|
-
| `desktop`
|
|
74
|
-
| `windsurf`
|
|
75
|
-
| `opencode`
|
|
76
|
-
| `codex`
|
|
77
|
-
| `antigravity` | `~/.gemini/antigravity/mcp_config.json`
|
|
78
|
-
| `manual`
|
|
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
|
|
93
|
-
|
|
94
|
-
| `TOSTUDY_API_KEY`
|
|
95
|
-
| `TOSTUDY_PLATFORM_URL` | Platform URL
|
|
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
|
|
135
|
+
3. Use the `courses` tool to see your enrolled courses
|
|
135
136
|
|
|
136
137
|
## Scripts
|
|
137
138
|
|
|
138
|
-
| Command
|
|
139
|
-
|
|
140
|
-
| `pnpm build`
|
|
141
|
-
| `pnpm type-check`
|
|
142
|
-
| `pnpm test`
|
|
143
|
-
| `pnpm test:e2e`
|
|
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`
|
|
146
|
-
| `pnpm test:install`
|
|
147
|
-
| `pnpm test:all`
|
|
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
|
-
|
|
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 { }
|