@infinitedusky/indusk-mcp 1.5.14 → 1.5.15

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.
@@ -597,9 +597,16 @@ function printMcpInstructions(name, manifest) {
597
597
  ];
598
598
  const cmd = `claude ${args.map(a => a.includes(" ") ? `"${a}"` : a).join(" ")}`;
599
599
  console.info(`\n ${name}: adding MCP server with credentials from .env...`);
600
+ // Remove existing entry first so we always write fresh credentials
601
+ try {
602
+ execSync(`claude mcp remove -s project ${name}`, { cwd: process.cwd(), timeout: 10000, stdio: ["ignore", "pipe", "pipe"] });
603
+ }
604
+ catch {
605
+ // Ignore — may not exist
606
+ }
600
607
  try {
601
608
  execSync(cmd, { cwd: process.cwd(), timeout: 15000, stdio: ["ignore", "pipe", "pipe"] });
602
- console.info(` ${name}: MCP server added (restart Claude Code to load)`);
609
+ console.info(` ${name}: MCP server configured (restart Claude Code to load)`);
603
610
  return;
604
611
  }
605
612
  catch (e) {
@@ -607,6 +614,7 @@ function printMcpInstructions(name, manifest) {
607
614
  const stderr = err.stderr ? String(err.stderr).trim() : "";
608
615
  console.info(` ${name}: auto-add failed. ${stderr || err.message || ""}`);
609
616
  console.info(` command was: ${cmd}`);
617
+ return;
610
618
  }
611
619
  }
612
620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinitedusky/indusk-mcp",
3
- "version": "1.5.14",
3
+ "version": "1.5.15",
4
4
  "description": "InDusk development system — skills, MCP tools, and CLI for structured AI-assisted development",
5
5
  "type": "module",
6
6
  "files": [