FlutterMcpWeb class
A web implementation of the FlutterMcpPlatform of the FlutterMcp plugin.
- Inheritance
-
- Object
- PlatformInterface
- FlutterMcpPlatform
- FlutterMcpWeb
Constructors
- FlutterMcpWeb.new()
- Constructs a FlutterMcpWeb
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBackgroundServiceRunning → bool
-
Check if background service is running
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelAllNotifications(
) → Future< void> -
Cancel all notifications
inherited
-
chat(
String llmId, String userInput, {Map< String, dynamic> ? options}) → Future -
UNSUPPORTED ON WEB
Send a chat message to LLM -
checkPermission(
String permission) → Future< bool> -
Check if a permission is granted
inherited
-
connectClient(
String clientId) → Future< bool> -
UNSUPPORTED ON WEB
Connect an MCP client -
connectServer(
String serverId) → Future< bool> -
UNSUPPORTED ON WEB
Connect an MCP server -
createClient(
{required String name, required String version, dynamic capabilities, String? transportCommand, List< String> ? transportArgs, Map<String, dynamic> ? options}) → Future<String> -
UNSUPPORTED ON WEB
Create an MCP client -
createLlm(
{required String providerName, required dynamic config, Map< String, dynamic> ? options}) → Future<String> -
UNSUPPORTED ON WEB
Create and configure an LLM -
createServer(
{required String name, required String version, dynamic capabilities, Map< String, dynamic> ? options}) → Future<String> -
UNSUPPORTED ON WEB
Create an MCP server -
getPlatformVersion(
) → Future< String?> -
Returns a String containing the version of the platform.
override
-
getSystemStatus(
) → Map< String, dynamic> - Get web platform status information
-
getWebCapabilities(
) → Map< String, dynamic> - Returns status of web platform capabilities
-
initialize(
MCPConfig config) → Future< void> -
Initialize the plugin on web platform
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission(
String permission) → Future< bool> -
Request a permission
inherited
-
requestPermissions(
List< String> permissions) → Future<Map< String, bool> > -
Request multiple permissions
inherited
-
secureRead(
String key) → Future< String?> -
Read a value from secure storage
override
-
secureStore(
String key, String value) → Future< void> -
Store a value securely
override
-
showNotification(
{required String title, required String body, String? icon, String id = 'mcp_notification'}) → Future< void> -
Show notification
override
-
shutdown(
) → Future< void> -
Shutdown all services
override
-
startBackgroundService(
) → Future< bool> -
Start background service
override
-
stopBackgroundService(
) → Future< bool> -
Stop background service
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void