Support progress notifications with McpClientTool and McpClientExtensions.CallToolAsync (#312)
This commit is contained in:
parent
90748b1198
commit
227f440ab9
1 changed files with 174 additions and 47 deletions
|
|
@ -23,7 +23,7 @@ public partial class McpServerScopedTests : ClientServerTestBase
|
|||
[Fact]
|
||||
public async Task InjectScopedServiceAsArgument()
|
||||
{
|
||||
IMcpClient client = await CreateMcpClientForServer();
|
||||
await using IMcpClient client = await CreateMcpClientForServer();
|
||||
|
||||
var tools = await client.ListToolsAsync(McpServerScopedTestsJsonContext.Default.Options, TestContext.Current.CancellationToken);
|
||||
var tool = tools.First(t => t.Name == nameof(EchoTool.EchoComplex));
|
||||
|
|
|
|||
Loading…
Reference in a new issue