#7154·adk-python

to_mcp_server 从不删除死掉的 MCP 连接的 ADK 会话; 无状态可流式化的 HTTP 部署每次工具调用就会泄露一个会话

作者: harshal-96创建于 2026年9月17日更新于 2026年9月18日
标签mcp

The script below creates 10 short-lived in-memory MCP connections with one tool call each, which is exactly the connection pattern a stateless streamable HTTP deployment produces, and then counts the sessions left in the service.

内容来源: google/adk-python