MCPServerURLDefinition class
URL-based MCP server connection.
Constructors
- MCPServerURLDefinition({String type = 'url', required String name, required String url})
-
Creates an MCPServerURLDefinition.
const
-
MCPServerURLDefinition.fromJson(Map<
String, dynamic> json) -
Creates an MCPServerURLDefinition from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
Unique name for this server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type discriminator. Always
url.final - url → String
-
Endpoint URL for the MCP server.
final
Methods
-
copyWith(
{String? type, String? name, String? url}) → MCPServerURLDefinition - Creates a copy with replaced values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override