Skip to content

fix: 优化外部资源生命周期和 MCP streamable-http 兼容#76

Merged
weimch merged 1 commit into
mainfrom
feature/support_mcp_higher
Jun 5, 2026
Merged

fix: 优化外部资源生命周期和 MCP streamable-http 兼容#76
weimch merged 1 commit into
mainfrom
feature/support_mcp_higher

Conversation

@raychen911
Copy link
Copy Markdown
Contributor

  • Runner 支持通过 close_session_service_on_close / close_memory_service_on_close 控制是否在 close 时关闭外部托管的 session_service 和 memory_service。
  • MCP Streamable HTTP client 优先使用新的 streamable_http_client API,并在旧版 MCP SDK 下回退到 streamablehttp_client。
  • 使用 httpx.AsyncClient 承载 streamable-http 的 headers / timeout 配置,避免调用已废弃接口。
  • 补充 Runner 和 MCP session manager 相关测试。

- Runner 支持通过 close_session_service_on_close /
  close_memory_service_on_close 控制是否在 close 时关闭外部托管的
session_service 和 memory_service。
- MCP Streamable HTTP client 优先使用新的 streamable_http_client
  API,并在旧版 MCP SDK 下回退到 streamablehttp_client。
- 使用 httpx.AsyncClient 承载 streamable-http 的 headers / timeout
  配置,避免调用已废弃接口。
- 补充 Runner 和 MCP session manager 相关测试。
Copy link
Copy Markdown
Contributor

@weimch weimch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve

@weimch weimch merged commit 240e3c9 into main Jun 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants