@insforge/install 0.0.21 → 0.0.23
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/index.js +7 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,10 +56,8 @@ import {
|
|
|
56
56
|
}
|
|
57
57
|
const name = "insforge";
|
|
58
58
|
const mcpVersion = argv.dev ? "@insforge/mcp@dev" : "@insforge/mcp@latest";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
try {
|
|
62
|
-
const config = readConfig(argv.client);
|
|
59
|
+
try {
|
|
60
|
+
const config = readConfig(argv.client);
|
|
63
61
|
|
|
64
62
|
// Handle different config structures for different clients
|
|
65
63
|
if (argv.client === "claude-code") {
|
|
@@ -67,7 +65,7 @@ import {
|
|
|
67
65
|
const homeDir = os.homedir();
|
|
68
66
|
const isWindows = process.platform === 'win32';
|
|
69
67
|
const claudePath = isWindows
|
|
70
|
-
? path.join(homeDir, '
|
|
68
|
+
? path.join(homeDir, 'AppData', 'Roaming', 'npm', 'claude')
|
|
71
69
|
: path.join(homeDir, '.claude', 'local', 'claude');
|
|
72
70
|
|
|
73
71
|
const envArgs = Object.entries(envVars)
|
|
@@ -89,7 +87,7 @@ import {
|
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
// Now add the MCP server
|
|
92
|
-
const command = `"${claudePath}" mcp add ${name} ${envArgs} -- npx -y ${mcpVersion}`;
|
|
90
|
+
const command = `"${claudePath}" mcp add ${name} -y ${envArgs} -- npx -y ${mcpVersion}`;
|
|
93
91
|
logger.info(`Adding insforge MCP server (${mcpVersion})...`);
|
|
94
92
|
execSync(command, {
|
|
95
93
|
stdio: 'inherit',
|
|
@@ -166,10 +164,9 @@ import {
|
|
|
166
164
|
};
|
|
167
165
|
writeConfig(config, argv.client);
|
|
168
166
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
167
|
+
logger.box(green(`Successfully installed Insforge MCP server in ${argv.client}.`));
|
|
168
|
+
} catch (e) {
|
|
169
|
+
logger.error(red(e.message));
|
|
173
170
|
}
|
|
174
171
|
}
|
|
175
172
|
|