@infinitedusky/indusk-mcp 1.14.7 → 1.14.8

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.
@@ -631,8 +631,16 @@ function printMcpInstructions(name, manifest) {
631
631
  if (!server)
632
632
  return;
633
633
  const needsAuth = server.headers && Object.keys(server.headers).length > 0;
634
+ // Remove first, then add — ensures clean state
635
+ try {
636
+ execSync(`claude mcp remove -s project ${name}`, { timeout: 10000, stdio: ["ignore", "pipe", "pipe"] });
637
+ }
638
+ catch {
639
+ // not registered yet, fine
640
+ }
641
+ const serverType = server.type ?? server.transport;
634
642
  // Auto-run claude mcp add for no-auth stdio servers
635
- if (!needsAuth && server.type === "stdio" && server.command) {
643
+ if (!needsAuth && serverType === "stdio" && server.command) {
636
644
  const args = server.args ? ` ${server.args.join(" ")}` : "";
637
645
  const cmd = `claude mcp add -t stdio -s project -- ${name} ${server.command}${args}`;
638
646
  console.info(`\n ${name}: adding MCP server...`);
@@ -647,7 +655,7 @@ function printMcpInstructions(name, manifest) {
647
655
  return;
648
656
  }
649
657
  // Auto-run claude mcp add for no-auth HTTP servers
650
- if (!needsAuth && server.type === "http" && server.url) {
658
+ if (!needsAuth && serverType === "http" && server.url) {
651
659
  const cmd = `claude mcp add -t http -s project -- ${name} ${server.url}`;
652
660
  console.info(`\n ${name}: adding MCP server...`);
653
661
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinitedusky/indusk-mcp",
3
- "version": "1.14.7",
3
+ "version": "1.14.8",
4
4
  "description": "InDusk development system — skills, MCP tools, and CLI for structured AI-assisted development",
5
5
  "type": "module",
6
6
  "files": [