Skip to content

Commit 42d7077

Browse files
authored
fix: update stale go-sdk v1.5.0 annotations to v1.6.0 in mcp package
1 parent 5392aab commit 42d7077

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/mcp/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (c *Connection) reconnectSDKTransport() error {
364364
HTTPClient: headerClient,
365365
// MaxRetries: -1 disables SDK-level reconnect retries (0 = SDK default 5 retries;
366366
// negative = 0 retries). The gateway handles reconnection itself, so we set -1 to
367-
// prevent double-retry behaviour. Verified against go-sdk v1.5.0 streamable.go:1547-1552.
367+
// prevent double-retry behaviour. Verified against go-sdk v1.6.0 streamable.go:1547-1552.
368368
// See TestMaxRetriesSentinelCanary for an automated guard against SDK changes.
369369
MaxRetries: -1,
370370
DisableStandaloneSSE: true,

internal/mcp/http_transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func tryStreamableHTTPTransport(ctx context.Context, cancel context.CancelFunc,
459459
HTTPClient: httpClient,
460460
// MaxRetries: -1 disables SDK-level reconnect retries (0 = SDK default 5 retries;
461461
// negative = 0 retries). We fall through to SSE or plain JSON-RPC on failure.
462-
// Verified against go-sdk v1.5.0 streamable.go:1547-1552.
462+
// Verified against go-sdk v1.6.0 streamable.go:1547-1552.
463463
// See TestMaxRetriesSentinelCanary for an automated guard against SDK changes.
464464
MaxRetries: -1,
465465
// DisableStandaloneSSE prevents the SDK from issuing a GET request for a

internal/mcp/http_transport_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ func TestOIDCRoundTripper_ErrorPropagation(t *testing.T) {
12961296
// gateway's reconnect logic would silently permit extra retries and this test
12971297
// would fail to alert.
12981298
//
1299-
// SDK source: streamable.go:1547-1552 (verified against go-sdk v1.5.0):
1299+
// SDK source: streamable.go:1547-1552 (verified against go-sdk v1.6.0):
13001300
//
13011301
// maxRetries := t.MaxRetries
13021302
// if maxRetries == 0 {

0 commit comments

Comments
 (0)