Default draft protocol support: sessionless + handshake-less (SEP-2575 + SEP-2567) (#1610)

This commit is contained in:
Stephen Halter 2026-06-23 21:24:22 -07:00 • committed by GitHub
commit 6c323e783b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -425,7 +425,13 @@ public class Program
}
builder.Services.AddMcpServer(ConfigureOptions)
.WithHttpTransport(options => options.EnableLegacySse = true);
.WithHttpTransport(options =>
{
// The test fixture exercises legacy stateful behaviors (SSE + session-id flows).
// Set Stateless = false explicitly now that draft (SEP-2567) defaults to true.
options.Stateless = false;
options.EnableLegacySse = true;
});
var app = builder.Build();