- Add react-router-dom dependency for routing support - Create OAuthCallback component with animated background and loading spinner - Add routing to App.tsx with /oauth/callback route - Match styling with main app using animated-bg-container - Use onMcpAuthorization from use-mcp library for OAuth handling - Library already handles multiple server differentiation via state parameter - Each MCP server gets unique OAuth flow identified by state containing server URL - Clean up unused imports and variables in McpServerModal
56 lines
1.7 KiB
JSON
56 lines
1.7 KiB
JSON
{
|
|
"name": "ai-chat-template",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview",
|
|
"deploy": "npm run build && npm exec wrangler deploy",
|
|
"test": "playwright test",
|
|
"test:ui": "playwright test --ui",
|
|
"test:headed": "playwright test --headed",
|
|
"test:html": "playwright test --reporter=html"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/anthropic": "^1.2.12",
|
|
"@ai-sdk/groq": "^1.2.9",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@tailwindcss/vite": "^4.0.14",
|
|
"ai": "^4.1.61",
|
|
"hono": "^4.7.9",
|
|
"idb": "^8.0.2",
|
|
"lucide-react": "^0.482.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-router-dom": "^7.6.2",
|
|
"rehype-highlight": "^7.0.2",
|
|
"remark-gfm": "^4.0.1",
|
|
"tailwindcss": "^4.0.14",
|
|
"use-mcp": "link:../..",
|
|
"workers-ai-provider": "^0.1.3"
|
|
},
|
|
"devDependencies": {
|
|
"@ai-sdk/ui-utils": "^1.2.11",
|
|
"@cloudflare/vite-plugin": "^0.1.12",
|
|
"@cloudflare/workers-types": "^4.20250317.0",
|
|
"@eslint/js": "^9.21.0",
|
|
"@playwright/test": "^1.52.0",
|
|
"@types/react": "^19.0.10",
|
|
"@types/react-dom": "^19.0.4",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"eslint": "^9.21.0",
|
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
"globals": "^15.15.0",
|
|
"prettier": "^3.5.3",
|
|
"typescript": "~5.7.2",
|
|
"typescript-eslint": "^8.24.1",
|
|
"vite": "^6.2.0",
|
|
"wrangler": "^4.1.0"
|
|
},
|
|
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
|
}
|