create-mcp-use-app 0.14.17 → 2.0.0-beta.0
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 +2 -8
- package/dist/ansi.d.ts +9 -0
- package/dist/ansi.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1768 -629
- package/dist/prompts.d.ts +16 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/templates/blank/index.ts +4 -92
- package/dist/templates/blank/package.json +3 -12
- package/dist/templates/mcp-apps/index.ts +28 -122
- package/dist/templates/mcp-apps/package.json +7 -14
- package/dist/templates/mcp-apps/resources/product-search-result/view.tsx +26 -0
- package/dist/templates/mcp-apps/src/register.d.ts +7 -0
- package/dist/templates/mcp-apps/tsconfig.json +8 -14
- package/dist/templates/starter/index.ts +43 -80
- package/dist/templates/starter/package.json +5 -18
- package/package.json +4 -12
- package/dist/templates/mcp-apps/pnpm-workspace.yaml +0 -2
- package/dist/templates/mcp-apps/resources/product-search-result/components/Accordion.tsx +0 -35
- package/dist/templates/mcp-apps/resources/product-search-result/components/AccordionItem.tsx +0 -32
- package/dist/templates/mcp-apps/resources/product-search-result/components/Carousel.tsx +0 -51
- package/dist/templates/mcp-apps/resources/product-search-result/components/CarouselItem.tsx +0 -54
- package/dist/templates/mcp-apps/resources/product-search-result/components/CarouselSkeleton.tsx +0 -20
- package/dist/templates/mcp-apps/resources/product-search-result/hooks/useCarouselAnimation.ts +0 -78
- package/dist/templates/mcp-apps/resources/product-search-result/types.ts +0 -20
- package/dist/templates/mcp-apps/resources/product-search-result/widget.tsx +0 -288
- package/dist/templates/mcp-apps/resources/styles.css +0 -117
package/README.md
CHANGED
|
@@ -314,7 +314,8 @@ export default function MyWidget() {
|
|
|
314
314
|
Use the MCP server with any MCP-compatible client:
|
|
315
315
|
|
|
316
316
|
```typescript
|
|
317
|
-
import { MCPClient
|
|
317
|
+
import { MCPClient } from "@mcp-use/client";
|
|
318
|
+
import { MCPAgent } from "@mcp-use/agent";
|
|
318
319
|
import { ChatOpenAI } from "@langchain/openai";
|
|
319
320
|
|
|
320
321
|
const client = new MCPClient({
|
|
@@ -342,13 +343,6 @@ The created project includes a `.env.example` file:
|
|
|
342
343
|
PORT=3000
|
|
343
344
|
NODE_ENV=development
|
|
344
345
|
|
|
345
|
-
# OAuth (if using authentication)
|
|
346
|
-
OAUTH_CLIENT_ID=your_client_id
|
|
347
|
-
OAUTH_CLIENT_SECRET=your_client_secret
|
|
348
|
-
|
|
349
|
-
# Database (if using database)
|
|
350
|
-
DATABASE_URL=postgresql://localhost/myapp
|
|
351
|
-
|
|
352
346
|
# Observability (optional)
|
|
353
347
|
LANGFUSE_PUBLIC_KEY=your_public_key
|
|
354
348
|
LANGFUSE_SECRET_KEY=your_secret_key
|
package/dist/ansi.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const bold: (text: string) => string;
|
|
2
|
+
export declare const red: (text: string) => string;
|
|
3
|
+
export declare const green: (text: string) => string;
|
|
4
|
+
export declare const yellow: (text: string) => string;
|
|
5
|
+
export declare const cyan: (text: string) => string;
|
|
6
|
+
export declare const gray: (text: string) => string;
|
|
7
|
+
export declare const white: (text: string) => string;
|
|
8
|
+
export declare const whiteBold: (text: string) => string;
|
|
9
|
+
//# sourceMappingURL=ansi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansi.d.ts","sourceRoot":"","sources":["../src/ansi.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,SAHR,MAAM,KAAG,MAGW,CAAC;AAC9B,eAAO,MAAM,GAAG,SAJP,MAAM,KAAG,MAIW,CAAC;AAC9B,eAAO,MAAM,KAAK,SALT,MAAM,KAAG,MAKa,CAAC;AAChC,eAAO,MAAM,MAAM,SANV,MAAM,KAAG,MAMc,CAAC;AACjC,eAAO,MAAM,IAAI,SAPR,MAAM,KAAG,MAOY,CAAC;AAC/B,eAAO,MAAM,IAAI,SARR,MAAM,KAAG,MAQY,CAAC;AAC/B,eAAO,MAAM,KAAK,SATT,MAAM,KAAG,MASa,CAAC;AAChC,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAAoC,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|