内容
# 待办事项
- [x] MCP Tools 与 Vercel AI SDK
- [x] Vercel AI 与 Fastapi (https://github.com/myhendry/proprag-server/blob/main/routers/llm.py)
- [x] [Fastapi 与 Pydantic AI](https://www.youtube.com/watch?v=6yebvAqbFvI&t=880s)
- [ ] Fastapi + Pydantic AI + Nextjs
- [ ] Pydantic AI 与 MCP
# 开始使用
_请记得在你的 vercel/ai 的 useChat 中设置特定的 api 变量,位于 web/next/src/app/page.tsx,以指向正确的服务器_
_你也可以在 web/next/src/api/chat/route.ts 中设置你首选的 llm_
## 对于 Fastapi + Pydantic AI + Nextjs
```
bun run dev:pydantic
<!-- fastapi dev main.py -->
```
## 对于 Vercel/ai 和 MCP
前往 web/next
```
bun run dev:mcp // 该脚本将同时运行所有文件夹
```
## 单独运行(不推荐)
```
<!-- frontend -->
bun run dev
```
```
<!-- api-fulfillment -->
bun run dev
```
```
<!-- api-products -->
bun run dev
```
```
<!-- mcp-server-js -->
node src/sse-server.js
node src/stdio-server.js
```
```
<!-- demo-mcp-server -->
node src/server.js
```