Fix CallToolAsync for tools with no arguments (#18)
This commit is contained in:
parent
86f1edfe38
commit
c384c7d3de
1 changed files with 3 additions and 3 deletions
|
|
@ -346,7 +346,7 @@ internal class McpClient : IMcpClient
|
|||
new JsonRpcRequest
|
||||
{
|
||||
Method = "tools/call",
|
||||
Params = CreateParametersDictionary(toolName, arguments)
|
||||
Params = CreateParametersDictionary(toolName, arguments ?? new())
|
||||
},
|
||||
cancellationToken
|
||||
).ConfigureAwait(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue