@@ -48,7 +48,7 @@ const protocolVersion20241105 = "2024-11-05"
4848const protocolVersion20250326 = "2025-03-26"
4949const protocolVersion20250618 = "2025-06-18"
5050const protocolVersion20251125 = "2025-11-25"
51- const protocolVersionDraft = "DRAFT- 2026-v1 "
51+ const protocolVersion20260728 = "2026-07-28 "
5252const serverName = "Toolbox"
5353
5454var basicInputSchema = map [string ]any {
@@ -562,13 +562,13 @@ func TestMcpEndpoint(t *testing.T) {
562562 invalidMethods : []string {"server/discover" },
563563 },
564564 {
565- name : "version DRAFT " ,
566- protocol : protocolVersionDraft ,
565+ name : "version 2026-07-28 " ,
566+ protocol : protocolVersion20260728 ,
567567 idHeader : false ,
568568 reqHeader : []string {"Mcp-Protocol-Version" , "Mcp-Method" , "Mcp-Name" },
569569 invalidMethods : []string {"ping" },
570570 meta : map [string ]any {
571- "io.modelcontextprotocol/protocolVersion" : protocolVersionDraft ,
571+ "io.modelcontextprotocol/protocolVersion" : protocolVersion20260728 ,
572572 "io.modelcontextprotocol/clientInfo" : map [string ]any {
573573 "version" : "client-temp-version" ,
574574 "name" : "client-name" ,
@@ -845,7 +845,7 @@ func TestMcpEndpoint(t *testing.T) {
845845 "id" : "server-discover" ,
846846 "result" : map [string ]any {
847847 "resultType" : "complete" ,
848- "supportedVersions" : []any {"2024-11-05" , "2025-03-26" , "2025-06-18" , "2025-11-25" , "DRAFT- 2026-v1 " },
848+ "supportedVersions" : []any {"2024-11-05" , "2025-03-26" , "2025-06-18" , "2025-11-25" , "2026-07-28 " },
849849 "capabilities" : map [string ]any {
850850 "tools" : map [string ]any {"listChanged" : false },
851851 "prompts" : map [string ]any {"listChanged" : false },
@@ -1396,9 +1396,9 @@ func TestMcpEndpointWithoutEnablingDraftSpecs(t *testing.T) {
13961396 ts := runServer (r , false )
13971397 defer ts .Close ()
13981398
1399- protocol := protocolVersionDraft
1399+ protocol := "DRAFT"
14001400 meta := map [string ]any {
1401- "io.modelcontextprotocol/protocolVersion" : protocolVersionDraft ,
1401+ "io.modelcontextprotocol/protocolVersion" : protocol ,
14021402 "io.modelcontextprotocol/clientInfo" : map [string ]any {
14031403 "version" : "client-temp-version" ,
14041404 "name" : "client-name" ,
@@ -1422,8 +1422,8 @@ func TestMcpEndpointWithoutEnablingDraftSpecs(t *testing.T) {
14221422 "error" : map [string ]interface {}{
14231423 "code" : float64 (- 32022 ),
14241424 "data" : map [string ]interface {}{
1425- "requested" : "DRAFT-2026-v1 " ,
1426- "supported" : []interface {}{"2024-11-05" , "2025-03-26" , "2025-06-18" , "2025-11-25" },
1425+ "requested" : "DRAFT" ,
1426+ "supported" : []interface {}{"2024-11-05" , "2025-03-26" , "2025-06-18" , "2025-11-25" , "2026-07-28" },
14271427 },
14281428 "message" : "unsupported protocol version" ,
14291429 },
0 commit comments