@atlashub/smartstack-cli 2.5.2 → 2.5.3
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.
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112490,14 +112490,14 @@ var REQUIRED_MCP_SERVERS = [
|
|
|
112490
112490
|
description: "Library documentation and code examples",
|
|
112491
112491
|
command: "npx",
|
|
112492
112492
|
args: ["-y", "@upstash/context7-mcp"],
|
|
112493
|
-
installCommand: "claude mcp add context7 -- npx -y @upstash/context7-mcp"
|
|
112493
|
+
installCommand: "claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp"
|
|
112494
112494
|
},
|
|
112495
112495
|
{
|
|
112496
112496
|
name: "smartstack",
|
|
112497
112497
|
description: "SmartStack validation and scaffolding (bundled)",
|
|
112498
112498
|
command: "npx",
|
|
112499
112499
|
args: ["-y", "-p", "@atlashub/smartstack-cli", "smartstack-mcp"],
|
|
112500
|
-
installCommand: "claude mcp add smartstack -- npx -y -p @atlashub/smartstack-cli smartstack-mcp"
|
|
112500
|
+
installCommand: "claude mcp add --scope user smartstack -- npx -y -p @atlashub/smartstack-cli smartstack-mcp"
|
|
112501
112501
|
}
|
|
112502
112502
|
];
|
|
112503
112503
|
function getInstalledMcpServers() {
|
|
@@ -112784,7 +112784,7 @@ async function registerMcpServer() {
|
|
|
112784
112784
|
if (!hasSmartstack || mcpList.includes("@atlashub/smartstack-mcp")) {
|
|
112785
112785
|
const addResult = (0, import_child_process2.spawnSync)(
|
|
112786
112786
|
"claude",
|
|
112787
|
-
["mcp", "add", "smartstack", "--", "npx", "-y", "-p", "@atlashub/smartstack-cli", "smartstack-mcp"],
|
|
112787
|
+
["mcp", "add", "--scope", "user", "smartstack", "--", "npx", "-y", "-p", "@atlashub/smartstack-cli", "smartstack-mcp"],
|
|
112788
112788
|
{
|
|
112789
112789
|
encoding: "utf-8",
|
|
112790
112790
|
shell: true,
|
|
@@ -112794,7 +112794,7 @@ async function registerMcpServer() {
|
|
|
112794
112794
|
if (addResult.status === 0) {
|
|
112795
112795
|
logger.success("Registered SmartStack MCP server (bundled)");
|
|
112796
112796
|
} else {
|
|
112797
|
-
logger.warning("Failed to register MCP server - register manually: claude mcp add smartstack -- npx -y -p @atlashub/smartstack-cli smartstack-mcp");
|
|
112797
|
+
logger.warning("Failed to register MCP server - register manually: claude mcp add --scope user smartstack -- npx -y -p @atlashub/smartstack-cli smartstack-mcp");
|
|
112798
112798
|
}
|
|
112799
112799
|
} else {
|
|
112800
112800
|
logger.info("SmartStack MCP server already registered");
|
|
@@ -126055,7 +126055,7 @@ mcpCommand.command("install").description("Register MCP servers in Claude Code C
|
|
|
126055
126055
|
const spinner = logger.spinner(`Registering ${server.name} in CLI...`);
|
|
126056
126056
|
const result = (0, import_child_process9.spawnSync)(
|
|
126057
126057
|
"claude",
|
|
126058
|
-
["mcp", "add", server.name, "--", server.command, ...server.args],
|
|
126058
|
+
["mcp", "add", "--scope", "user", server.name, "--", server.command, ...server.args],
|
|
126059
126059
|
{ encoding: "utf-8", shell: true, timeout: 15e3 }
|
|
126060
126060
|
);
|
|
126061
126061
|
if (result.status === 0) {
|