create-mcp-use-app 0.10.0-canary.0 → 0.10.0

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 +9 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // src/index.tsx
4
4
  import chalk from "chalk";
5
5
  import { Command } from "commander";
6
- import { render } from "ink";
6
+ import { Box, render, Text } from "ink";
7
7
  import SelectInput from "ink-select-input";
8
8
  import TextInput from "ink-text-input";
9
9
  import { execSync, spawn, spawnSync } from "child_process";
@@ -17,12 +17,11 @@ import {
17
17
  rmSync,
18
18
  writeFileSync
19
19
  } from "fs";
20
+ import { tmpdir } from "os";
20
21
  import { dirname, join, resolve } from "path";
21
22
  import { fileURLToPath } from "url";
22
- import { tmpdir } from "os";
23
23
  import ora from "ora";
24
24
  import React, { useState } from "react";
25
- import { Box, Text } from "ink";
26
25
  var __filename = fileURLToPath(import.meta.url);
27
26
  var __dirname = dirname(__filename);
28
27
  function runPackageManager(packageManager, args, cwd) {
@@ -281,8 +280,7 @@ function listTemplates() {
281
280
  }
282
281
  program.name("create-mcp-use-app").description("Create a new MCP server project").version(packageJson.version).argument("[project-name]", "Name of the MCP server project").option(
283
282
  "-t, --template <template>",
284
- "Template to use (starter, mcp-ui, apps-sdk) or GitHub repo URL (owner/repo or https://github.com/owner/repo)",
285
- "starter"
283
+ "Template to use (starter, mcp-ui, apps-sdk) or GitHub repo URL (owner/repo or https://github.com/owner/repo)"
286
284
  ).option("--list-templates", "List all available templates").option("--install", "Install dependencies after creating project").option("--no-git", "Skip initializing a git repository").option("--dev", "Use workspace dependencies for development").option("--canary", "Use canary versions of packages").option("--yarn", "Use yarn as package manager").option("--npm", "Use npm as package manager").option("--pnpm", "Use pnpm as package manager").action(
287
285
  async (projectName, options) => {
288
286
  try {
@@ -306,7 +304,12 @@ program.name("create-mcp-use-app").description("Create a new MCP server project"
306
304
  console.log("");
307
305
  projectName = await promptForProjectName();
308
306
  console.log("");
309
- selectedTemplate = await promptForTemplate();
307
+ if (!options.template) {
308
+ selectedTemplate = await promptForTemplate();
309
+ }
310
+ }
311
+ if (!selectedTemplate) {
312
+ selectedTemplate = "starter";
310
313
  }
311
314
  const sanitizedProjectName = projectName.trim();
312
315
  if (!sanitizedProjectName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mcp-use-app",
3
- "version": "0.10.0-canary.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "Create MCP-Use apps with one command",
6
6
  "author": "mcp-use, Inc.",