Skip to content

Undocumented breaking change in v0.3.0-preview.4? #987

Description

@glen-84

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions