@@ -642,9 +642,9 @@ func TestClientCapabilitiesOverWire(t *testing.T) {
642642// don't overlap with the SDK. The test then asserts the resulting session
643643// state and whether the legacy initialize handshake ran.
644644func TestClientConnectDiscover (t * testing.T ) {
645- // Temporarily enable 2026-06-30 support in the SDK for this test
645+ // Temporarily enable 2026-07-28 support in the SDK for this test
646646 oldSupported := supportedProtocolVersions
647- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, supportedProtocolVersions ... )
647+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, supportedProtocolVersions ... )
648648 t .Cleanup (func () {
649649 supportedProtocolVersions = oldSupported
650650 })
@@ -668,15 +668,15 @@ func TestClientConnectDiscover(t *testing.T) {
668668 name : "discover success skips initialize" ,
669669 discoverHandler : func () (Result , error ) {
670670 return & DiscoverResult {
671- SupportedVersions : []string {protocolVersion20260630 },
671+ SupportedVersions : []string {protocolVersion20260728 },
672672 Capabilities : & ServerCapabilities {
673673 Tools : & ToolCapabilities {ListChanged : true },
674674 },
675675 ServerInfo : & Implementation {Name : "discoverServer" , Version : "v1.0.0" },
676676 }, nil
677677 },
678678 wantInitialize : false ,
679- wantVersion : protocolVersion20260630 ,
679+ wantVersion : protocolVersion20260728 ,
680680 },
681681 {
682682 name : "method not found falls back to initialize" ,
@@ -742,7 +742,7 @@ func TestClientConnectDiscover(t *testing.T) {
742742 defer ss .Close ()
743743
744744 c := NewClient (testImpl , nil )
745- cs , err := c .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260630 })
745+ cs , err := c .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260728 })
746746 if err != nil {
747747 t .Fatalf ("Connect: %v" , err )
748748 }
@@ -770,7 +770,7 @@ func TestClientConnectDiscover(t *testing.T) {
770770// protocolVersion, clientInfo, and clientCapabilities.
771771func TestClientConnectDiscover_RequestContents (t * testing.T ) {
772772 orig := supportedProtocolVersions
773- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, slices .Clone (orig )... )
773+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, slices .Clone (orig )... )
774774 t .Cleanup (func () { supportedProtocolVersions = orig })
775775
776776 ctx := context .Background ()
@@ -811,7 +811,7 @@ func TestClientConnectDiscover_RequestContents(t *testing.T) {
811811 return nil , nil
812812 },
813813 })
814- cs , err := c .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260630 })
814+ cs , err := c .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260728 })
815815 if err != nil {
816816 t .Fatalf ("Connect: %v" , err )
817817 }
@@ -822,8 +822,8 @@ func TestClientConnectDiscover_RequestContents(t *testing.T) {
822822 }
823823
824824 meta := got .params .GetMeta ()
825- if v , _ := meta [MetaKeyProtocolVersion ].(string ); v != protocolVersion20260630 {
826- t .Errorf ("_meta[%s] = %q, want %q" , MetaKeyProtocolVersion , v , protocolVersion20260630 )
825+ if v , _ := meta [MetaKeyProtocolVersion ].(string ); v != protocolVersion20260728 {
826+ t .Errorf ("_meta[%s] = %q, want %q" , MetaKeyProtocolVersion , v , protocolVersion20260728 )
827827 }
828828 // _meta values round-trip through JSON, so on the server side they
829829 // arrive as map[string]any rather than the typed Go pointers we sent.
@@ -849,7 +849,7 @@ func TestInMemory_E2E_DiscoverSuccess(t *testing.T) {
849849 ctx := context .Background ()
850850
851851 orig := supportedProtocolVersions
852- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, slices .Clone (orig )... )
852+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, slices .Clone (orig )... )
853853 t .Cleanup (func () { supportedProtocolVersions = orig })
854854
855855 server := NewServer (& Implementation {Name : "stdio-like-server" , Version : "v1" }, nil )
@@ -861,7 +861,7 @@ func TestInMemory_E2E_DiscoverSuccess(t *testing.T) {
861861 defer ss .Close ()
862862
863863 client := NewClient (& Implementation {Name : "stdio-like-client" , Version : "v1" }, nil )
864- cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260630 })
864+ cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260728 })
865865 if err != nil {
866866 t .Fatalf ("client.Connect: %v" , err )
867867 }
@@ -871,9 +871,9 @@ func TestInMemory_E2E_DiscoverSuccess(t *testing.T) {
871871 if ir == nil {
872872 t .Fatal ("InitializeResult is nil; discover should have populated it" )
873873 }
874- if ir .ProtocolVersion != protocolVersion20260630 {
874+ if ir .ProtocolVersion != protocolVersion20260728 {
875875 t .Errorf ("InitializeResult.ProtocolVersion = %q, want %q (negotiated via discover, no initialize)" ,
876- ir .ProtocolVersion , protocolVersion20260630 )
876+ ir .ProtocolVersion , protocolVersion20260728 )
877877 }
878878 if ir .ServerInfo == nil || ir .ServerInfo .Name != "stdio-like-server" {
879879 t .Errorf ("InitializeResult.ServerInfo = %+v, want name=stdio-like-server" , ir .ServerInfo )
@@ -887,13 +887,13 @@ func TestInMemory_E2E_DiscoverSuccess(t *testing.T) {
887887
888888// TestInMemory_E2E_DiscoverFallback_NoOverlap verifies the fallback path
889889// over an InMemory (STDIO-equivalent) transport: the client probes with
890- // _meta.protocolVersion = 2026-06-30 , but the server's supported list does
890+ // _meta.protocolVersion = 2026-07-28 , but the server's supported list does
891891// NOT include that version (the default for an SDK server that hasn't
892892// shimmed supportedProtocolVersions).
893893func TestInMemory_E2E_DiscoverFallback_NoOverlap (t * testing.T ) {
894894 ctx := context .Background ()
895895 orig := supportedProtocolVersions
896- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, slices .Clone (orig )... )
896+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, slices .Clone (orig )... )
897897 t .Cleanup (func () { supportedProtocolVersions = orig })
898898
899899 server := NewServer (& Implementation {Name : "vpre-like-server" , Version : "v1" }, nil )
@@ -920,7 +920,7 @@ func TestInMemory_E2E_DiscoverFallback_NoOverlap(t *testing.T) {
920920 defer ss .Close ()
921921
922922 client := NewClient (& Implementation {Name : "new-client" , Version : "v1" }, nil )
923- cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260630 })
923+ cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260728 })
924924 if err != nil {
925925 t .Fatalf ("client.Connect: %v" , err )
926926 }
@@ -948,7 +948,7 @@ func TestInMemory_E2E_DiscoverFallback_MethodNotFound(t *testing.T) {
948948 ctx := context .Background ()
949949
950950 orig := supportedProtocolVersions
951- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, slices .Clone (orig )... )
951+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, slices .Clone (orig )... )
952952 t .Cleanup (func () { supportedProtocolVersions = orig })
953953
954954 server := NewServer (& Implementation {Name : "vpre-server" , Version : "v1" }, nil )
@@ -969,7 +969,7 @@ func TestInMemory_E2E_DiscoverFallback_MethodNotFound(t *testing.T) {
969969 defer ss .Close ()
970970
971971 client := NewClient (& Implementation {Name : "new-client" , Version : "v1" }, nil )
972- cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260630 })
972+ cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260728 })
973973 if err != nil {
974974 t .Fatalf ("client.Connect: %v" , err )
975975 }
@@ -997,7 +997,7 @@ func TestInMemory_E2E_DiscoverFallback_UnsupportedProtocolVersion(t *testing.T)
997997 ctx := context .Background ()
998998
999999 orig := supportedProtocolVersions
1000- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, slices .Clone (orig )... )
1000+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, slices .Clone (orig )... )
10011001 t .Cleanup (func () { supportedProtocolVersions = orig })
10021002
10031003 server := NewServer (& Implementation {Name : "strict-server" , Version : "v1" }, nil )
@@ -1021,7 +1021,7 @@ func TestInMemory_E2E_DiscoverFallback_UnsupportedProtocolVersion(t *testing.T)
10211021 defer ss .Close ()
10221022
10231023 client := NewClient (& Implementation {Name : "new-client" , Version : "v1" }, nil )
1024- cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260630 })
1024+ cs , err := client .Connect (ctx , ct , & ClientSessionOptions {protocolVersion : protocolVersion20260728 })
10251025 if err != nil {
10261026 t .Fatalf ("client.Connect: %v" , err )
10271027 }
@@ -1044,7 +1044,7 @@ func TestInMemory_E2E_DiscoverFallback_UnsupportedProtocolVersion(t *testing.T)
10441044// selects a mutually supported version from that list and retries.
10451045func TestClientConnectDiscover_UnsupportedVersionNegotiation (t * testing.T ) {
10461046 oldSupported := supportedProtocolVersions
1047- supportedProtocolVersions = append ([]string {protocolVersion20260630 }, slices .Clone (oldSupported )... )
1047+ supportedProtocolVersions = append ([]string {protocolVersion20260728 }, slices .Clone (oldSupported )... )
10481048 t .Cleanup (func () { supportedProtocolVersions = oldSupported })
10491049
10501050 ctx := context .Background ()
@@ -1095,8 +1095,8 @@ func TestClientConnectDiscover_UnsupportedVersionNegotiation(t *testing.T) {
10951095 if got , want := discoverCalls .Load (), int32 (1 ); got != want {
10961096 t .Errorf ("server/discover handler call count = %d, want %d (first probe is rejected by the dispatcher; only the retry reaches the handler)" , got , want )
10971097 }
1098- if got , _ := observedDiscoverVersion .Load ().(string ); got != protocolVersion20260630 {
1099- t .Errorf ("retry discover requested version = %q, want %q (highest mutually supported version)" , got , protocolVersion20260630 )
1098+ if got , _ := observedDiscoverVersion .Load ().(string ); got != protocolVersion20260728 {
1099+ t .Errorf ("retry discover requested version = %q, want %q (highest mutually supported version)" , got , protocolVersion20260728 )
11001100 }
11011101 if gotInitialize .Load () {
11021102 t .Error ("legacy initialize handshake ran, but negotiated discover should have succeeded" )
@@ -1106,7 +1106,7 @@ func TestClientConnectDiscover_UnsupportedVersionNegotiation(t *testing.T) {
11061106 if ir == nil {
11071107 t .Fatal ("InitializeResult is nil after Connect" )
11081108 }
1109- if got , want := ir .ProtocolVersion , protocolVersion20260630 ; got != want {
1109+ if got , want := ir .ProtocolVersion , protocolVersion20260728 ; got != want {
11101110 t .Errorf ("InitializeResult.ProtocolVersion = %q, want %q" , got , want )
11111111 }
11121112}
0 commit comments