Class McpRegistry
Default in-memory thread-safe .
public sealed class McpRegistry : IMcpRegistry
Inheritance
Implements
Methods
GetClient(string)
Returns the client for the given server name, or null when none is registered.
public IMcpClient? GetClient(string serverName)
Register(IMcpClient)
Adds a client to the registry. Replaces any existing entry with the same name.
public void Register(IMcpClient client)
Remove(string)
Removes a client from the registry by name. Returns the removed client, or null.
public IMcpClient? Remove(string serverName)