McpServerConfig class

Configuration for connecting to a single MCP server.

Provide one of command (stdio), url (Streamable HTTP), or transport (custom transport).

Constructors

McpServerConfig({McpClientTransport? transport, String? command, List<String> args = const [], Map<String, String>? environment, Uri? url, Map<String, String>? headers, Duration? timeout, bool disabled = false, List<McpRoot>? roots})
const

Properties

args List<String>
final
command String?
final
disabled bool
final
environment Map<String, String>?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
roots List<McpRoot>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
final
transport → McpClientTransport?
final
url Uri?
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