* Remove `McpEndpoint` & `IMcpClient` * Revise naming, add abstract classes * Fix missing renames * Move extension methods to instance methods * Add back old API, but obsoleted * Add back obsoleted factory classes * Move deprecation attributes * `SseClientTransport` -> `HttpClientTransport` * Update src/ModelContextProtocol.Core/Server/AugmentedServiceProvider.cs Co-authored-by: Stephen Halter <halter73@gmail.com> * PR feedback * PR feedback * Add back dispose lock * Fix docs projects * PR feedback * Undo `docs/*.md` changes --------- Co-authored-by: Stephen Halter <halter73@gmail.com>
25 lines
998 B
C#
25 lines
998 B
C#
using ModelContextProtocol.Server;
|
|
|
|
namespace Microsoft.Extensions.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// Provides a builder for configuring <see cref="McpServer"/> instances.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The <see cref="IMcpServerBuilder"/> interface provides a fluent API for configuring Model Context Protocol (MCP) servers
|
|
/// when using dependency injection. It exposes methods for registering tools, prompts, custom request handlers,
|
|
/// and server transports, allowing for comprehensive server configuration through a chain of method calls.
|
|
/// </para>
|
|
/// <para>
|
|
/// The builder is obtained from the <see cref="McpServerServiceCollectionExtensions.AddMcpServer"/> extension
|
|
/// method and provides access to the underlying service collection via the <see cref="Services"/> property.
|
|
/// </para>
|
|
/// </remarks>
|
|
public interface IMcpServerBuilder
|
|
{
|
|
/// <summary>
|
|
/// Gets the associated service collection.
|
|
/// </summary>
|
|
IServiceCollection Services { get; }
|
|
}
|