mcp: remove deprecated transport constructors

In #272, we made transports open structs and deprecated their
constructors. However, we left the constructors in place to allow go:fix
directives to facilitate migration.

Now let's remove the constructors before cutting the release.

Fixes #305
This commit is contained in:
Rob Findley 2025-09-10 13:36:19 +00:00 • committed by Robert Findley
commit b1c75f04d8

View file

@ -1211,7 +1211,7 @@ func TestTokenInfo(t *testing.T) {
httpServer := httptest.NewServer(handler)
defer httpServer.Close()
transport := NewStreamableClientTransport(httpServer.URL, nil)
transport := &StreamableClientTransport{Endpoint: httpServer.URL}
client := NewClient(testImpl, nil)
session, err := client.Connect(ctx, transport, nil)
if err != nil {