claude-all-config 3.0.0 ā 3.1.0
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/bin/mcp-install.js +46 -0
- package/package.json +3 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const https = require('https');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
const MCP_CONFIG_URL = 'https://raw.githubusercontent.com/zesbe/claude-mcp-config/main/mcp.json';
|
|
8
|
+
const HOME = os.homedir();
|
|
9
|
+
const MCP_PATH = path.join(HOME, '.mcp.json');
|
|
10
|
+
|
|
11
|
+
console.log('š ClaudeAll MCP Config Installer\n');
|
|
12
|
+
|
|
13
|
+
// Backup existing config
|
|
14
|
+
if (fs.existsSync(MCP_PATH)) {
|
|
15
|
+
const backup = `${MCP_PATH}.backup.${Date.now()}`;
|
|
16
|
+
fs.copyFileSync(MCP_PATH, backup);
|
|
17
|
+
console.log(`š¦ Backed up existing config to ${backup}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Download MCP config
|
|
21
|
+
console.log('š„ Downloading MCP config...');
|
|
22
|
+
|
|
23
|
+
https.get(MCP_CONFIG_URL, (res) => {
|
|
24
|
+
let data = '';
|
|
25
|
+
res.on('data', chunk => data += chunk);
|
|
26
|
+
res.on('end', () => {
|
|
27
|
+
try {
|
|
28
|
+
// Validate JSON
|
|
29
|
+
JSON.parse(data);
|
|
30
|
+
fs.writeFileSync(MCP_PATH, data);
|
|
31
|
+
console.log(`ā
Installed MCP config to ${MCP_PATH}\n`);
|
|
32
|
+
|
|
33
|
+
const config = JSON.parse(data);
|
|
34
|
+
const servers = Object.keys(config.mcpServers || {});
|
|
35
|
+
console.log('MCP Servers installed:');
|
|
36
|
+
servers.forEach((s, i) => console.log(` ${i+1}. ${s}`));
|
|
37
|
+
console.log('\nš Run "claude" to start with MCP enabled!');
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error('ā Invalid JSON response');
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}).on('error', (e) => {
|
|
44
|
+
console.error(`ā Download failed: ${e.message}`);
|
|
45
|
+
process.exit(1);
|
|
46
|
+
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-all-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "š¤ Universal AI CLI Config with Advanced Skills System - Quality Scoring, Scaffolding, Testing, Hooks & Multi-Agent Support (Claude Code, Cursor, Copilot, Gemini & 20+ More)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"claude-all": "./claude-all",
|
|
8
8
|
"claude-all-skills": "./bin/skills-cli.js",
|
|
9
|
-
"claude-all-update": "./update.sh"
|
|
9
|
+
"claude-all-update": "./update.sh",
|
|
10
|
+
"claude-all-mcp": "./bin/mcp-install.js"
|
|
10
11
|
},
|
|
11
12
|
"scripts": {
|
|
12
13
|
"postinstall": "node postinstall.js || bash install.sh",
|