Add HttpServerSessionMode for hybrid stateful/stateless HTTP serving (#1796)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
This commit is contained in:
parent
bba45c44bf
commit
c6a97d94d6
1 changed files with 764 additions and 150 deletions
|
|
@ -35,10 +35,7 @@ public class RequestAbortCancellationTests(ITestOutputHelper outputHelper) : Kes
|
|||
{
|
||||
options.ServerInfo = new Implementation { Name = nameof(RequestAbortCancellationTests), Version = "1" };
|
||||
})
|
||||
.WithHttpTransport(options =>
|
||||
{
|
||||
options.Stateless = stateless;
|
||||
})
|
||||
.WithHttpTransport(options => options.Stateless = stateless)
|
||||
.WithTools([McpServerTool.Create(
|
||||
async (CancellationToken cancellationToken) =>
|
||||
{
|
||||
|
|
@ -86,8 +83,8 @@ public class RequestAbortCancellationTests(ITestOutputHelper outputHelper) : Kes
|
|||
public async Task July2026Request_AbortFlowsCancellationToToolHandler()
|
||||
{
|
||||
// Starting with the 2026-07-28 protocol revision, Streamable HTTP no longer supports sessions (SEP-2567) and is
|
||||
// served natively only on a stateless server; a Stateless=false server refuses these requests so dual-era
|
||||
// clients fall back to initialize.
|
||||
// served natively only on a stateless server; a stateful server refuses these requests to allow
|
||||
// a client to fall back to `initialize` if it supports it.
|
||||
await StartAsync(stateless: true);
|
||||
|
||||
using var request = CreateBlockingToolRequest(july2026Protocol: true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue