create-mcp-use-app 2.0.0-beta.4 → 2.0.0-beta.6
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/README.md
CHANGED
|
@@ -118,8 +118,8 @@ npx create-mcp-use-app my-project --template owner/repo#branch-name
|
|
|
118
118
|
|
|
119
119
|
# Use a specific package manager
|
|
120
120
|
npx create-mcp-use-app my-project --npm
|
|
121
|
-
npx create-mcp-use-app my-project --yarn
|
|
122
121
|
npx create-mcp-use-app my-project --pnpm
|
|
122
|
+
npx create-mcp-use-app my-project --bun
|
|
123
123
|
|
|
124
124
|
# Install deps automatically (or --no-install to skip and skip prompt)
|
|
125
125
|
npx create-mcp-use-app my-project --install
|
|
@@ -230,9 +230,9 @@ Once your project is created, you can:
|
|
|
230
230
|
```bash
|
|
231
231
|
npm run dev
|
|
232
232
|
# or
|
|
233
|
-
yarn dev
|
|
234
|
-
# or
|
|
235
233
|
pnpm dev
|
|
234
|
+
# or
|
|
235
|
+
bun run dev
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
This will:
|
package/dist/index.js
CHANGED
|
@@ -1347,9 +1347,9 @@ function parseCli(argv) {
|
|
|
1347
1347
|
skills: { type: "boolean" },
|
|
1348
1348
|
dev: { type: "boolean" },
|
|
1349
1349
|
"sdk-version": { type: "string" },
|
|
1350
|
-
yarn: { type: "boolean" },
|
|
1351
1350
|
npm: { type: "boolean" },
|
|
1352
1351
|
pnpm: { type: "boolean" },
|
|
1352
|
+
bun: { type: "boolean" },
|
|
1353
1353
|
help: { type: "boolean", short: "h" },
|
|
1354
1354
|
version: { type: "boolean", short: "V" }
|
|
1355
1355
|
},
|
|
@@ -1367,9 +1367,9 @@ function parseCli(argv) {
|
|
|
1367
1367
|
skills,
|
|
1368
1368
|
dev: values.dev,
|
|
1369
1369
|
sdkVersion: values["sdk-version"],
|
|
1370
|
-
yarn: values.yarn,
|
|
1371
1370
|
npm: values.npm,
|
|
1372
|
-
pnpm: values.pnpm
|
|
1371
|
+
pnpm: values.pnpm,
|
|
1372
|
+
bun: values.bun
|
|
1373
1373
|
}
|
|
1374
1374
|
};
|
|
1375
1375
|
}
|
|
@@ -1399,8 +1399,8 @@ ${stderr}`));
|
|
|
1399
1399
|
}
|
|
1400
1400
|
function detectPackageManager() {
|
|
1401
1401
|
const userAgent = process.env.npm_config_user_agent || "";
|
|
1402
|
-
if (userAgent.includes("
|
|
1403
|
-
return "
|
|
1402
|
+
if (userAgent.includes("bun")) {
|
|
1403
|
+
return "bun";
|
|
1404
1404
|
}
|
|
1405
1405
|
if (userAgent.includes("pnpm")) {
|
|
1406
1406
|
return "pnpm";
|
|
@@ -1412,33 +1412,26 @@ function detectPackageManager() {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function getDevCommand(packageManager) {
|
|
1414
1414
|
switch (packageManager) {
|
|
1415
|
-
case "yarn":
|
|
1416
|
-
return "yarn dev";
|
|
1417
1415
|
case "pnpm":
|
|
1418
1416
|
return "pnpm dev";
|
|
1417
|
+
case "bun":
|
|
1418
|
+
return "bun run dev";
|
|
1419
1419
|
default:
|
|
1420
1420
|
return "npm run dev";
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
function getInstallCommand(packageManager) {
|
|
1424
1424
|
switch (packageManager) {
|
|
1425
|
-
case "yarn":
|
|
1426
|
-
return "yarn";
|
|
1427
1425
|
case "pnpm":
|
|
1428
1426
|
return "pnpm install";
|
|
1427
|
+
case "bun":
|
|
1428
|
+
return "bun install";
|
|
1429
1429
|
default:
|
|
1430
1430
|
return "npm install";
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
function getInstallArgs(packageManager) {
|
|
1434
|
-
|
|
1435
|
-
case "yarn":
|
|
1436
|
-
return ["install"];
|
|
1437
|
-
case "pnpm":
|
|
1438
|
-
return ["install"];
|
|
1439
|
-
default:
|
|
1440
|
-
return ["install"];
|
|
1441
|
-
}
|
|
1434
|
+
return ["install"];
|
|
1442
1435
|
}
|
|
1443
1436
|
function sendInstallTelemetryEvent(agents, skills) {
|
|
1444
1437
|
const TELEMETRY_URL = "https://add-skill.vercel.sh/t";
|
|
@@ -1916,9 +1909,9 @@ Options:
|
|
|
1916
1909
|
--no-git Skip initializing a git repository
|
|
1917
1910
|
--dev Use workspace dependencies for development
|
|
1918
1911
|
--sdk-version <version> Pin mcp-use to an npm version or dist-tag (e.g. canary, 1.34.0)
|
|
1919
|
-
--yarn Use yarn as package manager
|
|
1920
1912
|
--npm Use npm as package manager
|
|
1921
1913
|
--pnpm Use pnpm as package manager
|
|
1914
|
+
--bun Use Bun as package manager
|
|
1922
1915
|
-h, --help Display help
|
|
1923
1916
|
-V, --version Display version`);
|
|
1924
1917
|
}
|
|
@@ -2078,12 +2071,12 @@ async function main() {
|
|
|
2078
2071
|
}
|
|
2079
2072
|
}
|
|
2080
2073
|
let usedPackageManager = "npm";
|
|
2081
|
-
if (options.
|
|
2082
|
-
usedPackageManager = "yarn";
|
|
2083
|
-
} else if (options.npm) {
|
|
2074
|
+
if (options.npm) {
|
|
2084
2075
|
usedPackageManager = "npm";
|
|
2085
2076
|
} else if (options.pnpm) {
|
|
2086
2077
|
usedPackageManager = "pnpm";
|
|
2078
|
+
} else if (options.bun) {
|
|
2079
|
+
usedPackageManager = "bun";
|
|
2087
2080
|
} else {
|
|
2088
2081
|
const detected = detectPackageManager();
|
|
2089
2082
|
if (detected) {
|
|
@@ -2099,8 +2092,8 @@ async function main() {
|
|
|
2099
2092
|
console.log("");
|
|
2100
2093
|
console.log(cyan("\u{1F4E6} Installing dependencies..."));
|
|
2101
2094
|
console.log("");
|
|
2102
|
-
const isKnownManager = options.
|
|
2103
|
-
const managersToTry = isKnownManager ? [usedPackageManager] : ["npm", "pnpm", "
|
|
2095
|
+
const isKnownManager = options.npm || options.pnpm || options.bun || detectPackageManager();
|
|
2096
|
+
const managersToTry = isKnownManager ? [usedPackageManager] : ["npm", "pnpm", "bun"];
|
|
2104
2097
|
let installed = false;
|
|
2105
2098
|
for (const pm of managersToTry) {
|
|
2106
2099
|
const s = spinner2();
|
|
@@ -2125,7 +2118,7 @@ async function main() {
|
|
|
2125
2118
|
}
|
|
2126
2119
|
if (!installed) {
|
|
2127
2120
|
console.log(
|
|
2128
|
-
'\u26A0\uFE0F Please run "npm install", "
|
|
2121
|
+
'\u26A0\uFE0F Please run "npm install", "pnpm install", or "bun install" manually'
|
|
2129
2122
|
);
|
|
2130
2123
|
}
|
|
2131
2124
|
}
|
|
@@ -2192,7 +2185,7 @@ async function main() {
|
|
|
2192
2185
|
console.log(bold("\u{1F4E4} To deploy:"));
|
|
2193
2186
|
console.log(
|
|
2194
2187
|
cyan(
|
|
2195
|
-
` ${usedPackageManager === "
|
|
2188
|
+
` ${usedPackageManager === "pnpm" ? "pnpm" : usedPackageManager === "bun" ? "bun run" : "npm run"} deploy`
|
|
2196
2189
|
)
|
|
2197
2190
|
);
|
|
2198
2191
|
console.log("");
|
|
@@ -11,7 +11,7 @@ npm install
|
|
|
11
11
|
npm run dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Open [http://localhost:3000/inspector](http://localhost:3000/inspector) with your browser to test your server.
|
|
14
|
+
Open [http://localhost:3000/mcp/inspector](http://localhost:3000/mcp/inspector) with your browser to test your server.
|
|
15
15
|
|
|
16
16
|
You can start building by editing the entry file. Add tools, resources, and prompts — the server auto-reloads as you edit.
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ npm install
|
|
|
11
11
|
npm run dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Open [http://localhost:3000/inspector](http://localhost:3000/inspector) with your browser to test your server.
|
|
14
|
+
Open [http://localhost:3000/mcp/inspector](http://localhost:3000/mcp/inspector) with your browser to test your server.
|
|
15
15
|
|
|
16
16
|
You can start building by editing the entry file. Add tools, resources, and prompts — the server auto-reloads as you edit.
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ npm install
|
|
|
11
11
|
npm run dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Open [http://localhost:3000/inspector](http://localhost:3000/inspector) with your browser to test your server.
|
|
14
|
+
Open [http://localhost:3000/mcp/inspector](http://localhost:3000/mcp/inspector) with your browser to test your server.
|
|
15
15
|
|
|
16
16
|
You can start building by editing the entry file. Add tools and prompts — the server auto-reloads as you edit.
|
|
17
17
|
|