@insforge/install 0.0.30 → 0.0.32

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
@@ -63,7 +63,15 @@ import {
63
63
  if (argv.client === "claude-code") {
64
64
  // Claude Code uses mcpServers at root level
65
65
  if (!config.mcpServers) config.mcpServers = {};
66
- config.mcpServers[name] = {
66
+ const isWindows = process.platform === 'win32';
67
+ config.mcpServers[name] = isWindows ? {
68
+ command: "cmd",
69
+ args: ["/c", "npx", "-y", mcpVersion],
70
+ env: {
71
+ API_KEY: envVars.API_KEY,
72
+ API_BASE_URL: envVars.API_BASE_URL
73
+ }
74
+ } : {
67
75
  command: "npx",
68
76
  args: ["-y", mcpVersion],
69
77
  env: {
@@ -72,6 +80,33 @@ import {
72
80
  }
73
81
  };
74
82
  writeConfig(config, argv.client);
83
+
84
+ // Create or update .claude/settings.local.json with enableAllProjectMcpServers
85
+ const fs = await import('fs');
86
+ const claudeDir = path.join(process.cwd(), '.claude');
87
+ const settingsPath = path.join(claudeDir, 'settings.local.json');
88
+
89
+ if (!fs.existsSync(claudeDir)) {
90
+ fs.mkdirSync(claudeDir, { recursive: true });
91
+ }
92
+
93
+ let settings = {};
94
+ if (fs.existsSync(settingsPath)) {
95
+ try {
96
+ settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));
97
+ } catch (error) {
98
+ logger.warn(`Could not parse existing settings.local.json: ${error.message}`);
99
+ }
100
+ }
101
+
102
+ // Add enableAllProjectMcpServers if not present
103
+ if (!settings.hasOwnProperty('enableAllProjectMcpServers')) {
104
+ settings.enableAllProjectMcpServers = true;
105
+ fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
106
+ logger.info("Added enableAllProjectMcpServers: true to .claude/settings.local.json");
107
+ } else {
108
+ logger.info("enableAllProjectMcpServers already exists in .claude/settings.local.json");
109
+ }
75
110
  } else if (argv.client === "codex") {
76
111
  // Use Codex CLI for Codex
77
112
  const homeDir = os.homedir();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/install",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "CLI tool for installing Insforge MCP servers across different AI clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +0,0 @@
1
- {
2
- "enabledMcpjsonServers": [
3
- "insforge"
4
- ],
5
- "enableAllProjectMcpServers": true
6
- }
package/.mcp.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "insforge": {
4
- "command": "npx",
5
- "args": [
6
- "-y",
7
- "@insforge/mcp@latest"
8
- ],
9
- "env": {
10
- "API_KEY": "ik_fff113df777823a0518b8067e4f4f49bb11661904af26b9fda2ac80892b0558c",
11
- "API_BASE_URL": "http://localhost:7130"
12
- }
13
- }
14
- }
15
- }