Add 2025-11-25 as supported version (#1130)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
Copilot 2026-01-15 09:59:42 -05:00 • committed by GitHub
commit 774411b22c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 28 deletions

View file

@ -178,10 +178,10 @@ public class MapMcpStreamableHttpTests(ITestOutputHelper outputHelper) : MapMcpT
await using var mcpClient = await ConnectAsync(clientOptions: new()
{
ProtocolVersion = "2025-03-26",
ProtocolVersion = "2025-06-18",
});
Assert.Equal("2025-03-26", mcpClient.NegotiatedProtocolVersion);
Assert.Equal("2025-06-18", mcpClient.NegotiatedProtocolVersion);
await mcpClient.ListToolsAsync(cancellationToken: TestContext.Current.CancellationToken);
await mcpClient.DisposeAsync();
@ -190,7 +190,7 @@ public class MapMcpStreamableHttpTests(ITestOutputHelper outputHelper) : MapMcpT
// Stateless mode due to the lack of an Mcp-Session-Id, but the header should be included in the
// initialized notification and the tools/list call at a minimum.
Assert.True(protocolVersionHeaderValues.Count > 1);
Assert.All(protocolVersionHeaderValues, v => Assert.Equal("2025-03-26", v));
Assert.All(protocolVersionHeaderValues, v => Assert.Equal("2025-06-18", v));
}
[Fact]

View file

@ -217,7 +217,7 @@ public class StreamableHttpClientConformanceTests(ITestOutputHelper outputHelper
{
const string sessionId = "resume-session-123";
const string resumeInstructions = "Use cached instructions";
const string resumeProtocolVersion = "2025-06-18";
const string resumeProtocolVersion = "2025-11-25";
var resumeServer = await StartResumeServerAsync(sessionId);
await using var transport = new HttpClientTransport(new()

View file

@ -26,7 +26,7 @@ Content-Type: application/json
"version": "0.1.0"
},
"capabilities": {},
"protocolVersion": "2025-06-18"
"protocolVersion": "2025-11-25"
}
}
@ -37,7 +37,7 @@ Content-Type: application/json
POST {{HostAddress}}/
Accept: application/json, text/event-stream
Content-Type: application/json
MCP-Protocol-Version: 2025-06-18
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: {{SessionId}}
{
@ -51,7 +51,7 @@ Mcp-Session-Id: {{SessionId}}
POST {{HostAddress}}/
Accept: application/json, text/event-stream
Content-Type: application/json
MCP-Protocol-Version: 2025-06-18
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: {{SessionId}}
{
@ -65,7 +65,7 @@ Mcp-Session-Id: {{SessionId}}
POST {{HostAddress}}/
Accept: application/json, text/event-stream
Content-Type: application/json
MCP-Protocol-Version: 2025-06-18
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: {{SessionId}}
{

View file

@ -585,7 +585,7 @@ public class McpClientTests : ClientServerTestBase
[Theory]
[InlineData(null)]
[InlineData("2025-03-26")]
[InlineData("2025-06-18")]
public async Task ReturnsNegotiatedProtocolVersion(string? protocolVersion)
{
await using McpClient client = await CreateMcpClientForServer(new() { ProtocolVersion = protocolVersion });