Default draft protocol support: sessionless + handshake-less (SEP-2575 + SEP-2567) (#1610)
This commit is contained in:
parent
3368bb7349
commit
6c323e783b
1 changed files with 5704 additions and 712 deletions
|
|
@ -162,7 +162,14 @@ public partial class McpServerBuilderExtensionsResourcesTests : ClientServerTest
|
|||
[Fact]
|
||||
public async Task Can_Be_Notified_Of_Resource_Changes()
|
||||
{
|
||||
await using McpClient client = await CreateMcpClientForServer();
|
||||
// Under the draft revision, list-changed notifications are delivered only over a
|
||||
// subscriptions/listen stream (covered by SubscriptionsListenTests). This test pins the
|
||||
// legacy revision to keep coverage of the session-wide broadcast that legacy clients still rely on.
|
||||
await using McpClient client = await CreateMcpClientForServer(new McpClientOptions
|
||||
{
|
||||
ProtocolVersion = McpSession.LatestProtocolVersion,
|
||||
});
|
||||
|
||||
|
||||
var resources = await client.ListResourcesAsync(cancellationToken: TestContext.Current.CancellationToken);
|
||||
Assert.Equal(7, resources.Count);
|
||||
|
|
|
|||
Loading…
Reference in a new issue