McpBridge class

Discovers tools from configured MCP servers and exposes them as native Tool instances.

Constructors

McpBridge({McpClient clientFactory(Implementation)?})
Creates a new McpBridge instance with an optional clientFactory.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tools → List<McpTool>
All tools discovered from all connected MCP servers.
no setter

Methods

connect(McpServerConfig serverCfg) → Future<void>
Connects to an MCP server based on its configuration type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → Future<void>
Stops all active MCP sessions and releases resources.
toString() → String
A string representation of this object.
inherited

Operators

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