MCPToolConfigParams class

Configuration override for a specific MCP tool (request variant).

Annotations
  • @immutable

Constructors

MCPToolConfigParams({required String name, bool? enabled, PermissionPolicy? permissionPolicy})
Creates an MCPToolConfigParams.
const
MCPToolConfigParams.fromJson(Map<String, dynamic> json)
Creates an MCPToolConfigParams from JSON.
factory

Properties

enabled bool?
Whether this tool is enabled.
final
hashCode int
The hash code for this object.
no setteroverride
name String
The tool name.
final
permissionPolicy PermissionPolicy?
Permission policy for this tool.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? name, Object? enabled = unsetCopyWithValue, Object? permissionPolicy = unsetCopyWithValue}) MCPToolConfigParams
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.
toString() String
A string representation of this object.
override

Operators

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