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
|
|
@ -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>();
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue