MCPPlugin class abstract

Base class for MCP plugins according to MCP UI DSL v1.0

Implementers

Constructors

MCPPlugin()

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
hooks → Map<PluginHookType, PluginHookCallback>?
Hooks this plugin listens on.
no setter
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

configure(Map<String, dynamic> config) → void
Configure the plugin with a configuration map. Called before initialize() to provide plugin-specific settings.
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