@@ -39,13 +39,9 @@ internal sealed class McpServer : McpEndpoint, IMcpServer
3939 /// <param name="transport">Transport to use for the server representing an already-established session.</param>
4040 /// <param name="options">Configuration options for this server, including capabilities.
4141 /// Make sure to accurately reflect exactly what capabilities the server supports and does not support.</param>
42- /// <param name="loggerFactory">Logger factory to use for logging. Provides logging capabilities to the server
43- /// for diagnostic and troubleshooting purposes. If null, a NullLogger will be used with no output.</param>
42+ /// <param name="loggerFactory">Logger factory to use for logging</param>
4443 /// <param name="serviceProvider">Optional service provider to use for dependency injection</param>
4544 /// <exception cref="McpException">The server was incorrectly configured.</exception>
46- /// <remarks>
47- /// This constructor is internal. Use <see cref="McpServerFactory.Create"/> to create a server instance.
48- /// </remarks>
4945 public McpServer ( ITransport transport , McpServerOptions options , ILoggerFactory ? loggerFactory , IServiceProvider ? serviceProvider )
5046 : base ( loggerFactory )
5147 {
@@ -99,22 +95,6 @@ public McpServer(ITransport transport, McpServerOptions options, ILoggerFactory?
9995 InitializeSession ( transport ) ;
10096 }
10197
102- /// <summary>
103- /// Gets or sets the capabilities supported by this server.
104- /// </summary>
105- /// <remarks>
106- /// <para>
107- /// These capabilities are advertised to the client during the initialize handshake.
108- /// </para>
109- /// <para>
110- /// The server capabilities define what features the server supports, such as tools,
111- /// prompts, resources, logging, completions, and other protocol-specific functionality.
112- /// </para>
113- /// <para>
114- /// This property is typically set during server initialization based on the
115- /// configured <see cref="McpServerOptions.Capabilities"/>.
116- /// </para>
117- /// </remarks>
11898 public ServerCapabilities ? ServerCapabilities { get ; set ; }
11999
120100 /// <inheritdoc />
@@ -130,17 +110,6 @@ public McpServer(ITransport transport, McpServerOptions options, ILoggerFactory?
130110 public IServiceProvider ? Services { get ; }
131111
132112 /// <inheritdoc />
133- /// <inheritdoc/>
134- /// <remarks>
135- /// <para>
136- /// For servers, the endpoint name is formatted as "Server ({ServerInfo.Name} {ServerInfo.Version})".
137- /// </para>
138- /// <para>
139- /// This property returns the internal <see cref="_endpointName"/> field, which is initialized during construction
140- /// and may be updated if client information becomes available during the session.
141- /// It's used in all logging operations to identify this specific server endpoint.
142- /// </para>
143- /// </remarks>
144113 public override string EndpointName => _endpointName ;
145114
146115 /// <inheritdoc />
@@ -165,18 +134,6 @@ public async Task RunAsync(CancellationToken cancellationToken = default)
165134 }
166135 }
167136
168- /// <inheritdoc/>
169- /// <summary>
170- /// Asynchronously releases resources used by the MCP server without any synchronization.
171- /// </summary>
172- /// <returns>A task that represents the asynchronous dispose operation.</returns>
173- /// <remarks>
174- /// This method:
175- /// <list type="bullet">
176- /// <item><description>Unregisters tool and prompt collection change event handlers</description></item>
177- /// <item><description>Calls the base class implementation to clean up common endpoint resources</description></item>
178- /// </list>
179- /// </remarks>
180137 public override async ValueTask DisposeUnsynchronizedAsync ( )
181138 {
182139 if ( _toolsChangedDelegate is not null &&
@@ -233,7 +190,7 @@ private void SetCompletionHandler(McpServerOptions options)
233190 return ;
234191 }
235192
236- var completeHandler = completionsCapability . CompleteHandler ??
193+ var completeHandler = completionsCapability . CompleteHandler ??
237194 throw new McpException ( "Completions capability was enabled, but Complete handler was not specified." ) ;
238195
239196 // This capability is not optional, so return an empty result if there is no handler.
0 commit comments