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 +1 -1
- package/dist/templates/blank/package.json +2 -1
- package/dist/templates/blank/tsconfig.json +1 -5
- package/dist/templates/mcp-apps/index.ts +1 -1
- package/dist/templates/mcp-apps/resources/product-search-result/view.tsx +1 -2
- package/dist/templates/mcp-apps/tools.d.ts +8 -0
- package/dist/templates/mcp-apps/tsconfig.json +1 -1
- package/dist/templates/starter/package.json +2 -1
- package/dist/templates/starter/tsconfig.json +1 -5
- package/package.json +1 -1
- package/dist/templates/mcp-apps/src/register.d.ts +0 -7
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
|
|
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");
|
|
@@ -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"]
|
|
@@ -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"
|
|
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 (
|
|
@@ -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