You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tests after rebase on MRTR: use SendRequestAsync to reach transport-level guards
MRTR (#1458) added a session-level guard in McpSessionHandler.SendMessageAsync that throws InvalidOperationException for any JsonRpcRequest, directing callers to SendRequestAsync. The two tests that exercised the transport's request-handling code paths called server.SendMessageAsync(request, ...) and so were rejected at the session layer before reaching the transport.
Switch them to SendRequestAsync, which bypasses that guard and routes through SendToRelatedTransportAsync to the transport's SendMessageAsync — the actual layer the new diagnostics live on.
For the GET-open warning test, SendRequestAsync awaits a response that the test never produces, so wrap it in a CancellationTokenSource that we cancel after confirming the request landed on the SSE wire.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments