Validate MCP-Protocol-Version header in Streamable HTTP handler (#1277)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
703d842a38
commit
5da0fe506f
1 changed files with 101 additions and 1 deletions
|
|
@ -31,7 +31,10 @@ internal sealed partial class McpSessionHandler : IAsyncDisposable
|
|||
/// <summary>The latest version of the protocol supported by this implementation.</summary>
|
||||
internal const string LatestProtocolVersion = "2025-11-25";
|
||||
|
||||
/// <summary>All protocol versions supported by this implementation.</summary>
|
||||
/// <summary>
|
||||
/// All protocol versions supported by this implementation.
|
||||
/// Keep in sync with s_supportedProtocolVersions in StreamableHttpHandler.
|
||||
/// </summary>
|
||||
internal static readonly string[] SupportedProtocolVersions =
|
||||
[
|
||||
"2024-11-05",
|
||||
|
|
|
|||
Loading…
Reference in a new issue