go-sdk/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Robert Findley 875d1d30c2
mcp: don't break the streamable client connection for transient errors (#723)
When POST requests in the streamableClientConn return a transient error,
return this error to the caller rather than permanently breaking the
connection.

This is achieved by using the special sentinel ErrRejected error to the
jsonrpc2 layer. In doing so, the change revealed a pre-existing bug:
ErrRejected had the same code as ErrConnectionClosing, and
jsonrpc2.WireError implements errors.Is, so the two sentinel values
could be conflated. This is fixed by using a new internal code.

There's more to do for #683: we should also retry transient errors in
handleSSE.

For #683
2025-12-12 13:49:41 -05:00
..
docs mcp: add Capabilities fields to ServerOptions and ClientOptions (#713) 2025-12-11 20:17:46 -05:00
jsonrpc2 mcp: don't break the streamable client connection for transient errors (#723) 2025-12-12 13:49:41 -05:00
readme Update readme generation instructions 2025-10-06 10:57:13 -04:00
util internal/util: move FieldJSONInfo into jsonschema/util (#251) 2025-08-06 12:07:57 -04:00
xcontext x/tools: modernize interface{} -> any 2025-02-19 15:14:27 -08:00