Skip to content

Commit f55302b

Browse files
Fix sample in README (#136)
1 parent 62e92fa commit f55302b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var client = await McpClientFactory.CreateAsync(new()
4444
});
4545

4646
// Print the list of tools available from the server.
47-
await foreach (var tool in client.ListToolsAsync())
47+
foreach (var tool in await client.ListToolsAsync())
4848
{
4949
Console.WriteLine($"{tool.Name} ({tool.Description})");
5050
}

0 commit comments

Comments
 (0)