McpConfig class final

The mcp: config section: the server map plus the tool-call timeout.

Constructors

McpConfig({required Map<String, McpServerConfig> servers, Duration toolCallTimeout = const Duration(seconds: 60)})
Creates an McpConfig; servers maps server name to its config.
McpConfig.fromYaml(Object? node)
Parses the mcp: section. Strict: schema errors throw ConfigException.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether no servers are configured.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
servers Map<String, McpServerConfig>
Server name → server config.
final
toolCallTimeout Duration
Default timeout for one tools/call request.
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
toYaml() String
Serializes to the mcp: yaml section (round-trips with McpConfig.fromYaml).

Operators

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