Prune idle sessions before starting new ones by @halter73 in #701
This removed the public StreamableHttpHandler.Sessions property, that we were using to send notifications:
var mcpSessions = services.GetRequiredService<StreamableHttpHandler>().Sessions.Values;
foreach (var session in mcpSessions)
{
session.Server?.SendNotificationAsync(ToolListChangedNotification);
}
How would we do this now?
This removed the public
StreamableHttpHandler.Sessionsproperty, that we were using to send notifications:How would we do this now?