Skip to content

Commit aa0e673

Browse files
committed
Fix
1 parent 24003dc commit aa0e673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ModelContextProtocol/Client/McpClientTool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal McpClientTool(IMcpClient client, Tool tool, JsonSerializerOptions seria
3232
public McpClientTool WithName(string name)
3333
{
3434
Throw.IfNull(name);
35-
return new McpClientTool(_client, ProtocolTool, name, _description);
35+
return new McpClientTool(_client, ProtocolTool, JsonSerializerOptions, name, _description);
3636
}
3737

3838
/// <summary>
@@ -45,7 +45,7 @@ public McpClientTool WithName(string name)
4545
/// <returns>Copy of this McpClientTool with the provided description</returns>
4646
public McpClientTool WithDescription(string description)
4747
{
48-
return new McpClientTool(_client, ProtocolTool, _name, description);
48+
return new McpClientTool(_client, ProtocolTool, JsonSerializerOptions, _name, description);
4949
}
5050

5151
/// <summary>Gets the protocol <see cref="Tool"/> type for this instance.</summary>

0 commit comments

Comments
 (0)