Interface IMcpRegistry
Registry of singletons keyed by server name.
Populated by on host startup; queried by
at tools/call time.
public interface IMcpRegistry
Methods
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)