@infinitedusky/indusk-mcp 1.14.5 → 1.14.7
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,6 +631,21 @@ function printMcpInstructions(name, manifest) {
|
|
|
631
631
|
if (!server)
|
|
632
632
|
return;
|
|
633
633
|
const needsAuth = server.headers && Object.keys(server.headers).length > 0;
|
|
634
|
+
// Auto-run claude mcp add for no-auth stdio servers
|
|
635
|
+
if (!needsAuth && server.type === "stdio" && server.command) {
|
|
636
|
+
const args = server.args ? ` ${server.args.join(" ")}` : "";
|
|
637
|
+
const cmd = `claude mcp add -t stdio -s project -- ${name} ${server.command}${args}`;
|
|
638
|
+
console.info(`\n ${name}: adding MCP server...`);
|
|
639
|
+
try {
|
|
640
|
+
execSync(cmd, { timeout: 15000, stdio: ["ignore", "pipe", "pipe"] });
|
|
641
|
+
console.info(` ${name}: MCP server added (restart Claude Code to load)`);
|
|
642
|
+
}
|
|
643
|
+
catch {
|
|
644
|
+
console.info(` ${name}: auto-add failed. Run manually:`);
|
|
645
|
+
console.info(` ${cmd}`);
|
|
646
|
+
}
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
634
649
|
// Auto-run claude mcp add for no-auth HTTP servers
|
|
635
650
|
if (!needsAuth && server.type === "http" && server.url) {
|
|
636
651
|
const cmd = `claude mcp add -t http -s project -- ${name} ${server.url}`;
|