@insforge/install 0.0.14 → 0.0.15

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -67,9 +67,12 @@ import {
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
+
70
73
  // First try to remove existing insforge MCP if it exists
71
74
  try {
72
- execSync(`claude mcp remove ${name}`, {
75
+ execSync(`${claudePath} mcp remove ${name}`, {
73
76
  stdio: 'pipe',
74
77
  shell: true
75
78
  });
@@ -78,9 +81,9 @@ import {
78
81
  // It's okay if remove fails - the MCP might not exist
79
82
  logger.info("No existing insforge MCP found");
80
83
  }
81
-
84
+
82
85
  // Now add the MCP server
83
- const command = `claude mcp add ${name} ${envArgs} -- npx -y @insforge/mcp@latest`;
86
+ const command = `${claudePath} mcp add ${name} ${envArgs} -- npx -y @insforge/mcp@latest`;
84
87
  logger.info("Adding insforge MCP server...");
85
88
  execSync(command, {
86
89
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/install",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "CLI tool for installing Insforge MCP servers across different AI clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",