Improve how to host McpServer (#30)
This commit is contained in:
parent
30f3f192ca
commit
257a97a659
1 changed files with 538 additions and 45 deletions
15
src/mcpdotnet/Configuration/IMcpServerBuilder.cs
Normal file
15
src/mcpdotnet/Configuration/IMcpServerBuilder.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using McpDotNet.Server;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace McpDotNet.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Builder for configuring <see cref="IMcpServer"/> instances.
|
||||
/// </summary>
|
||||
public interface IMcpServerBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the service collection.
|
||||
/// </summary>
|
||||
IServiceCollection Services { get; }
|
||||
}
|
||||
Loading…
Reference in a new issue