using ModelContextProtocol;
namespace Microsoft.Extensions.DependencyInjection;
///
/// Default implementation of that enables fluent configuration
/// of the Model Context Protocol (MCP) server. This builder is returned by the
/// extension method and
/// provides access to the service collection for registering additional MCP components.
///
internal sealed class DefaultMcpServerBuilder : IMcpServerBuilder
{
///
public IServiceCollection Services { get; }
///
/// Initializes a new instance of the class.
///
/// The service collection to which MCP server services will be added. This collection
/// is exposed through the property to allow additional configuration.
/// Thrown when is null.
public DefaultMcpServerBuilder(IServiceCollection services)
{
Throw.IfNull(services);
Services = services;
}
}