Skip to content

Commit 20d726b

Browse files
Copilotstephentoub
andauthored
Remove s_additionalProperties from McpClientTool (#1080)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: stephentoub <[email protected]>
1 parent 66ba342 commit 20d726b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/ModelContextProtocol.Core/Client/McpClientTool.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Microsoft.Extensions.AI;
22
using ModelContextProtocol.Protocol;
3-
using System.Collections.ObjectModel;
43
using System.Text.Json;
54
using System.Text.Json.Nodes;
65

@@ -26,13 +25,6 @@ namespace ModelContextProtocol.Client;
2625
/// </remarks>
2726
public sealed class McpClientTool : AIFunction
2827
{
29-
/// <summary>Additional properties exposed from tools.</summary>
30-
private static readonly ReadOnlyDictionary<string, object?> s_additionalProperties =
31-
new(new Dictionary<string, object?>()
32-
{
33-
["Strict"] = false, // some MCP schemas may not meet "strict" requirements
34-
});
35-
3628
private readonly McpClient _client;
3729
private readonly string _name;
3830
private readonly string _description;
@@ -126,9 +118,6 @@ internal McpClientTool(
126118
/// <inheritdoc/>
127119
public override JsonSerializerOptions JsonSerializerOptions { get; }
128120

129-
/// <inheritdoc/>
130-
public override IReadOnlyDictionary<string, object?> AdditionalProperties => s_additionalProperties;
131-
132121
/// <inheritdoc/>
133122
protected async override ValueTask<object?> InvokeCoreAsync(
134123
AIFunctionArguments arguments, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)