create-mcp-use-app 2.0.0-beta.14 → 2.0.0-beta.16

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
@@ -27,8 +27,7 @@
27
27
 
28
28
  | Package | Description | Version |
29
29
  | ---------------------------------------------------------------------------------------------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------- |
30
- | [mcp-use](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/mcp-use) | Core MCP framework | [![npm](https://img.shields.io/npm/v/mcp-use.svg)](https://www.npmjs.com/package/mcp-use) |
31
- | [@mcp-use/cli](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/cli) | Build tool for MCP apps | [![npm](https://img.shields.io/npm/v/@mcp-use/cli.svg)](https://www.npmjs.com/package/@mcp-use/cli) |
30
+ | [mcp-use](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/server) | MCP framework and CLI | [![npm](https://img.shields.io/npm/v/mcp-use.svg)](https://www.npmjs.com/package/mcp-use) |
32
31
  | [@mcp-use/inspector](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/inspector) | Web-based MCP inspector | [![npm](https://img.shields.io/npm/v/@mcp-use/inspector.svg)](https://www.npmjs.com/package/@mcp-use/inspector) |
33
32
 
34
33
  ---
@@ -66,16 +65,16 @@ my-mcp-server/
66
65
 
67
66
  ### Pre-configured Features
68
67
 
69
- | Feature | Description |
70
- | ----------------------- | ------------------------------------------------- |
71
- | **📝 TypeScript** | Full TypeScript setup with proper types |
72
- | **🔥 Hot Reload** | Auto-restart on code changes during development |
73
- | **🔍 Auto Inspector** | Inspector UI opens automatically in dev mode |
74
- | **🎨 MCP Apps Views** | React views discovered and bundled by the CLI |
75
- | **🛠️ Example Tools** | Sample MCP tools, resources, and prompts |
76
- | **📦 Build Scripts** | Ready-to-use development and production scripts |
68
+ | Feature | Description |
69
+ | ----------------------- | ---------------------------------------------------- |
70
+ | **📝 TypeScript** | Full TypeScript setup with proper types |
71
+ | **🔥 Hot Reload** | Auto-restart on code changes during development |
72
+ | **🔍 Auto Inspector** | Inspector UI opens automatically in dev mode |
73
+ | **🎨 MCP Apps Views** | React views discovered and bundled by the CLI |
74
+ | **🛠️ Example Tools** | Sample MCP tools, resources, and prompts |
75
+ | **📦 Build Scripts** | Ready-to-use development and production scripts |
77
76
  | **✅ Type Checking** | Refreshes MCP view types, then runs local TypeScript |
78
- | **🚀 Production Ready** | Optimized build configuration |
77
+ | **🚀 Production Ready** | Optimized build configuration |
79
78
 
80
79
  ---
81
80
 
@@ -507,8 +506,8 @@ See our [contributing guide](https://github.com/mcp-use/mcp-use/blob/main/CONTRI
507
506
 
508
507
  - [mcp-use Documentation](https://github.com/mcp-use/mcp-use)
509
508
  - [Model Context Protocol Spec](https://modelcontextprotocol.io)
510
- - [Creating MCP Tools](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/mcp-use#-mcp-server-framework)
511
- - [Building UI Widgets](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/cli#-creating-ui-widgets)
509
+ - [Creating MCP Tools](https://mcp-use.com/docs/typescript/server/tools)
510
+ - [Building MCP App Views](https://mcp-use.com/docs/typescript/mcp-apps)
512
511
  - [Using the Inspector](https://github.com/mcp-use/mcp-use/tree/main/libraries/typescript/packages/inspector)
513
512
  - [Supabase Edge Functions](https://supabase.com/docs/guides/functions)
514
513
 
package/dist/index.js CHANGED
@@ -1334,6 +1334,35 @@ function updateIndexTs(projectPath, projectName) {
1334
1334
  writeFileSync(indexPath, content);
1335
1335
  }
1336
1336
 
1337
+ // src/skills-config.ts
1338
+ var SKILLS_REPO = "https://github.com/mcp-use/mcp-use.git";
1339
+ var SKILLS_SPARSE_PATH = "skills/mcp-apps-builder";
1340
+ var SKILLS_AGENT_DIRS = [".cursor", ".claude", ".agents"];
1341
+ function getDefaultDistTag(packageVersion) {
1342
+ return packageVersion.includes("-beta.") ? "beta" : "latest";
1343
+ }
1344
+ function getSkillsBranch(packageVersion) {
1345
+ return getDefaultDistTag(packageVersion) === "beta" ? "beta" : "main";
1346
+ }
1347
+ function getSkillsManualInstallCommand(packageVersion) {
1348
+ const branch = getSkillsBranch(packageVersion);
1349
+ return `npx --yes skills add mcp-use/mcp-use#${branch} --yes --skill mcp-apps-builder -a cursor -a claude-code -a codex`;
1350
+ }
1351
+ function getSkillsCloneArgs(repoDir, packageVersion) {
1352
+ return [
1353
+ "clone",
1354
+ "--depth",
1355
+ "1",
1356
+ "--filter=blob:none",
1357
+ "--sparse",
1358
+ "--single-branch",
1359
+ "--branch",
1360
+ getSkillsBranch(packageVersion),
1361
+ SKILLS_REPO,
1362
+ repoDir
1363
+ ];
1364
+ }
1365
+
1337
1366
  // src/index.ts
1338
1367
  var __filename = fileURLToPath(import.meta.url);
1339
1368
  var __dirname = dirname2(__filename);
@@ -1455,10 +1484,6 @@ function sendInstallTelemetryEvent(agents, skills) {
1455
1484
  } catch {
1456
1485
  }
1457
1486
  }
1458
- var SKILLS_REPO = "https://github.com/mcp-use/mcp-use.git";
1459
- var SKILLS_SPARSE_PATH = "skills/mcp-apps-builder";
1460
- var SKILLS_AGENT_DIRS = [".cursor", ".claude", ".agent"];
1461
- var SKILLS_MANUAL_INSTALL_CMD = "npx --yes skills add mcp-use/mcp-use --yes --skill mcp-apps-builder -a cursor -a claude-code -a codex";
1462
1487
  function isGitAvailable() {
1463
1488
  const result = spawnSync("git", ["--version"], {
1464
1489
  stdio: "ignore",
@@ -1469,7 +1494,11 @@ function isGitAvailable() {
1469
1494
  function warnSkillsInstallFailed(missingGit) {
1470
1495
  const reason = missingGit ? "Failed to install skills: git is not installed or not in PATH." : "Failed to install skills.";
1471
1496
  console.log(yellow(`\u26A0\uFE0F ${reason}`));
1472
- console.log(yellow(` Run manually: ${SKILLS_MANUAL_INSTALL_CMD}`));
1497
+ console.log(
1498
+ yellow(
1499
+ ` Run manually: ${getSkillsManualInstallCommand(packageJson.version)}`
1500
+ )
1501
+ );
1473
1502
  }
1474
1503
  async function installSkills(projectPath) {
1475
1504
  const tempDir = mkdtempSync(join3(tmpdir(), "mcp-use-skills-"));
@@ -1477,17 +1506,11 @@ async function installSkills(projectPath) {
1477
1506
  try {
1478
1507
  const clone = spawnSync(
1479
1508
  "git",
1480
- [
1481
- "clone",
1482
- "--depth",
1483
- "1",
1484
- "--filter=blob:none",
1485
- "--sparse",
1486
- "--single-branch",
1487
- SKILLS_REPO,
1488
- repoDir
1489
- ],
1490
- { stdio: "ignore", shell: false }
1509
+ getSkillsCloneArgs(repoDir, packageJson.version),
1510
+ {
1511
+ stdio: "ignore",
1512
+ shell: false
1513
+ }
1491
1514
  );
1492
1515
  if (clone.status !== 0 || clone.error) {
1493
1516
  throw new Error("git clone failed");
@@ -2022,21 +2045,24 @@ async function main() {
2022
2045
  } else if (options.sdkVersion) {
2023
2046
  mcpUseVersion = options.sdkVersion;
2024
2047
  } else {
2048
+ const defaultDistTag = getDefaultDistTag(packageJson.version);
2025
2049
  const response = await fetch("https://registry.npmjs.org/mcp-use", {
2026
2050
  headers: { Accept: "application/vnd.npm.install-v1+json" },
2027
2051
  signal: AbortSignal.timeout(1e4)
2028
2052
  });
2029
2053
  if (!response.ok) {
2030
2054
  throw new Error(
2031
- `Failed to resolve the mcp-use beta dist-tag from npm (${response.status})`
2055
+ `Failed to resolve the mcp-use ${defaultDistTag} dist-tag from npm (${response.status})`
2032
2056
  );
2033
2057
  }
2034
2058
  const metadata = await response.json();
2035
- const betaVersion = metadata["dist-tags"]?.beta;
2036
- if (!betaVersion) {
2037
- throw new Error("npm did not return a beta version for mcp-use");
2059
+ const defaultVersion = metadata["dist-tags"]?.[defaultDistTag];
2060
+ if (!defaultVersion) {
2061
+ throw new Error(
2062
+ `npm did not return a ${defaultDistTag} version for mcp-use`
2063
+ );
2038
2064
  }
2039
- mcpUseVersion = betaVersion;
2065
+ mcpUseVersion = defaultVersion;
2040
2066
  }
2041
2067
  const versions = { "mcp-use": mcpUseVersion };
2042
2068
  if (!useCurrentDir) {
@@ -2153,7 +2179,7 @@ async function main() {
2153
2179
  console.log(bold("\u{1F4C1} Project structure:"));
2154
2180
  console.log(` ${useCurrentDir ? "." : displayName}/`);
2155
2181
  if (skillsInstalled) {
2156
- console.log(" \u251C\u2500\u2500 .agent/skills/");
2182
+ console.log(" \u251C\u2500\u2500 .agents/skills/");
2157
2183
  console.log(" \u251C\u2500\u2500 .claude/skills/");
2158
2184
  console.log(" \u251C\u2500\u2500 .cursor/skills/");
2159
2185
  }
@@ -0,0 +1,8 @@
1
+ export declare const SKILLS_REPO = "https://github.com/mcp-use/mcp-use.git";
2
+ export declare const SKILLS_SPARSE_PATH = "skills/mcp-apps-builder";
3
+ export declare const SKILLS_AGENT_DIRS: readonly [".cursor", ".claude", ".agents"];
4
+ export declare function getDefaultDistTag(packageVersion: string): "beta" | "latest";
5
+ export declare function getSkillsBranch(packageVersion: string): "beta" | "main";
6
+ export declare function getSkillsManualInstallCommand(packageVersion: string): string;
7
+ export declare function getSkillsCloneArgs(repoDir: string, packageVersion: string): string[];
8
+ //# sourceMappingURL=skills-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills-config.d.ts","sourceRoot":"","sources":["../src/skills-config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,2CAA2C,CAAC;AACpE,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,4CAA6C,CAAC;AAE5E,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAE3E;AAED,wBAAgB,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAEvE;AAED,wBAAgB,6BAA6B,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GACrB,MAAM,EAAE,CAaV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mcp-use-app",
3
- "version": "2.0.0-beta.14",
3
+ "version": "2.0.0-beta.16",
4
4
  "type": "module",
5
5
  "description": "Create MCP-Use apps with one command",
6
6
  "author": "mcp-use, Inc.",