Tighten draft protocol negotiation boundaries (#1692)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
This commit is contained in:
parent
a8d374b280
commit
fd38f51e27
1 changed files with 1755 additions and 589 deletions
|
|
@ -37,11 +37,11 @@ McpClientOptions options = new()
|
|||
};
|
||||
|
||||
// The default client now prefers the 2026-07-28 protocol (probing with server/discover and
|
||||
// falling back to a legacy initialize handshake). The "initialize" and "sse-retry" scenarios
|
||||
// specifically exercise the legacy initialize handshake and SSE resumability (removed in the
|
||||
// falling back to an initialize handshake). The "initialize" and "sse-retry" scenarios
|
||||
// specifically exercise the initialize handshake and SSE resumability (removed in the
|
||||
// 2026-07-28 protocol) and strictly expect initialize as the first message, so pin them to the
|
||||
// latest stable version. Other scenarios run on the 2026-07-28 default and exercise the
|
||||
// server/discover probe plus the transparent legacy fallback.
|
||||
// server/discover probe plus the transparent initialize-handshake fallback.
|
||||
if (scenario is "initialize" or "sse-retry")
|
||||
{
|
||||
options.ProtocolVersion = "2025-11-25";
|
||||
|
|
|
|||
Loading…
Reference in a new issue