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
|
|
@ -57,7 +57,7 @@ await using var client = await McpClient.CreateAsync(transport, options);
|
|||
|
||||
### Requesting roots from the server
|
||||
|
||||
Servers can request the client's root list using <xref:ModelContextProtocol.Server.McpServer.RequestRootsAsync*>:
|
||||
Servers can request the client's root list using <xref:ModelContextProtocol.Server.McpServer.RequestRootsAsync*>. This is a server-to-client request, so it requires [stateful mode or stdio](xref:stateless) — it is not available in [stateless mode](xref:stateless#stateless-mode-recommended).
|
||||
|
||||
```csharp
|
||||
[McpServerTool, Description("Lists the user's project roots")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue