@leanmcp/cli 0.2.4 → 0.2.5

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17,8 +17,11 @@ function capitalize(str) {
17
17
  }
18
18
  __name(capitalize, "capitalize");
19
19
  var program = new Command();
20
- program.name("leanmcp").description("LeanMCP CLI \u2014 create production-ready MCP servers with Streamable HTTP").version(pkg.version);
21
- program.command("create <projectName>").description("Create a new LeanMCP project with Streamable HTTP transport").action(async (projectName) => {
20
+ program.name("leanmcp").description("LeanMCP CLI \u2014 create production-ready MCP servers with Streamable HTTP").version(pkg.version).addHelpText("after", `
21
+ Examples:
22
+ $ leanmcp create my-app --allow-all # Scaffold without interactive prompts
23
+ `);
24
+ program.command("create <projectName>").description("Create a new LeanMCP project with Streamable HTTP transport").option("--allow-all", "Skip interactive confirmations and assume Yes").action(async (projectName, options) => {
22
25
  const spinner = ora(`Creating project ${projectName}...`).start();
23
26
  const targetDir = path.join(process.cwd(), projectName);
24
27
  if (fs.existsSync(targetDir)) {
@@ -341,7 +344,7 @@ MIT
341
344
  console.log(chalk.cyan(`Next, navigate to your project:
342
345
  cd ${projectName}
343
346
  `));
344
- const shouldInstall = await confirm({
347
+ const shouldInstall = options.allowAll ? true : await confirm({
345
348
  message: "Would you like to install dependencies now?",
346
349
  default: true
347
350
  });
@@ -366,7 +369,7 @@ MIT
366
369
  npmInstall.on("error", reject);
367
370
  });
368
371
  installSpinner.succeed("Dependencies installed successfully!");
369
- const shouldStartDev = await confirm({
372
+ const shouldStartDev = options.allowAll ? true : await confirm({
370
373
  message: "Would you like to start the development server?",
371
374
  default: true
372
375
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanmcp/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Command-line interface for scaffolding LeanMCP projects",
5
5
  "bin": {
6
6
  "leanmcp": "bin/leanmcp.js"