MCPToolConfig class

Configuration for a specific MCP tool (response variant).

Annotations
  • @immutable

Constructors

MCPToolConfig({required String name, required bool enabled, required PermissionPolicy permissionPolicy})
Creates an MCPToolConfig.
const
MCPToolConfig.fromJson(Map<String, dynamic> json)
Creates an MCPToolConfig 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, bool? enabled, PermissionPolicy? permissionPolicy}) MCPToolConfig
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