Add stateless doc, prefer stateless mode and disable legacy SSE by default (#1468)
This commit is contained in:
parent
49bf17077d
commit
8eb4023c20
1 changed files with 1440 additions and 73 deletions
|
|
@ -70,7 +70,7 @@ When implementing custom list handlers on the server, pagination is supported by
|
|||
|
||||
```csharp
|
||||
builder.Services.AddMcpServer()
|
||||
.WithHttpTransport()
|
||||
.WithHttpTransport(o => o.Stateless = true)
|
||||
.WithListResourcesHandler(async (ctx, ct) =>
|
||||
{
|
||||
const int pageSize = 10;
|
||||
|
|
|
|||
Loading…
Reference in a new issue