Update protocol versions to reflect that 2025-03-26 is supported, and add server logic to negotiate the supported version with the client. Update the client to set the protocol version, fixing what was probably a spec violation. +tests Change-Id: I564b591b3daf018dd54f5c7e5d8f2d2b1e4ff502 Reviewed-on: https://go-review.googlesource.com/c/tools/+/682516 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
16 lines
357 B
Go
16 lines
357 B
Go
// Copyright 2025 The Go MCP SDK Authors. All rights reserved.
|
|
// Use of this source code is governed by an MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build go1.24 && goexperiment.synctest
|
|
|
|
package mcp
|
|
|
|
import (
|
|
"testing"
|
|
"testing/synctest"
|
|
)
|
|
|
|
func runSyncTest(t *testing.T, f func(t *testing.T)) {
|
|
synctest.Run(func() { f(t) })
|
|
}
|