create-mcp-use-app 0.5.1-canary.0 → 0.5.1-canary.2
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
CHANGED
|
@@ -231,7 +231,7 @@ function processTemplateFile(filePath, versions, isDevelopment = false, useCanar
|
|
|
231
231
|
}
|
|
232
232
|
return processedContent;
|
|
233
233
|
}
|
|
234
|
-
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("-t, --template <template>", "Template to use", "starter").option("--
|
|
234
|
+
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("-t, --template <template>", "Template to use", "starter").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(
|
|
235
235
|
async (projectName, options) => {
|
|
236
236
|
try {
|
|
237
237
|
let selectedTemplate = options.template;
|
|
@@ -318,7 +318,7 @@ program.name("create-mcp-use-app").description("Create a new MCP server project"
|
|
|
318
318
|
usedPackageManager = defaultOrder[0];
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
if (options.install) {
|
|
321
|
+
if (options.install === true) {
|
|
322
322
|
console.log("");
|
|
323
323
|
console.log(chalk.cyan("\u{1F4E6} Installing dependencies..."));
|
|
324
324
|
console.log("");
|
|
@@ -459,13 +459,14 @@ program.name("create-mcp-use-app").description("Create a new MCP server project"
|
|
|
459
459
|
console.log("");
|
|
460
460
|
console.log(chalk.bold("\u{1F680} To get started:"));
|
|
461
461
|
console.log(chalk.cyan(` cd ${sanitizedProjectName}`));
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
);
|
|
466
|
-
}
|
|
462
|
+
console.log(
|
|
463
|
+
chalk.cyan(` ${getInstallCommand(usedPackageManager)}`)
|
|
464
|
+
);
|
|
467
465
|
console.log(chalk.cyan(` ${getDevCommand(usedPackageManager)}`));
|
|
468
466
|
console.log("");
|
|
467
|
+
console.log(chalk.bold("\u{1F4E4} To deploy:"));
|
|
468
|
+
console.log(chalk.cyan(` ${usedPackageManager === "yarn" ? "yarn" : usedPackageManager === "pnpm" ? "pnpm" : "npm run"} deploy`));
|
|
469
|
+
console.log("");
|
|
469
470
|
if (options.dev) {
|
|
470
471
|
console.log(
|
|
471
472
|
chalk.yellow(
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "mcp-use build",
|
|
25
25
|
"dev": "mcp-use dev",
|
|
26
|
-
"start": "mcp-use start"
|
|
26
|
+
"start": "mcp-use start",
|
|
27
|
+
"deploy": "mcp-use deploy"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"cors": "^2.8.5",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"zod": "^4.1.12"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
39
|
+
"@types/node": "^20.0.0",
|
|
38
40
|
"@types/react": "^19.2.2",
|
|
39
41
|
"@types/react-dom": "^19.2.2",
|
|
40
42
|
"tsx": "^4.20.6",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "mcp-use build",
|
|
22
22
|
"dev": "mcp-use dev",
|
|
23
|
-
"start": "mcp-use start"
|
|
23
|
+
"start": "mcp-use start",
|
|
24
|
+
"deploy": "mcp-use deploy"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"cors": "^2.8.5",
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
"zod": "^4.1.12"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
36
|
+
"@types/node": "^20.0.0",
|
|
35
37
|
"@types/react": "^19.2.2",
|
|
36
38
|
"@types/react-dom": "^19.2.2",
|
|
37
39
|
"tsx": "^4.20.6",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "mcp-use build",
|
|
25
25
|
"dev": "mcp-use dev",
|
|
26
|
-
"start": "mcp-use start"
|
|
26
|
+
"start": "mcp-use start",
|
|
27
|
+
"deploy": "mcp-use deploy"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"cors": "^2.8.5",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"zod": "^4.1.12"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
39
|
+
"@types/node": "^20.0.0",
|
|
38
40
|
"@types/react": "^19.2.2",
|
|
39
41
|
"@types/react-dom": "^19.2.2",
|
|
40
42
|
"tsx": "^4.20.6",
|