Add stateless doc, prefer stateless mode and disable legacy SSE by default (#1468)

This commit is contained in:
Stephen Halter 2026-03-27 13:56:16 -07:00 • committed by GitHub
commit 8eb4023c20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ builder.Services.AddMcpServer(options =>
// Enable tasks by providing a task store
options.TaskStore = taskStore;
})
.WithHttpTransport()
.WithHttpTransport(o => o.Stateless = true)
.WithTools<MyTools>();
```
@ -566,7 +566,7 @@ builder.Services.AddMcpServer(options =>
{
options.TaskStore = taskStore;
})
.WithHttpTransport()
.WithHttpTransport(o => o.Stateless = true)
.WithTools<TaskTools>();
```