@infinitedusky/indusk-mcp 1.14.6 → 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,31 @@ 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;
642
+ // Auto-run claude mcp add for no-auth stdio servers
643
+ if (!needsAuth && serverType === "stdio" && server.command) {
644
+ const args = server.args ? ` ${server.args.join(" ")}` : "";
645
+ const cmd = `claude mcp add -t stdio -s project -- ${name} ${server.command}${args}`;
646
+ console.info(`\n ${name}: adding MCP server...`);
647
+ try {
648
+ execSync(cmd, { timeout: 15000, stdio: ["ignore", "pipe", "pipe"] });
649
+ console.info(` ${name}: MCP server added (restart Claude Code to load)`);
650
+ }
651
+ catch {
652
+ console.info(` ${name}: auto-add failed. Run manually:`);
653
+ console.info(` ${cmd}`);
654
+ }
655
+ return;
656
+ }
634
657
  // Auto-run claude mcp add for no-auth HTTP servers
635
- if (!needsAuth && server.type === "http" && server.url) {
658
+ if (!needsAuth && serverType === "http" && server.url) {
636
659
  const cmd = `claude mcp add -t http -s project -- ${name} ${server.url}`;
637
660
  console.info(`\n ${name}: adding MCP server...`);
638
661
  try {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "mcp_server": {
11
11
  "name": "chrome-devtools",
12
- "transport": "stdio",
12
+ "type": "stdio",
13
13
  "command": "npx",
14
14
  "args": ["-y", "chrome-devtools-mcp@latest"]
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinitedusky/indusk-mcp",
3
- "version": "1.14.6",
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": [