@leanmcp/cli 0.5.11-alpha.71.4ccfdc9 → 0.5.11-alpha.73.30c304f

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4023,6 +4023,10 @@ Global Options:
4023
4023
  -h, --help Display help for command
4024
4024
  -d, --debug Enable debug logging for all commands
4025
4025
  `);
4026
+ function toPascalCase(str) {
4027
+ return str.split(/[-_\s]+/).map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join("");
4028
+ }
4029
+ __name(toPascalCase, "toPascalCase");
4026
4030
  program.command("create <projectName>").description("Create a new LeanMCP project with Streamable HTTP transport").option("--allow-all", "Skip interactive confirmations and assume Yes").option("--no-dashboard", "Disable dashboard UI at / and /mcp GET endpoints").option("-i, --install", "Install dependencies automatically (non-interactive, no dev server)").option("--no-install", "Skip dependency installation (non-interactive)").option("--python", "Create a Python MCP project instead of TypeScript").action(async (projectName, options) => {
4027
4031
  trackCommand("create", {
4028
4032
  projectName,
@@ -4094,7 +4098,7 @@ PORT=3001
4094
4098
  compilerOptions: {
4095
4099
  module: "ESNext",
4096
4100
  target: "ES2022",
4097
- moduleResolution: "Node",
4101
+ moduleResolution: "Bundler",
4098
4102
  esModuleInterop: true,
4099
4103
  strict: true,
4100
4104
  skipLibCheck: true,
@@ -4117,7 +4121,8 @@ PORT=3001
4117
4121
  dashboard: false, // Dashboard disabled via --no-dashboard` : "";
4118
4122
  const mainTs = getMainTsTemplate(projectName, dashboardLine);
4119
4123
  await fs13.writeFile(path13.join(targetDir, "main.ts"), mainTs);
4120
- const exampleServiceTs = getExampleServiceTemplate(projectName);
4124
+ const className = toPascalCase(projectName);
4125
+ const exampleServiceTs = getExampleServiceTemplate(className);
4121
4126
  await fs13.writeFile(path13.join(targetDir, "mcp", "example", "index.ts"), exampleServiceTs);
4122
4127
  const gitignore = gitignoreTemplate;
4123
4128
  const env = `# Server Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanmcp/cli",
3
- "version": "0.5.11-alpha.71.4ccfdc9",
3
+ "version": "0.5.11-alpha.73.30c304f",
4
4
  "description": "Command-line interface for scaffolding LeanMCP projects",
5
5
  "bin": {
6
6
  "leanmcp": "bin/leanmcp.js"