File tree Expand file tree Collapse file tree
src/ModelContextProtocol.Core/Server
tests/ModelContextProtocol.TestSseServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,35 +83,19 @@ public sealed class McpServerOptions
8383 public Implementation ? KnownClientInfo { get ; set ; }
8484
8585 /// <summary>
86- /// Gets the filter collections for MCP server handlers.
86+ /// Gets or sets the container of handlers used by the server for processing protocol messages.
87+ /// </summary>
88+ public McpServerHandlers Handlers { get ; } = new ( ) ;
89+
90+ /// <summary>
91+ /// Gets the filter collections for incoming and outgoing messages and requests.
8792 /// </summary>
8893 /// <remarks>
8994 /// This property provides access to filter collections that can be used to modify the behavior
9095 /// of various MCP server handlers. The first filter added is the outermost (first to execute),
9196 /// and each subsequent filter wraps closer to the handler.
9297 /// </remarks>
93- 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.
105- /// </summary>
106- public McpServerHandlers Handlers
107- {
108- get => field ??= new ( ) ;
109- set
110- {
111- Throw . IfNull ( value ) ;
112- field = value ;
113- }
114- }
98+ public McpServerFilters Filters { get ; } = new ( ) ;
11599
116100 /// <summary>
117101 /// Gets or sets a collection of tools served by the server.
You can’t perform that action at this time.
0 commit comments