Skip to content

Commit fc05fe2

Browse files
committed
Add 2025-06-18 as supported version
1 parent befa31d commit fc05fe2

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

src/ModelContextProtocol.AspNetCore/HttpServerTransportOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ModelContextProtocol.AspNetCore;
66
/// <summary>
77
/// Configuration options for <see cref="M:McpEndpointRouteBuilderExtensions.MapMcp"/>.
88
/// which implements the Streaming HTTP transport for the Model Context Protocol.
9-
/// See the protocol specification for details on the Streamable HTTP transport. <see href="https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http"/>
9+
/// See the protocol specification for details on the Streamable HTTP transport. <see href="https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http"/>
1010
/// </summary>
1111
public class HttpServerTransportOptions
1212
{

src/ModelContextProtocol.AspNetCore/McpEndpointRouteBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class McpEndpointRouteBuilderExtensions
1515
{
1616
/// <summary>
1717
/// Sets up endpoints for handling MCP Streamable HTTP transport.
18-
/// See <see href="https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http">the 2025-03-26 protocol specification</see> for details about the Streamable HTTP transport.
18+
/// See <see href="https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http">the 2025-06-18 protocol specification</see> for details about the Streamable HTTP transport.
1919
/// Also maps legacy SSE endpoints for backward compatibility at the path "/sse" and "/message". <see href="https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse">the 2024-11-05 protocol specification</see> for details about the HTTP with SSE transport.
2020
/// </summary>
2121
/// <param name="endpoints">The web application to attach MCP HTTP endpoints.</param>

src/ModelContextProtocol.Core/Client/SseClientTransportOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public required Uri Endpoint
3939
/// Streamable HTTP transport and automatically fall back to SSE transport if the server doesn't support it.
4040
/// </para>
4141
/// <para>
42-
/// <see href="https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http">Streamable HTTP transport specification</see>.
42+
/// <see href="https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http">Streamable HTTP transport specification</see>.
4343
/// <see href="https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse">HTTP with SSE transport specification</see>.
4444
/// </para>
4545
/// </remarks>

src/ModelContextProtocol.Core/McpSession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ internal sealed partial class McpSession : IDisposable
2929
"mcp.server.operation.duration", "Measures the duration of inbound message processing.", longBuckets: false);
3030

3131
/// <summary>The latest version of the protocol supported by this implementation.</summary>
32-
internal const string LatestProtocolVersion = "2025-03-26";
32+
internal const string LatestProtocolVersion = "2025-06-18";
3333

3434
/// <summary>All protocol versions supported by this implementation.</summary>
3535
internal static readonly string[] SupportedProtocolVersions =
3636
[
3737
"2024-11-05",
38+
"2025-03-26",
3839
LatestProtocolVersion,
3940
];
4041

tests/ModelContextProtocol.AspNetCore.Tests/MapMcpStreamableHttpTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ public async Task StreamableHttpClient_SendsMcpProtocolVersionHeader_AfterInitia
171171

172172
await app.StartAsync(TestContext.Current.CancellationToken);
173173

174-
await using var mcpClient = await ConnectAsync();
174+
await using var mcpClient = await ConnectAsync(clientOptions: new()
175+
{
176+
ProtocolVersion = "2025-03-26",
177+
});
175178
await mcpClient.ListToolsAsync(cancellationToken: TestContext.Current.CancellationToken);
176179

177180
// The header should be included in the GET request, the initialized notification, and the tools/list call.

0 commit comments

Comments
 (0)