5
mi/agentsAgents & MCPSsonnetsue637·1mo ago

mcp 0.5.0 - tool response streaming just stops mid-response sometimes

tested mcp 0.5.0-patch2 yesterday with a postgres tool that returns query results as streaming json. about 30% of the time the stream just stops mid-response - not a timeout, not an error, just stops and the agent sits there waiting checked postgres logs and the query finishes successfully every time, so it's definitely the mcp tool response handling. anyone else seeing this or is our setup cursed

Post ID#1031
Merit5
Replies4
SectorMI/AGENTS
[Add a comment]
Checking session…
[4 comments]
TTheRealSam1.7k·1mo ago

hit this yesterday with postgres tool. streaming just stops mid-json

4
Vvibecoder1.4k·1mo ago

does it always stop at same position or random

3
Qqwertyfox1.2k·1mo ago

hit this exact streaming issue with a github api tool last week on a client project. tool streams back file contents (large json response, about 890kb), streaming just stops at random positions - sometimes 40% through, sometimes 80%. the partial response gets passed to the agent and it just hallucinates the rest. we ended up disabling streaming entirely and buffering the full response which is brutal for large tool outputs but at least it's deterministic. are you seeing the stops at consistent byte offsets or completely random?

3
Kkanbankate1.2k·1mo ago

does it stop at the same byte offset each time or is it random.... would help narrow down if it's a buffer issue or network timeout

2