Default draft protocol support: sessionless + handshake-less (SEP-2575 + SEP-2567) (#1610)
This commit is contained in:
parent
3368bb7349
commit
6c323e783b
1 changed files with 5704 additions and 712 deletions
|
|
@ -49,7 +49,7 @@ public class MrtrSessionLimitTests : ClientServerTestBase
|
|||
{
|
||||
services.Configure<McpServerOptions>(options =>
|
||||
{
|
||||
options.ProtocolVersion = "DRAFT-2026-v1";
|
||||
options.ProtocolVersion = "2026-07-28";
|
||||
_messageTracker.AddFilters(options.Filters.Message);
|
||||
|
||||
// Outgoing filter: detect InputRequiredResult responses and track per session.
|
||||
|
|
@ -131,7 +131,7 @@ public class MrtrSessionLimitTests : ClientServerTestBase
|
|||
// Verify that an outgoing message filter can observe InputRequiredResult responses
|
||||
// and track the pending MRTR flow count per session using context.Server.SessionId.
|
||||
StartServer();
|
||||
var clientOptions = new McpClientOptions { ProtocolVersion = "DRAFT-2026-v1" };
|
||||
var clientOptions = new McpClientOptions { ProtocolVersion = "2026-07-28" };
|
||||
clientOptions.Handlers.ElicitationHandler = (request, ct) =>
|
||||
new ValueTask<ElicitResult>(new ElicitResult { Action = "accept" });
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ public class MrtrSessionLimitTests : ClientServerTestBase
|
|||
_maxFlowsPerSession = 0;
|
||||
|
||||
StartServer();
|
||||
var clientOptions = new McpClientOptions { ProtocolVersion = "DRAFT-2026-v1" };
|
||||
var clientOptions = new McpClientOptions { ProtocolVersion = "2026-07-28" };
|
||||
clientOptions.Handlers.ElicitationHandler = (request, ct) =>
|
||||
new ValueTask<ElicitResult>(new ElicitResult { Action = "accept" });
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue