Skip to content

Commit 2334e2d

Browse files
Copilotstephentoub
andcommitted
Rename ConfigureExperimental to ConfigureExperimentalAndExtensions and remove redundant = new() initializer
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent c108e2e commit 2334e2d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ModelContextProtocol.Core/Server/McpServerImpl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public McpServerImpl(ITransport transport, McpServerOptions options, ILoggerFact
9090
ConfigureTasks(options);
9191
ConfigureLogging(options);
9292
ConfigureCompletion(options);
93-
ConfigureExperimental(options);
93+
ConfigureExperimentalAndExtensions(options);
9494

9595
// Register any notification handlers that were provided.
9696
if (options.Handlers.NotificationHandlers is { } notificationHandlers)
@@ -138,7 +138,7 @@ void Register<TPrimitive>(McpServerPrimitiveCollection<TPrimitive>? collection,
138138
public override string? NegotiatedProtocolVersion => _negotiatedProtocolVersion;
139139

140140
/// <inheritdoc/>
141-
public ServerCapabilities ServerCapabilities { get; } = new();
141+
public ServerCapabilities ServerCapabilities { get; }
142142

143143
/// <inheritdoc />
144144
public override ClientCapabilities? ClientCapabilities => _clientCapabilities;
@@ -262,7 +262,7 @@ private void ConfigureCompletion(McpServerOptions options)
262262
McpJsonUtilities.JsonContext.Default.CompleteResult);
263263
}
264264

265-
private void ConfigureExperimental(McpServerOptions options)
265+
private void ConfigureExperimentalAndExtensions(McpServerOptions options)
266266
{
267267
ServerCapabilities.Experimental = options.Capabilities?.Experimental;
268268
ServerCapabilities.Extensions = options.Capabilities?.Extensions;

0 commit comments

Comments
 (0)