FastAPI MCP Todo应用程序
- 运行命令
uv run uvicorn src.main:combined_app --port 8000 --reload以启动API/MCP服务器。 - 运行命令
uv run -m src.agent以运行MCP客户端。 - MCP客户端使用Pydantic AI代理作为客户端来运行查询。
- 您可以更改main函数中的查询以尝试不同的工具。
例如: 1. List all the tools you have. 1. Show me all the tasks 1. Delete the task (Give the task title)
