Follow-ups to #1610: de-draft 2026-07-28 terminology, renumber error codes, ProtocolVersion floor (#1671)
This commit is contained in:
parent
90c853103d
commit
d6b1615988
1 changed files with 785 additions and 898 deletions
|
|
@ -7,7 +7,7 @@ namespace ModelContextProtocol.Tests.Server;
|
|||
|
||||
/// <summary>
|
||||
/// Verifies that the built-in <c>ping</c> handler is gated by protocol version.
|
||||
/// SEP-2575 (the draft 2026-07-28 revision) removes <c>ping</c>; servers must
|
||||
/// SEP-2575 (the 2026-07-28 revision) removes <c>ping</c>; servers must
|
||||
/// respond with <c>-32601 MethodNotFound</c>. Legacy protocol versions still
|
||||
/// support <c>ping</c> per the spec.
|
||||
/// </summary>
|
||||
|
|
@ -23,12 +23,12 @@ public sealed class PingProtocolGatingTests : ClientServerTestBase
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Ping_OnDraftSession_ReturnsMethodNotFound()
|
||||
public async Task Ping_OnJuly2026ProtocolSession_ReturnsMethodNotFound()
|
||||
{
|
||||
StartServer();
|
||||
await using var client = await CreateMcpClientForServer(new McpClientOptions
|
||||
{
|
||||
ProtocolVersion = McpSession.DraftProtocolVersion,
|
||||
ProtocolVersion = McpHttpHeaders.July2026ProtocolVersion,
|
||||
});
|
||||
|
||||
var ex = await Assert.ThrowsAsync<McpProtocolException>(async () =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue