create-mcp-use-app 2.0.0-beta.1 → 2.0.0-beta.3
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 +3 -3
- package/dist/index.js +38 -66
- package/dist/templates/blank/package.json +14 -7
- package/dist/templates/blank/tsconfig.json +13 -10
- package/dist/templates/mcp-apps/index.ts +119 -15
- package/dist/templates/mcp-apps/{tools.d.ts → mcp-env.d.ts} +3 -1
- package/dist/templates/mcp-apps/package.json +16 -14
- package/dist/templates/mcp-apps/public/fruits/apple.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/apricot.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/avocado.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/banana.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/blueberry.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/cherries.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/coconut.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/grapes.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/lemon.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/mango.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/orange.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/pear.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/pineapple.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/plum.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/strawberry.webp +0 -0
- package/dist/templates/mcp-apps/public/fruits/watermelon.webp +0 -0
- package/dist/templates/mcp-apps/tsconfig.json +9 -4
- package/dist/templates/mcp-apps/views/product-search-result/components/Accordion.tsx +35 -0
- package/dist/templates/mcp-apps/views/product-search-result/components/AccordionItem.tsx +35 -0
- package/dist/templates/mcp-apps/views/product-search-result/components/Carousel.tsx +52 -0
- package/dist/templates/mcp-apps/views/product-search-result/components/CarouselItem.tsx +91 -0
- package/dist/templates/mcp-apps/views/product-search-result/components/CarouselSkeleton.tsx +18 -0
- package/dist/templates/mcp-apps/views/product-search-result/hooks/useCarouselAnimation.ts +72 -0
- package/dist/templates/mcp-apps/views/product-search-result/view.css +81 -0
- package/dist/templates/mcp-apps/views/product-search-result/view.tsx +371 -0
- package/dist/templates/starter/package.json +14 -10
- package/dist/templates/starter/tsconfig.json +13 -10
- package/package.json +2 -2
- package/dist/templates/blank/public/favicon.ico +0 -0
- package/dist/templates/mcp-apps/public/favicon.ico +0 -0
- package/dist/templates/mcp-apps/public/fruits/apple.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/apricot.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/avocado.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/banana.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/blueberry.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/cherries.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/coconut.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/grapes.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/lemon.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/mango.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/orange.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/pear.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/pineapple.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/plum.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/strawberry.png +0 -0
- package/dist/templates/mcp-apps/public/fruits/watermelon.png +0 -0
- package/dist/templates/mcp-apps/resources/product-search-result/view.tsx +0 -25
- package/dist/templates/starter/public/favicon.ico +0 -0
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use server",
|
|
3
3
|
"type": "module",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=22.22.2"
|
|
6
|
+
},
|
|
4
7
|
"version": "1.0.0",
|
|
5
|
-
"description": "
|
|
6
|
-
"author": "",
|
|
8
|
+
"description": "an mcp-use server",
|
|
9
|
+
"author": "mcp-use",
|
|
7
10
|
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/mcp-use/mcp-use",
|
|
8
12
|
"keywords": [
|
|
9
13
|
"mcp",
|
|
10
|
-
"server",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"mcp-server",
|
|
15
|
+
"chatgpt plugins",
|
|
16
|
+
"claude connector",
|
|
17
|
+
"mcp-app",
|
|
18
|
+
"mcp-use",
|
|
19
|
+
"manufact"
|
|
16
20
|
],
|
|
17
21
|
"main": "dist/index.js",
|
|
18
22
|
"scripts": {
|
|
@@ -27,7 +31,7 @@
|
|
|
27
31
|
"zod": "^4.4.3"
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
|
-
"@types/node": "^
|
|
31
|
-
"typescript": "7.0.
|
|
34
|
+
"@types/node": "^22.20.0",
|
|
35
|
+
"typescript": "^7.0.2"
|
|
32
36
|
}
|
|
33
37
|
}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "ES2024",
|
|
4
4
|
"jsx": "react-jsx",
|
|
5
|
-
"module": "
|
|
6
|
-
"moduleResolution": "
|
|
7
|
-
"
|
|
5
|
+
"module": "NodeNext",
|
|
6
|
+
"moduleResolution": "NodeNext",
|
|
7
|
+
"lib": ["ES2024", "DOM", "DOM.Iterable"],
|
|
8
8
|
"strict": true,
|
|
9
|
-
"outDir": "./dist",
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
9
|
"esModuleInterop": true,
|
|
13
10
|
"forceConsistentCasingInFileNames": true,
|
|
14
11
|
"skipLibCheck": true,
|
|
15
|
-
"
|
|
16
|
-
"tsBuildInfoFile": "./dist/.tsbuildinfo"
|
|
12
|
+
"noEmit": true
|
|
17
13
|
},
|
|
18
|
-
"include": [
|
|
14
|
+
"include": [
|
|
15
|
+
"index.ts",
|
|
16
|
+
"mcp-env.d.ts",
|
|
17
|
+
"src/**/*",
|
|
18
|
+
"views/**/*",
|
|
19
|
+
"server.ts",
|
|
20
|
+
".mcp-use/**/*.d.ts"
|
|
21
|
+
],
|
|
19
22
|
"exclude": ["node_modules", "dist"]
|
|
20
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mcp-use-app",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Create MCP-Use apps with one command",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": "
|
|
36
|
+
"node": ">=22.22.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {},
|
|
39
39
|
"devDependencies": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useToolContext } from "mcp-use/react";
|
|
2
|
-
|
|
3
|
-
export default function ProductSearchResult() {
|
|
4
|
-
const view = useToolContext<"search-fruits">();
|
|
5
|
-
|
|
6
|
-
if (view.status === "pending") {
|
|
7
|
-
return (
|
|
8
|
-
<p>
|
|
9
|
-
Searching{view.toolInput?.query ? ` for ${view.toolInput.query}` : ""}…
|
|
10
|
-
</p>
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
if (view.status === "error") return <p>{view.error.message}</p>;
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<main>
|
|
17
|
-
<h1>Fruit results</h1>
|
|
18
|
-
<ul>
|
|
19
|
-
{view.toolOutput.items.map((item) => (
|
|
20
|
-
<li key={item.id}>{item.name}</li>
|
|
21
|
-
))}
|
|
22
|
-
</ul>
|
|
23
|
-
</main>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
Binary file
|