@infinitedusky/indusk-mcp 1.14.7 → 1.14.9
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 &&
|
|
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 &&
|
|
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 {
|