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.
Files changed (27) hide show
  1. package/README.md +2 -8
  2. package/dist/ansi.d.ts +9 -0
  3. package/dist/ansi.d.ts.map +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1768 -629
  6. package/dist/prompts.d.ts +16 -0
  7. package/dist/prompts.d.ts.map +1 -0
  8. package/dist/templates/blank/index.ts +4 -92
  9. package/dist/templates/blank/package.json +3 -12
  10. package/dist/templates/mcp-apps/index.ts +28 -122
  11. package/dist/templates/mcp-apps/package.json +7 -14
  12. package/dist/templates/mcp-apps/resources/product-search-result/view.tsx +26 -0
  13. package/dist/templates/mcp-apps/src/register.d.ts +7 -0
  14. package/dist/templates/mcp-apps/tsconfig.json +8 -14
  15. package/dist/templates/starter/index.ts +43 -80
  16. package/dist/templates/starter/package.json +5 -18
  17. package/package.json +4 -12
  18. package/dist/templates/mcp-apps/pnpm-workspace.yaml +0 -2
  19. package/dist/templates/mcp-apps/resources/product-search-result/components/Accordion.tsx +0 -35
  20. package/dist/templates/mcp-apps/resources/product-search-result/components/AccordionItem.tsx +0 -32
  21. package/dist/templates/mcp-apps/resources/product-search-result/components/Carousel.tsx +0 -51
  22. package/dist/templates/mcp-apps/resources/product-search-result/components/CarouselItem.tsx +0 -54
  23. package/dist/templates/mcp-apps/resources/product-search-result/components/CarouselSkeleton.tsx +0 -20
  24. package/dist/templates/mcp-apps/resources/product-search-result/hooks/useCarouselAnimation.ts +0 -78
  25. package/dist/templates/mcp-apps/resources/product-search-result/types.ts +0 -20
  26. package/dist/templates/mcp-apps/resources/product-search-result/widget.tsx +0 -288
  27. 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, MCPAgent } from "mcp-use";
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}