@senoldogann/context-manager 0.1.4 → 0.1.5
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/bin/ccm.js +18 -4
- package/package.json +1 -1
package/bin/ccm.js
CHANGED
|
@@ -6,17 +6,31 @@ const fs = require('fs');
|
|
|
6
6
|
const os = require('os');
|
|
7
7
|
const https = require('https');
|
|
8
8
|
|
|
9
|
-
const VERSION = '0.1.
|
|
9
|
+
const VERSION = '0.1.5';
|
|
10
10
|
const REPO = 'senoldogann/LLM-Context-Manager';
|
|
11
11
|
const BIN_DIR = path.join(os.homedir(), '.ccm', 'bin');
|
|
12
12
|
|
|
13
13
|
async function installMcp() {
|
|
14
14
|
const configPaths = [];
|
|
15
|
+
const home = os.homedir();
|
|
16
|
+
|
|
15
17
|
if (os.platform() === 'darwin') {
|
|
16
|
-
|
|
17
|
-
configPaths.push(path.join(
|
|
18
|
+
// MacOS Paths
|
|
19
|
+
configPaths.push(path.join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json'));
|
|
20
|
+
configPaths.push(path.join(home, '.gemini', 'antigravity', 'mcp_config.json'));
|
|
21
|
+
// VS Code Extensions (Cline & Roo Code)
|
|
22
|
+
configPaths.push(path.join(home, 'Library', 'Application Support', 'Code', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'));
|
|
23
|
+
configPaths.push(path.join(home, 'Library', 'Application Support', 'Code', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'));
|
|
18
24
|
} else if (os.platform() === 'win32') {
|
|
19
|
-
|
|
25
|
+
// Windows Paths
|
|
26
|
+
const appData = process.env.APPDATA || '';
|
|
27
|
+
configPaths.push(path.join(appData, 'Claude', 'claude_desktop_config.json'));
|
|
28
|
+
// VS Code Extensions on Windows
|
|
29
|
+
configPaths.push(path.join(process.env.USERPROFILE || '', 'AppData', 'Roaming', 'Code', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'));
|
|
30
|
+
} else if (os.platform() === 'linux') {
|
|
31
|
+
// Linux Paths
|
|
32
|
+
configPaths.push(path.join(home, '.config', 'Claude', 'claude_desktop_config.json'));
|
|
33
|
+
configPaths.push(path.join(home, '.config', 'Code', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'));
|
|
20
34
|
}
|
|
21
35
|
|
|
22
36
|
const mcpConfig = {
|