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:
parent
b8311756b4
commit
774411b22c
4 changed files with 28 additions and 28 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in a new issue