McpServerConfig class
Configuration for connecting to a single MCP server.
Provide one of command (stdio), url (Streamable HTTP), or transport (custom transport).
Constructors
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