create-mcp-use-app 2.0.0-beta.0 → 2.0.0-beta.1

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
@@ -2189,7 +2189,7 @@ async function main() {
2189
2189
  console.log(" \u251C\u2500\u2500 resources/");
2190
2190
  console.log(" \u2502 \u2514\u2500\u2500 product-search-result/");
2191
2191
  console.log(" \u2502 \u2514\u2500\u2500 view.tsx");
2192
- console.log(" \u251C\u2500\u2500 src/register.d.ts");
2192
+ console.log(" \u251C\u2500\u2500 tools.d.ts");
2193
2193
  console.log(" \u251C\u2500\u2500 index.ts (server entry point)");
2194
2194
  console.log(" \u251C\u2500\u2500 package.json");
2195
2195
  console.log(" \u251C\u2500\u2500 tsconfig.json");
@@ -16,7 +16,8 @@
16
16
  "build": "mcp-use build",
17
17
  "dev": "mcp-use dev",
18
18
  "start": "mcp-use start",
19
- "deploy": "mcp-use deploy"
19
+ "deploy": "mcp-use deploy",
20
+ "typecheck": "tsc --noEmit"
20
21
  },
21
22
  "dependencies": {
22
23
  "mcp-use": "workspace:*"
@@ -13,11 +13,7 @@
13
13
  "forceConsistentCasingInFileNames": true,
14
14
  "skipLibCheck": true,
15
15
  "incremental": true,
16
- "tsBuildInfoFile": "./dist/.tsbuildinfo",
17
- "baseUrl": ".",
18
- "paths": {
19
- "@/*": ["src/*"]
20
- }
16
+ "tsBuildInfoFile": "./dist/.tsbuildinfo"
21
17
  },
22
18
  "include": ["index.ts", "src/**/*", "resources/**/*", "server.ts", ".mcp-use/**/*.d.ts"],
23
19
  "exclude": ["node_modules", "dist"]
@@ -15,7 +15,7 @@ const server = new MCPServer({
15
15
  description: "An MCP Apps server built with mcp-use",
16
16
  });
17
17
 
18
- server.tool(
18
+ export const searchFruits = server.tool(
19
19
  {
20
20
  name: "search-fruits",
21
21
  description: "Search the fruit catalog",
@@ -3,14 +3,13 @@ import { useToolContext } from "mcp-use/react";
3
3
  export default function ProductSearchResult() {
4
4
  const view = useToolContext<"search-fruits">();
5
5
 
6
- if (view.status === "pending" || view.status === "streaming") {
6
+ if (view.status === "pending") {
7
7
  return (
8
8
  <p>
9
9
  Searching{view.toolInput?.query ? ` for ${view.toolInput.query}` : ""}…
10
10
  </p>
11
11
  );
12
12
  }
13
- if (view.status === "cancelled") return <p>Search cancelled.</p>;
14
13
  if (view.status === "error") return <p>{view.error.message}</p>;
15
14
 
16
15
  return (
@@ -0,0 +1,8 @@
1
+ // Created by mcp-use when missing. Existing files are never overwritten.
2
+ declare module "mcp-use/react" {
3
+ interface Register {
4
+ tools: typeof import("./index.js");
5
+ }
6
+ }
7
+
8
+ export {};
@@ -13,6 +13,6 @@
13
13
  "noUncheckedIndexedAccess": true,
14
14
  "exactOptionalPropertyTypes": true
15
15
  },
16
- "include": ["index.ts", "src/**/*", "resources/**/*"],
16
+ "include": ["index.ts", "tools.d.ts", "resources/**/*"],
17
17
  "exclude": ["node_modules", "dist"]
18
18
  }
@@ -19,7 +19,8 @@
19
19
  "build": "mcp-use build",
20
20
  "dev": "mcp-use dev",
21
21
  "start": "mcp-use start",
22
- "deploy": "mcp-use deploy"
22
+ "deploy": "mcp-use deploy",
23
+ "typecheck": "tsc --noEmit"
23
24
  },
24
25
  "dependencies": {
25
26
  "mcp-use": "workspace:*",
@@ -13,11 +13,7 @@
13
13
  "forceConsistentCasingInFileNames": true,
14
14
  "skipLibCheck": true,
15
15
  "incremental": true,
16
- "tsBuildInfoFile": "./dist/.tsbuildinfo",
17
- "baseUrl": ".",
18
- "paths": {
19
- "@/*": ["src/*"]
20
- }
16
+ "tsBuildInfoFile": "./dist/.tsbuildinfo"
21
17
  },
22
18
  "include": ["index.ts", "src/**/*", "resources/**/*", "server.ts", ".mcp-use/**/*.d.ts"],
23
19
  "exclude": ["node_modules", "dist"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mcp-use-app",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.1",
4
4
  "type": "module",
5
5
  "description": "Create MCP-Use apps with one command",
6
6
  "author": "mcp-use, Inc.",
@@ -1,7 +0,0 @@
1
- declare module "mcp-use/react" {
2
- interface Register {
3
- tools: typeof import("../index.js");
4
- }
5
- }
6
-
7
- export {};