Interface IMcpRegistry

Assembly: redb.Route.Llm.Mcp.dll

Registry of singletons keyed by server name.
Populated by on host startup; queried by
at tools/call time.

public interface IMcpRegistry

Methods

All()

Snapshot of all clients currently in the registry.

IReadOnlyCollection<IMcpClient> All()

GetClient(string)

Returns the client for the given server name, or null when none is registered.

IMcpClient? GetClient(string serverName)

Register(IMcpClient)

Adds a client to the registry. Replaces any existing entry with the same name.

void Register(IMcpClient client)

Remove(string)

Removes a client from the registry by name. Returns the removed client, or null.

IMcpClient? Remove(string serverName)