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
{{ message }}
Repository navigation
McpClient cannot be created using netstandard with SseClientTransport #583
McpClientFactory.CreateAsync(clientTransport) throws an exception with netstandard using the SseClientTransport:
'The format of value 'application/json; charset=utf-8' is invalid
That's because the encoding is already specified:
using var content = new StringContent(
JsonSerializer.Serialize(message, McpJsonUtilities.JsonContext.Default.JsonRpcMessage),
Encoding.UTF8,
"application/json; charset=utf-8"
);
must be:
using var content = new StringContent(
JsonSerializer.Serialize(message, McpJsonUtilities.JsonContext.Default.JsonRpcMessage),
Encoding.UTF8,
"application/json"
);
Activity
halter73 commentedon Jul 2, 2025
Thanks for fixing this!