We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ad110 commit e2ba19dCopy full SHA for e2ba19d
samples/AspNetCoreMcpPerSessionTools/Program.cs
@@ -20,9 +20,6 @@
20
var toolCollection = mcpOptions.Capabilities?.Tools?.ToolCollection;
21
if (toolCollection != null)
22
{
23
- // Clear all tools first
24
- toolCollection.Clear();
25
-
26
// Add tools based on the requested category
27
switch (toolCategory?.ToLower())
28
@@ -51,10 +48,7 @@
51
48
}
52
49
53
50
};
54
- })
55
- .WithTools<ClockTool>()
56
- .WithTools<CalculatorTool>()
57
- .WithTools<UserInfoTool>();
+ });
58
59
// Add OpenTelemetry for observability
60
builder.Services.AddOpenTelemetry()
0 commit comments