McpServerConfig class sealed

One configured MCP server. Sealed: either a stdio process (McpStdioServerConfig) or a remote HTTP endpoint (McpHttpServerConfig).

Implementers

Constructors

McpServerConfig.fromYaml(String name, Object? node)
Parses one mcp.servers.<name> entry: a map with either command (stdio) or url (remote). Having both or neither is a schema error.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The server name (the mcp.servers key).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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