Skip to content

[Bug]: MCP streamable_http 连接断开后无法自动恢复 #4100

@sunnyws

Description

@sunnyws

描述

HttpStatefulClient 使用 streamable_http 传输协议连接远程 MCP 服务时,当连接因超时(httpx 默认 read timeout 300s)断开后,虽然 _run_lifecycle 循环会自动尝试重连,但重连后工具调用仍然失败,客户端状态不一致。

环境

QwenPaw 版本:1.1.5.post2
Python:3.10
OS:macOS arm64 (Darwin 24.1.0)
MCP 服务:金十数据(远程 streamable_http)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions