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
|
|
@ -70,7 +70,7 @@ When implementing custom list handlers on the server, pagination is supported by
|
|||
|
||||
```csharp
|
||||
builder.Services.AddMcpServer()
|
||||
.WithHttpTransport(o => o.Stateless = true)
|
||||
.WithHttpTransport(o => o.SessionMode = HttpServerSessionMode.Stateless)
|
||||
.WithListResourcesHandler(async (ctx, ct) =>
|
||||
{
|
||||
const int pageSize = 10;
|
||||
|
|
|
|||
Loading…
Reference in a new issue