create-mcp-use-app 2.0.7 → 2.0.8

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
@@ -345,7 +345,9 @@ import { MCPAgent } from "@mcp-use/agent/langchain";
345
345
  import { ChatOpenAI } from "@langchain/openai";
346
346
 
347
347
  const client = new MCPClient({
348
- url: "http://localhost:3000/mcp",
348
+ mcpServers: {
349
+ local: { url: "http://localhost:3000/mcp" },
350
+ },
349
351
  });
350
352
 
351
353
  const agent = new MCPAgent({
package/dist/index.js CHANGED
@@ -1318,6 +1318,9 @@ function deriveProjectInfo(rawName, cwd) {
1318
1318
  packageName: sanitizePackageName(name)
1319
1319
  };
1320
1320
  }
1321
+ function getDeployCommand(packageManager) {
1322
+ return `${packageManager} run deploy`;
1323
+ }
1321
1324
  function updatePackageJson(projectPath, projectName) {
1322
1325
  const packageJsonPath = join2(projectPath, "package.json");
1323
1326
  const packageJsonContent = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
@@ -2234,11 +2237,7 @@ async function main() {
2234
2237
  console.log(cyan(` ${getDevCommand(usedPackageManager)}`));
2235
2238
  console.log("");
2236
2239
  console.log(bold("\u{1F4E4} To deploy:"));
2237
- console.log(
2238
- cyan(
2239
- ` ${usedPackageManager === "pnpm" ? "pnpm" : usedPackageManager === "bun" ? "bun run" : "npm run"} deploy`
2240
- )
2241
- );
2240
+ console.log(cyan(` ${getDeployCommand(usedPackageManager)}`));
2242
2241
  console.log("");
2243
2242
  if (options.dev) {
2244
2243
  console.log(
package/dist/utils.d.ts CHANGED
@@ -8,6 +8,7 @@ type ProjectInfo = {
8
8
  packageName: string;
9
9
  };
10
10
  export declare function deriveProjectInfo(rawName: string, cwd: string): ProjectInfo;
11
+ export declare function getDeployCommand(packageManager: string): string;
11
12
  export declare function updatePackageJson(projectPath: string, projectName: string): void;
12
13
  export declare function updateIndexTs(projectPath: string, projectName: string): void;
13
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAoCA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjD;AAID,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAIvD;AAMD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQvD;AAMD,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAmB3E;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAYzE;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAUrE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAoCA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjD;AAID,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAIvD;AAMD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQvD;AAMD,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAmB3E;AAID,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAYzE;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAUrE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mcp-use-app",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "description": "Create MCP-Use apps with one command",
6
6
  "author": "mcp-use, Inc.",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {},
39
39
  "devDependencies": {
40
40
  "@clack/prompts": "^1.7.0",
41
- "vitest": "^4.1.0"
41
+ "vitest": "^4.1.11"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"