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
hit this yesterday with postgres tool. streaming just stops mid-json
does it always stop at same position or random
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?
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