@l4yercak3/cli 1.2.10 → 1.2.11
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/package.json +1 -1
- package/src/commands/mcp-setup.js +172 -1
package/package.json
CHANGED
|
@@ -266,7 +266,6 @@ module.exports = {
|
|
|
266
266
|
|
|
267
267
|
// Detect available clients
|
|
268
268
|
const hasClaudeCli = isClaudeInstalled();
|
|
269
|
-
const hasClaudeDesktop = hasClaudeDesktopConfig() || fs.existsSync(path.dirname(getClaudeDesktopConfigPath()));
|
|
270
269
|
|
|
271
270
|
// Build client choices
|
|
272
271
|
const clientChoices = [];
|
|
@@ -286,6 +285,26 @@ module.exports = {
|
|
|
286
285
|
configured: isClaudeDesktopConfigured()
|
|
287
286
|
});
|
|
288
287
|
|
|
288
|
+
clientChoices.push({
|
|
289
|
+
name: 'VS Code (with Continue/Cline)',
|
|
290
|
+
value: 'vscode'
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
clientChoices.push({
|
|
294
|
+
name: 'Cursor',
|
|
295
|
+
value: 'cursor'
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
clientChoices.push({
|
|
299
|
+
name: 'Windsurf',
|
|
300
|
+
value: 'windsurf'
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
clientChoices.push({
|
|
304
|
+
name: 'Zed',
|
|
305
|
+
value: 'zed'
|
|
306
|
+
});
|
|
307
|
+
|
|
289
308
|
clientChoices.push({
|
|
290
309
|
name: 'Other MCP client (show manual instructions)',
|
|
291
310
|
value: 'other'
|
|
@@ -307,6 +326,14 @@ module.exports = {
|
|
|
307
326
|
await setupClaudeCode();
|
|
308
327
|
} else if (client === 'claude-desktop') {
|
|
309
328
|
await setupClaudeDesktop();
|
|
329
|
+
} else if (client === 'vscode') {
|
|
330
|
+
showVSCodeInstructions();
|
|
331
|
+
} else if (client === 'cursor') {
|
|
332
|
+
showCursorInstructions();
|
|
333
|
+
} else if (client === 'windsurf') {
|
|
334
|
+
showWindsurfInstructions();
|
|
335
|
+
} else if (client === 'zed') {
|
|
336
|
+
showZedInstructions();
|
|
310
337
|
} else {
|
|
311
338
|
showOtherClientInstructions();
|
|
312
339
|
}
|
|
@@ -457,6 +484,150 @@ function showClaudeDesktopManualInstructions() {
|
|
|
457
484
|
console.log('');
|
|
458
485
|
}
|
|
459
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Show VS Code setup instructions (Continue, Cline, etc.)
|
|
489
|
+
*/
|
|
490
|
+
function showVSCodeInstructions() {
|
|
491
|
+
console.log(chalk.bold('🔧 VS Code MCP Setup\n'));
|
|
492
|
+
|
|
493
|
+
console.log(chalk.white(' VS Code supports MCP through extensions like Continue or Cline.\n'));
|
|
494
|
+
|
|
495
|
+
console.log(chalk.bold(' Option 1: Continue Extension'));
|
|
496
|
+
console.log(chalk.gray(' 1. Install "Continue" extension from VS Code marketplace'));
|
|
497
|
+
console.log(chalk.gray(' 2. Open Continue settings (gear icon in Continue panel)'));
|
|
498
|
+
console.log(chalk.gray(' 3. Add to your config.json:\n'));
|
|
499
|
+
|
|
500
|
+
const cmdConfig = getClaudeDesktopCommand();
|
|
501
|
+
console.log(chalk.cyan(' "experimental": {'));
|
|
502
|
+
console.log(chalk.cyan(' "modelContextProtocolServers": ['));
|
|
503
|
+
console.log(chalk.cyan(' {'));
|
|
504
|
+
console.log(chalk.cyan(' "name": "l4yercak3",'));
|
|
505
|
+
console.log(chalk.cyan(` "command": "${cmdConfig.command}",`));
|
|
506
|
+
console.log(chalk.cyan(` "args": ${JSON.stringify(cmdConfig.args)}`));
|
|
507
|
+
console.log(chalk.cyan(' }'));
|
|
508
|
+
console.log(chalk.cyan(' ]'));
|
|
509
|
+
console.log(chalk.cyan(' }'));
|
|
510
|
+
console.log('');
|
|
511
|
+
|
|
512
|
+
console.log(chalk.bold(' Option 2: Cline Extension'));
|
|
513
|
+
console.log(chalk.gray(' 1. Install "Cline" extension from VS Code marketplace'));
|
|
514
|
+
console.log(chalk.gray(' 2. Open Cline settings panel'));
|
|
515
|
+
console.log(chalk.gray(' 3. Navigate to MCP Servers section'));
|
|
516
|
+
console.log(chalk.gray(' 4. Add server with command:'));
|
|
517
|
+
console.log(chalk.cyan(` ${cmdConfig.description}`));
|
|
518
|
+
console.log('');
|
|
519
|
+
|
|
520
|
+
console.log(chalk.gray(' Note: Use absolute paths for reliability.'));
|
|
521
|
+
console.log(chalk.gray(` Your l4yercak3 path: ${cmdConfig.command}`));
|
|
522
|
+
console.log('');
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Show Cursor setup instructions
|
|
527
|
+
*/
|
|
528
|
+
function showCursorInstructions() {
|
|
529
|
+
console.log(chalk.bold('🔧 Cursor MCP Setup\n'));
|
|
530
|
+
|
|
531
|
+
console.log(chalk.white(' Cursor supports MCP servers through its settings.\n'));
|
|
532
|
+
|
|
533
|
+
const cmdConfig = getClaudeDesktopCommand();
|
|
534
|
+
const configPath = os.platform() === 'darwin'
|
|
535
|
+
? '~/.cursor/mcp.json'
|
|
536
|
+
: os.platform() === 'win32'
|
|
537
|
+
? '%APPDATA%\\Cursor\\mcp.json'
|
|
538
|
+
: '~/.config/cursor/mcp.json';
|
|
539
|
+
|
|
540
|
+
console.log(chalk.gray(` 1. Create or edit: ${configPath}`));
|
|
541
|
+
console.log(chalk.gray(' 2. Add the following configuration:\n'));
|
|
542
|
+
|
|
543
|
+
console.log(chalk.cyan(' {'));
|
|
544
|
+
console.log(chalk.cyan(' "mcpServers": {'));
|
|
545
|
+
console.log(chalk.cyan(' "l4yercak3": {'));
|
|
546
|
+
console.log(chalk.cyan(` "command": "${cmdConfig.command}",`));
|
|
547
|
+
console.log(chalk.cyan(` "args": ${JSON.stringify(cmdConfig.args)}`));
|
|
548
|
+
console.log(chalk.cyan(' }'));
|
|
549
|
+
console.log(chalk.cyan(' }'));
|
|
550
|
+
console.log(chalk.cyan(' }'));
|
|
551
|
+
console.log('');
|
|
552
|
+
|
|
553
|
+
console.log(chalk.gray(' 3. Restart Cursor for changes to take effect'));
|
|
554
|
+
console.log('');
|
|
555
|
+
|
|
556
|
+
console.log(chalk.yellow(' Note: Cursor\'s MCP support may vary by version.'));
|
|
557
|
+
console.log(chalk.gray(' Check Cursor documentation for the latest setup process.'));
|
|
558
|
+
console.log('');
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Show Windsurf setup instructions
|
|
563
|
+
*/
|
|
564
|
+
function showWindsurfInstructions() {
|
|
565
|
+
console.log(chalk.bold('🔧 Windsurf (Codeium) MCP Setup\n'));
|
|
566
|
+
|
|
567
|
+
console.log(chalk.white(' Windsurf supports MCP through Cascade.\n'));
|
|
568
|
+
|
|
569
|
+
const cmdConfig = getClaudeDesktopCommand();
|
|
570
|
+
const configPath = os.platform() === 'darwin'
|
|
571
|
+
? '~/.codeium/windsurf/mcp_config.json'
|
|
572
|
+
: os.platform() === 'win32'
|
|
573
|
+
? '%APPDATA%\\Codeium\\windsurf\\mcp_config.json'
|
|
574
|
+
: '~/.config/codeium/windsurf/mcp_config.json';
|
|
575
|
+
|
|
576
|
+
console.log(chalk.gray(` 1. Create or edit: ${configPath}`));
|
|
577
|
+
console.log(chalk.gray(' 2. Add the following configuration:\n'));
|
|
578
|
+
|
|
579
|
+
console.log(chalk.cyan(' {'));
|
|
580
|
+
console.log(chalk.cyan(' "mcpServers": {'));
|
|
581
|
+
console.log(chalk.cyan(' "l4yercak3": {'));
|
|
582
|
+
console.log(chalk.cyan(` "command": "${cmdConfig.command}",`));
|
|
583
|
+
console.log(chalk.cyan(` "args": ${JSON.stringify(cmdConfig.args)}`));
|
|
584
|
+
console.log(chalk.cyan(' }'));
|
|
585
|
+
console.log(chalk.cyan(' }'));
|
|
586
|
+
console.log(chalk.cyan(' }'));
|
|
587
|
+
console.log('');
|
|
588
|
+
|
|
589
|
+
console.log(chalk.gray(' 3. Restart Windsurf for changes to take effect'));
|
|
590
|
+
console.log('');
|
|
591
|
+
|
|
592
|
+
console.log(chalk.gray(' Once configured, you can use L4YERCAK3 tools through Cascade.'));
|
|
593
|
+
console.log('');
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Show Zed setup instructions
|
|
598
|
+
*/
|
|
599
|
+
function showZedInstructions() {
|
|
600
|
+
console.log(chalk.bold('🔧 Zed MCP Setup\n'));
|
|
601
|
+
|
|
602
|
+
console.log(chalk.white(' Zed supports MCP servers through its settings.\n'));
|
|
603
|
+
|
|
604
|
+
const cmdConfig = getClaudeDesktopCommand();
|
|
605
|
+
const configPath = os.platform() === 'darwin'
|
|
606
|
+
? '~/.config/zed/settings.json'
|
|
607
|
+
: '~/.config/zed/settings.json';
|
|
608
|
+
|
|
609
|
+
console.log(chalk.gray(` 1. Open Zed settings: ${configPath}`));
|
|
610
|
+
console.log(chalk.gray(' 2. Add or update the context_servers section:\n'));
|
|
611
|
+
|
|
612
|
+
console.log(chalk.cyan(' {'));
|
|
613
|
+
console.log(chalk.cyan(' "context_servers": {'));
|
|
614
|
+
console.log(chalk.cyan(' "l4yercak3": {'));
|
|
615
|
+
console.log(chalk.cyan(` "command": {`));
|
|
616
|
+
console.log(chalk.cyan(` "path": "${cmdConfig.command}",`));
|
|
617
|
+
console.log(chalk.cyan(` "args": ${JSON.stringify(cmdConfig.args)}`));
|
|
618
|
+
console.log(chalk.cyan(' }'));
|
|
619
|
+
console.log(chalk.cyan(' }'));
|
|
620
|
+
console.log(chalk.cyan(' }'));
|
|
621
|
+
console.log(chalk.cyan(' }'));
|
|
622
|
+
console.log('');
|
|
623
|
+
|
|
624
|
+
console.log(chalk.gray(' 3. Restart Zed or reload the configuration'));
|
|
625
|
+
console.log('');
|
|
626
|
+
|
|
627
|
+
console.log(chalk.gray(' See https://zed.dev/docs/context-servers for more details.'));
|
|
628
|
+
console.log('');
|
|
629
|
+
}
|
|
630
|
+
|
|
460
631
|
/**
|
|
461
632
|
* Show instructions for other MCP clients
|
|
462
633
|
*/
|