@torqon/mcp 0.2.1 → 0.2.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.
- package/dist/install.js +8 -1
- package/package.json +1 -1
package/dist/install.js
CHANGED
|
@@ -49,7 +49,14 @@ function getConfigPath(client) {
|
|
|
49
49
|
return { path: join(home, 'Library/Application Support/Zed/settings.json'), format: 'json' };
|
|
50
50
|
return { path: join(home, '.config/zed/settings.json'), format: 'json' };
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
if (client === 'vscode') {
|
|
53
|
+
if (os === 'win32')
|
|
54
|
+
return { path: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, format: 'json' };
|
|
55
|
+
if (os === 'darwin')
|
|
56
|
+
return { path: join(home, 'Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json'), format: 'json' };
|
|
57
|
+
return { path: join(home, '.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json'), format: 'json' };
|
|
58
|
+
}
|
|
59
|
+
throw new Error(`Unknown client: ${client}. Supported: claude, cursor, windsurf, codex, zed, vscode`);
|
|
53
60
|
}
|
|
54
61
|
function installJson(client, configPath, apiKey, apiUrl) {
|
|
55
62
|
const configDir = configPath.substring(0, Math.max(configPath.lastIndexOf('\\'), configPath.lastIndexOf('/')));
|