Skip to content

Commit e2ba19d

Browse files
PederHPhalter73
andauthored
Apply suggestions from code review
Co-authored-by: Stephen Halter <[email protected]>
1 parent c4ad110 commit e2ba19d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

samples/AspNetCoreMcpPerSessionTools/Program.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
var toolCollection = mcpOptions.Capabilities?.Tools?.ToolCollection;
2121
if (toolCollection != null)
2222
{
23-
// Clear all tools first
24-
toolCollection.Clear();
25-
2623
// Add tools based on the requested category
2724
switch (toolCategory?.ToLower())
2825
{
@@ -51,10 +48,7 @@
5148
}
5249
}
5350
};
54-
})
55-
.WithTools<ClockTool>()
56-
.WithTools<CalculatorTool>()
57-
.WithTools<UserInfoTool>();
51+
});
5852

5953
// Add OpenTelemetry for observability
6054
builder.Services.AddOpenTelemetry()

0 commit comments

Comments
 (0)