Class McpServiceCollectionExtensions

Assembly: redb.Route.Llm.Mcp.dll

DI registration helpers for redb.Route.Llm.Mcp.

public static class McpServiceCollectionExtensions

Inheritance

Object→McpServiceCollectionExtensions

Methods

AddMcpServer(IServiceCollection, string, McpTransport, Action<McpServerOptionsBuilder>?)

Registers a single MCP server entry. The discovery hosted service spawns

public static IServiceCollection AddMcpServer(this IServiceCollection services, string name, McpTransport transport, Action<McpServerOptionsBuilder>? configure = null)

AddRedbRouteMcp(IServiceCollection)

Registers the MCP component (mcp:// scheme), the client registry,

public static IServiceCollection AddRedbRouteMcp(this IServiceCollection services)