McpToolConfig class final
Bundle enabling MCP for an agent session: the parsed config plus the
host capabilities. Mirrors LspToolConfig.
Constructors
- McpToolConfig({required McpConfig config, McpTransportFactory? transportFactory, Client? httpClient})
-
Creates an McpToolConfig.
const
Properties
- config → McpConfig
-
The parsed
mcp:config section.final - hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client?
-
HTTP client for remote servers (tests inject
MockClients). Null creates a defaultpackage:httpclient per connection.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transportFactory → McpTransportFactory?
-
Spawns stdio servers (the io-side factory lives in
lib/io.dart). Null on hosts without process support (web): stdio servers then report a clean "not supported" status while remote servers still connect.final
Methods
-
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