claude-all-config 3.7.4 → 3.7.5
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/VERSION +1 -1
- package/package.json +1 -1
- package/postinstall.js +11 -5
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.7.
|
|
1
|
+
3.7.5
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-all-config",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.5",
|
|
4
4
|
"description": "🦾 MONSTER ENGINEER v2 - Ultimate AI CLI with 63 Skills, 12 Superpowers, 14 Agents. Multi-Agent Orchestration, Cost-Aware, Security Scorecard, Parallel-First.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/postinstall.js
CHANGED
|
@@ -171,14 +171,18 @@ function installClaude() {
|
|
|
171
171
|
console.log(` 📂 ${contextCount} context files`);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// MCP config
|
|
174
|
+
// MCP config — expand ${HOME} at install time (Claude Code does NOT expand
|
|
175
|
+
// env vars inside args, only inside the env block).
|
|
175
176
|
const mcpSrc = path.join(PKG_DIR, 'mcp.json');
|
|
176
177
|
const mcpDest = path.join(HOME, '.mcp.json');
|
|
177
178
|
if (fs.existsSync(mcpSrc)) {
|
|
178
179
|
try {
|
|
179
|
-
fs.
|
|
180
|
+
let mcpContent = fs.readFileSync(mcpSrc, 'utf8');
|
|
181
|
+
// Replace ${HOME} → resolved user home so filesystem MCP gets a real path.
|
|
182
|
+
mcpContent = mcpContent.replace(/\$\{HOME\}/g, HOME);
|
|
183
|
+
fs.writeFileSync(mcpDest, mcpContent);
|
|
180
184
|
try { fs.chmodSync(mcpDest, 0o600); } catch {}
|
|
181
|
-
console.log(` 🔧 MCP config (
|
|
185
|
+
console.log(` 🔧 MCP config (11 servers, \${HOME} expanded → ${HOME})`);
|
|
182
186
|
} catch (e) {
|
|
183
187
|
console.log(` ⚠️ MCP config skipped (${e.code || 'error'}): ${mcpDest}`);
|
|
184
188
|
}
|
|
@@ -274,12 +278,14 @@ function installGemini() {
|
|
|
274
278
|
console.log(` 📚 lib`);
|
|
275
279
|
}
|
|
276
280
|
|
|
277
|
-
// MCP config for Gemini
|
|
281
|
+
// MCP config for Gemini — same ${HOME} expansion as Claude side.
|
|
278
282
|
const mcpSrc = path.join(PKG_DIR, 'mcp.json');
|
|
279
283
|
const mcpDest = path.join(GEMINI_DIR, 'mcp.json');
|
|
280
284
|
if (fs.existsSync(mcpSrc)) {
|
|
281
285
|
try {
|
|
282
|
-
fs.
|
|
286
|
+
let mcpContent = fs.readFileSync(mcpSrc, 'utf8');
|
|
287
|
+
mcpContent = mcpContent.replace(/\$\{HOME\}/g, HOME);
|
|
288
|
+
fs.writeFileSync(mcpDest, mcpContent);
|
|
283
289
|
try { fs.chmodSync(mcpDest, 0o600); } catch {}
|
|
284
290
|
console.log(` 🔧 MCP config (11 servers)`);
|
|
285
291
|
} catch (e) {
|