@insforge/install 0.0.4 → 0.0.6
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 +9 -3
- package/dist/utils.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -59,12 +59,18 @@ import {
|
|
|
59
59
|
// Use Claude CLI for Claude Code
|
|
60
60
|
const envArgs = Object.entries(envVars)
|
|
61
61
|
.filter(([key]) => key !== 'CLIENT_NAME')
|
|
62
|
-
.map(([key, value]) =>
|
|
62
|
+
.map(([key, value]) => {
|
|
63
|
+
// Properly quote values for cross-platform compatibility
|
|
64
|
+
const quotedValue = value.includes(' ') ? `"${value}"` : value;
|
|
65
|
+
return `-e ${key}=${quotedValue}`;
|
|
66
|
+
})
|
|
63
67
|
.join(' ');
|
|
64
68
|
|
|
65
69
|
try {
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
const command = `claude mcp add ${name} ${envArgs} -- npx -y @insforge/insforge-mcp@latest`;
|
|
71
|
+
execSync(command, {
|
|
72
|
+
stdio: 'inherit',
|
|
73
|
+
shell: true
|
|
68
74
|
});
|
|
69
75
|
} catch (error) {
|
|
70
76
|
throw new Error(`Failed to add MCP server via Claude CLI: ${error.message}`);
|
package/dist/utils.js
CHANGED
|
@@ -47,7 +47,7 @@ var clientPaths = {
|
|
|
47
47
|
},
|
|
48
48
|
roocode: {
|
|
49
49
|
type: "file",
|
|
50
|
-
path: path.join(baseDir, vscodePath, "rooveterinaryinc.
|
|
50
|
+
path: path.join(baseDir, vscodePath, "rooveterinaryinc.roo-cline", "settings", "mcp_settings.json")
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
var clientNames = Object.keys(clientPaths);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insforge/install",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "CLI tool for installing Insforge MCP servers across different AI clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|