McpSdkServerConfig class final

An in-process ("sdk") MCP server. Mirrors McpSdkServerConfigWithInstance, but carries a serializable descriptor instead of a live McpServer (proposal §7.0.4): the extension reconstructs the real instance.

Inheritance

Constructors

McpSdkServerConfig({required String name, String version = '1.0.0', List<SdkMcpTool> tools = const []})
McpSdkServerConfig.fromJson(Map<String, dynamic> json)
Parses the descriptor from wire JSON (tool handlers are not transported).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The server name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tools List<SdkMcpTool>
The tool descriptors this server exposes.
final
type String
The server type discriminator.
no setteroverride
version String
The server version.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes to wire JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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