50c 3.0.3 → 3.0.4
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/README.md +1 -1
- package/bin/50c.js +36 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Add to your IDE's MCP config:
|
|
|
122
122
|
}
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
> **Note:** Using `50c@latest` ensures you always get the newest version. For stability, pin to a specific version (e.g., `50c@3.0.
|
|
125
|
+
> **Note:** Using `50c@latest` ensures you always get the newest version. For stability, pin to a specific version (e.g., `50c@3.0.4`).
|
|
126
126
|
|
|
127
127
|
## Config
|
|
128
128
|
|
package/bin/50c.js
CHANGED
|
@@ -762,10 +762,25 @@ function installMCP() {
|
|
|
762
762
|
{ name: 'JetBrains', path: isWin ? path.join(appData, 'JetBrains', 'mcp.json') : path.join(home, '.config', 'JetBrains', 'mcp.json'), key: 'mcpServers' },
|
|
763
763
|
].filter(ide => ide.path);
|
|
764
764
|
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
765
|
+
// MCP servers to install
|
|
766
|
+
const mcpServers = {
|
|
767
|
+
'50c': {
|
|
768
|
+
command: 'npx',
|
|
769
|
+
args: ['-y', '50c@latest'],
|
|
770
|
+
env: { FIFTYC_API_KEY: API_KEY || '<YOUR_API_KEY>' }
|
|
771
|
+
},
|
|
772
|
+
'50c-vault': {
|
|
773
|
+
command: 'npx',
|
|
774
|
+
args: ['-y', '50c-vault@latest']
|
|
775
|
+
},
|
|
776
|
+
'playwright': {
|
|
777
|
+
command: 'npx',
|
|
778
|
+
args: ['-y', '@anthropic-ai/mcp-server-playwright']
|
|
779
|
+
},
|
|
780
|
+
'filesystem': {
|
|
781
|
+
command: 'npx',
|
|
782
|
+
args: ['-y', '@anthropic-ai/mcp-server-filesystem', home]
|
|
783
|
+
}
|
|
769
784
|
};
|
|
770
785
|
|
|
771
786
|
let installed = [];
|
|
@@ -782,12 +797,20 @@ function installMCP() {
|
|
|
782
797
|
}
|
|
783
798
|
|
|
784
799
|
if (!config[ide.key]) config[ide.key] = {};
|
|
785
|
-
|
|
800
|
+
|
|
801
|
+
let addedAny = false;
|
|
802
|
+
for (const [name, entry] of Object.entries(mcpServers)) {
|
|
803
|
+
if (!config[ide.key][name]) {
|
|
804
|
+
config[ide.key][name] = entry;
|
|
805
|
+
addedAny = true;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
if (!addedAny) {
|
|
786
810
|
console.log(`[skip] ${ide.name} - already configured`);
|
|
787
811
|
continue;
|
|
788
812
|
}
|
|
789
813
|
|
|
790
|
-
config[ide.key]['50c'] = mcpEntry;
|
|
791
814
|
fs.mkdirSync(dir, { recursive: true });
|
|
792
815
|
fs.writeFileSync(ide.path, JSON.stringify(config, null, 2));
|
|
793
816
|
installed.push(ide.name);
|
|
@@ -800,11 +823,18 @@ function installMCP() {
|
|
|
800
823
|
console.log('');
|
|
801
824
|
if (installed.length > 0) {
|
|
802
825
|
console.log(`Installed to: ${installed.join(', ')}`);
|
|
826
|
+
console.log('');
|
|
827
|
+
console.log('MCPs added:');
|
|
828
|
+
console.log(' 50c - AI dev tools ($0.01-$0.65)');
|
|
829
|
+
console.log(' 50c-vault - Secure credentials (Windows Hello/Touch ID)');
|
|
830
|
+
console.log(' playwright - Browser automation (free)');
|
|
831
|
+
console.log(' filesystem - File system access (free)');
|
|
803
832
|
if (!API_KEY) {
|
|
804
833
|
console.log('');
|
|
805
834
|
console.log('Next: 50c config key <your_api_key>');
|
|
806
835
|
console.log('Get key at: https://50c.ai');
|
|
807
836
|
} else {
|
|
837
|
+
console.log('');
|
|
808
838
|
console.log('Restart your IDE to activate.');
|
|
809
839
|
}
|
|
810
840
|
} else {
|