mcp: allow restricting the protocol versions a server supports (#1199)
Fixes #945
This commit is contained in:
parent
5a89b63764
commit
21c18c6229
1 changed files with 397 additions and 35 deletions
|
|
@ -24,7 +24,7 @@ import (
|
|||
// stdio and Streamable HTTP (see #1112).
|
||||
func TestSSEServerTransport_SupportedVersions(t *testing.T) {
|
||||
var tr SSEServerTransport
|
||||
versions := filterSupportedVersions(&tr)
|
||||
versions := filterSupportedVersions(&tr, supportedProtocolVersions)
|
||||
if slices.Contains(versions, protocolVersion20260728) {
|
||||
t.Errorf("filterSupportedVersions(SSEServerTransport) = %v, must not include %q",
|
||||
versions, protocolVersion20260728)
|
||||
|
|
|
|||
Loading…
Reference in a new issue