Documentation
¶
Overview ¶
Package ssetest serves the frame that held an MCP call on a reused HTTP/1 connection for the idle connection's 90s under go1.27.1's net/http (Go issue 81404): an SSE body closed while its reader is blocked in Read, with the stream ending inside the transport's post-close drain. The clients built on mcp-go use it to prove their calls return at once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHoldingServer ¶
NewHoldingServer starts a streamable HTTP MCP server and returns its URL. It answers every request at once, except that tools/call answers on an SSE stream it keeps open until the client closes that stream's body: the stream then ends inside the transport's post-close drain, while the client's reader is blocked in Read. One tools/call per server.
It replaces http.DefaultTransport, which mcp-go's and muster's clients build on, for the rest of the test with a keep-alive transport that drives that interleaving, so a test using it must not run in parallel and must build its client after the call.
Types ¶
This section is empty.