@insforge/install 0.0.31 → 0.0.33
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 +23 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80,6 +80,29 @@ import {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
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
|
+
// Set enableAllProjectMcpServers to true (overwrite if needed)
|
|
103
|
+
settings.enableAllProjectMcpServers = true;
|
|
104
|
+
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
105
|
+
logger.info("Set enableAllProjectMcpServers: true in .claude/settings.local.json");
|
|
83
106
|
} else if (argv.client === "codex") {
|
|
84
107
|
// Use Codex CLI for Codex
|
|
85
108
|
const homeDir = os.homedir();
|