We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f93a06c commit fd9233bCopy full SHA for fd9233b
src/ModelContextProtocol.Core/Server/McpServerOptions.cs
@@ -90,7 +90,15 @@ public sealed class McpServerOptions
90
/// of various MCP server handlers. The first filter added is the outermost (first to execute),
91
/// and each subsequent filter wraps closer to the handler.
92
/// </remarks>
93
- public McpServerFilters Filters { get; } = new();
+ public McpServerFilters Filters
94
+ {
95
+ get => field ??= new();
96
+ set
97
98
+ Throw.IfNull(value);
99
+ field = value;
100
+ }
101
102
103
/// <summary>
104
/// Gets or sets the container of handlers used by the server for processing protocol messages.
0 commit comments