@insforge/install 0.0.15 → 0.0.16
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 +4 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62,17 +62,14 @@ import {
|
|
|
62
62
|
.map(([key, value]) => {
|
|
63
63
|
// Properly quote values for cross-platform compatibility
|
|
64
64
|
const quotedValue = value.includes(' ') ? `"${value}"` : value;
|
|
65
|
-
return
|
|
65
|
+
return `-e ${key}=${quotedValue}`;
|
|
66
66
|
})
|
|
67
67
|
.join(' ');
|
|
68
68
|
|
|
69
69
|
try {
|
|
70
|
-
// Find claude CLI path
|
|
71
|
-
const claudePath = process.env.HOME ? `${process.env.HOME}/.claude/local/claude` : 'claude';
|
|
72
|
-
|
|
73
70
|
// First try to remove existing insforge MCP if it exists
|
|
74
71
|
try {
|
|
75
|
-
execSync(
|
|
72
|
+
execSync(`claude mcp remove ${name}`, {
|
|
76
73
|
stdio: 'pipe',
|
|
77
74
|
shell: true
|
|
78
75
|
});
|
|
@@ -81,9 +78,9 @@ import {
|
|
|
81
78
|
// It's okay if remove fails - the MCP might not exist
|
|
82
79
|
logger.info("No existing insforge MCP found");
|
|
83
80
|
}
|
|
84
|
-
|
|
81
|
+
|
|
85
82
|
// Now add the MCP server
|
|
86
|
-
const command =
|
|
83
|
+
const command = `claude mcp add ${name} ${envArgs} -- npx -y @insforge/mcp@latest`;
|
|
87
84
|
logger.info("Adding insforge MCP server...");
|
|
88
85
|
execSync(command, {
|
|
89
86
|
stdio: 'inherit',
|