picoclaw/pkg/mcp
dtapps d8b77086c2 fix(mcp): use transport-level timeouts and context timeouts for SSE support
Replace http.Client.Timeout with transport-level timeouts to prevent
terminating long-lived SSE streams while still protecting against
connection hangs during MCP server initialization.

Changes:
- Use http.Transport with DialContext, TLSHandshakeTimeout, and
  ResponseHeaderTimeout instead of http.Client.Timeout
- Add timeout-scoped contexts for connect and list operations
- SSE streams can now remain open indefinitely without being
  interrupted by a global request timeout
- Long-running tool calls are no longer affected by the 30s timeout

Fixes review comment: http.Client.Timeout applies to the full request
lifetime, including reading the response body, which would terminate
SSE streams after 30s.
2026-05-06 16:00:54 +08:00
..
events.go fix(events): keep runtime observers non-blocking 2026-04-27 13:09:03 +08:00
isolated_command_transport.go Feat/support isolation (#2423) 2026-04-08 18:15:42 +08:00
manager.go fix(mcp): use transport-level timeouts and context timeouts for SSE support 2026-05-06 16:00:54 +08:00
manager_test.go fix(mcp): use transport-level timeouts and context timeouts for SSE support 2026-05-06 16:00:54 +08:00