ADK MCP Agent
一个基于 Google ADK 和 Model Context Protocol (MCP) Google Maps 工具集的流式聊天代理。
本地开发
- 安装依赖:
- 在
app/
目录下创建.env
文件并配置你的 API 密钥。
- 本地运行:
项目结构
- 代理逻辑位于
agent/
目录下的agent/agents.py
文件中。
- FastAPI 应用和用户界面位于
app/
目录下。
部署
要在本地测试并运行带有用户界面的应用:
- 安装依赖:
- 配置环境变量:
- 在
app/
目录下创建.env
文件,并填写你的 API 密钥:
- 运行 FastAPI 应用:
- 访问用户界面:
- 打开浏览器并访问 http://localhost:8000
- 现在你可以与聊天界面进行交互,并在本地测试代理。
许可证
MIT
- Author:waytomcp
- URL:https://www.waytomcp.com/article/AtulanZaman/adk_mcp_gmap
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!