@insforge/install 0.0.6 → 0.0.10

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 CHANGED
@@ -67,7 +67,21 @@ import {
67
67
  .join(' ');
68
68
 
69
69
  try {
70
+ // First try to remove existing insforge MCP if it exists
71
+ try {
72
+ execSync(`claude mcp remove ${name}`, {
73
+ stdio: 'pipe',
74
+ shell: true
75
+ });
76
+ logger.info("Removed existing insforge MCP installation.");
77
+ } catch (removeError) {
78
+ // It's okay if remove fails - the MCP might not exist
79
+ logger.info("No existing insforge MCP found");
80
+ }
81
+
82
+ // Now add the MCP server
70
83
  const command = `claude mcp add ${name} ${envArgs} -- npx -y @insforge/insforge-mcp@latest`;
84
+ logger.info("Adding insforge MCP server...");
71
85
  execSync(command, {
72
86
  stdio: 'inherit',
73
87
  shell: true
@@ -98,7 +112,7 @@ import {
98
112
  }
99
113
  };
100
114
  writeConfig(config, argv.client);
101
- } else if (argv.client === "cline" || argv.client === "roocode") {
115
+ } else if (argv.client === "cline" || argv.client === "roocode" || argv.client === "trae") {
102
116
  if (!config.mcpServers) config.mcpServers = {};
103
117
  config.mcpServers[name] = {
104
118
  command: "npx",
package/dist/utils.js CHANGED
@@ -48,6 +48,10 @@ var clientPaths = {
48
48
  roocode: {
49
49
  type: "file",
50
50
  path: path.join(baseDir, vscodePath, "rooveterinaryinc.roo-cline", "settings", "mcp_settings.json")
51
+ },
52
+ trae: {
53
+ type: "file",
54
+ path: path.join(baseDir, "Trae", "User", "mcp.json")
51
55
  }
52
56
  };
53
57
  var clientNames = Object.keys(clientPaths);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/install",
3
- "version": "0.0.6",
3
+ "version": "0.0.10",
4
4
  "description": "CLI tool for installing Insforge MCP servers across different AI clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",