Remove batching support from StreamableHttpServerTransport (#372)

This commit is contained in:
Stephen Halter 2025-05-01 15:48:53 -07:00 • committed by GitHub
commit bac97efec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ internal class StreamClientSessionTransport : TransportBase
id = messageWithId.Id.ToString();
}
var json = JsonSerializer.Serialize(message, McpJsonUtilities.DefaultOptions.GetTypeInfo(typeof(JsonRpcMessage)));
var json = JsonSerializer.Serialize(message, McpJsonUtilities.JsonContext.Default.JsonRpcMessage);
using var _ = await _sendLock.LockAsync(cancellationToken).ConfigureAwait(false);
try