MCPPlugin class abstract
Base class for MCP plugins according to MCP UI DSL v1.0
- Implementers
Constructors
Properties
-
actions
→ Map<
String, Future Function(Map< ?String, dynamic> )> -
Custom action executors provided by this plugin
no setter
-
dependencies
→ List<
String> -
Plugin dependencies (other plugin names)
no setter
- description → String
-
Plugin description
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Unique plugin name
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
services
→ Map<
Type, Service> ? -
Services provided by this plugin
no setter
- version → String
-
Plugin version
no setter
-
widgets
→ Map<
String, WidgetFactory> ? -
Custom widgets provided by this plugin
no setter
Methods
-
dispose(
) → Future< void> - Dispose of plugin resources
-
initialize(
PluginContext context) → Future< void> - Initialize the plugin
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDisabled(
) → void - Called when plugin is disabled
-
onEnabled(
) → void - Called when plugin is enabled
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited