Fix sample in README (#136)

This commit is contained in:
Brennan 2025-03-28 13:59:38 -07:00 • committed by GitHub
commit f55302b449
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ var client = await McpClientFactory.CreateAsync(new()
});
// Print the list of tools available from the server.
await foreach (var tool in client.ListToolsAsync())
foreach (var tool in await client.ListToolsAsync())
{
Console.WriteLine($"{tool.Name} ({tool.Description})");
}