Make "Stateless" mode sessionless (#760)
- This removes the requirement to configure data protection which is the motivating reason for this change - This means that McpServer.ClientInfo will always be null in stateless mode
This commit is contained in:
parent
740a7d0346
commit
47b9582fd7
1 changed files with 28 additions and 72 deletions
|
|
@ -54,8 +54,10 @@ public abstract class HttpServerIntegrationTests : LoggedTest, IClassFixture<Sse
|
|||
Assert.NotNull(client.ServerInfo);
|
||||
Assert.NotNull(client.NegotiatedProtocolVersion);
|
||||
|
||||
if (ClientTransportOptions.Endpoint.AbsolutePath.EndsWith("/sse"))
|
||||
if (ClientTransportOptions.Endpoint.AbsolutePath.EndsWith("/sse") ||
|
||||
ClientTransportOptions.Endpoint.AbsolutePath.EndsWith("/stateless"))
|
||||
{
|
||||
// In SSE and in Streamable HTTP's stateless mode, no protocol-defined session IDs are used.:w
|
||||
Assert.Null(client.SessionId);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue