Fix deserialization of PrimitiveSchemaDefinition (#537)

This is preventing clients from correctly handling elicitation requests.
This commit is contained in:
Stephen Toub 2025-06-24 08:48:12 -04:00 • committed by GitHub
commit 068f0418fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,13 +62,14 @@ public abstract class ClientServerTestBase : LoggedTest, IAsyncDisposable
Dispose();
}
protected async Task<IMcpClient> CreateMcpClientForServer()
protected async Task<IMcpClient> CreateMcpClientForServer(McpClientOptions? clientOptions = null)
{
return await McpClientFactory.CreateAsync(
new StreamClientTransport(
serverInput: _clientToServerPipe.Writer.AsStream(),
_serverToClientPipe.Reader.AsStream(),
LoggerFactory),
clientOptions: clientOptions,
loggerFactory: LoggerFactory,
cancellationToken: TestContext.Current.CancellationToken);
}