MCPClientDef class

Dynamic wrapper representing an MCP server definition in the multi-server manager.

Constructors

MCPClientDef({required String name, required MCPClient client, String? displayName})
Creates a new MCPClientDef instance.

Properties

availableTools → List<MCPTool>
List of capabilities/tools exposed by the server.
no setter
cachedTools ← List<MCPTool>
Update cached tools list in memory.
no getter
client → MCPClient
The associated MCPClient instance.
final
displayName → String?
Optional display/friendly name for rendering in UI tabs.
final
hashCode → int
The hash code for this object.
no setterinherited
isConnected → bool
Connection status of the wrapped client.
no setter
label → String
The user-facing label name of the server.
no setter
name → String
Unique identifier name of the server config.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
The target connection endpoint URL.
no setter

Methods

callTool(String toolName, Map<String, dynamic> arguments) → Future<MCPToolResult>
Passes the tool call request to the wrapped client instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited