@insforge/install 0.0.23 → 0.0.24

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 +9 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -56,8 +56,10 @@ import {
56
56
  }
57
57
  const name = "insforge";
58
58
  const mcpVersion = argv.dev ? "@insforge/mcp@dev" : "@insforge/mcp@latest";
59
- try {
60
- const config = readConfig(argv.client);
59
+ const ready = true; // Auto-confirm for simplified installation
60
+ if (ready) {
61
+ try {
62
+ const config = readConfig(argv.client);
61
63
 
62
64
  // Handle different config structures for different clients
63
65
  if (argv.client === "claude-code") {
@@ -87,7 +89,7 @@ import {
87
89
  }
88
90
 
89
91
  // Now add the MCP server
90
- const command = `"${claudePath}" mcp add ${name} -y ${envArgs} -- npx -y ${mcpVersion}`;
92
+ const command = `"${claudePath}" mcp add ${name} ${envArgs} -- npx -y ${mcpVersion}`;
91
93
  logger.info(`Adding insforge MCP server (${mcpVersion})...`);
92
94
  execSync(command, {
93
95
  stdio: 'inherit',
@@ -164,9 +166,10 @@ import {
164
166
  };
165
167
  writeConfig(config, argv.client);
166
168
  }
167
- logger.box(green(`Successfully installed Insforge MCP server in ${argv.client}.`));
168
- } catch (e) {
169
- logger.error(red(e.message));
169
+ logger.box(green(`Successfully installed Insforge MCP server in ${argv.client}.`));
170
+ } catch (e) {
171
+ logger.error(red(e.message));
172
+ }
170
173
  }
171
174
  }
172
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/install",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "CLI tool for installing Insforge MCP servers across different AI clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",