使用说明
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函数中的查询以尝试不同的工具。
例如:
List all the tools you have.Show me all the tasksDelete the task (Give the task title)
