FlutterMcpServer class

Full Web implementation of the Flutter MCP Server using an HTTP Bridge.

Because web browsers run in a sandbox that cannot bind raw TCP listening ports, this implementation seamlessly syncs live annotations, app state, and screenshots with the local Flutter Agentation MCP Bridge (http://127.0.0.1:4747/sync).

Constructors

FlutterMcpServer(AgentationController controller)

Properties

connectedClientsCount → int
no setter
controller → AgentationController
final
errorMessage → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
httpUrl → String
no setter
isRunning → bool
no setter
isSupported → bool
no setter
onStatusChanged ↔ VoidCallback?
Callback invoked whenever the server starts, stops, or changes state.
getter/setter pair
port → int
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sseUrl → String
no setter

Methods

broadcastAfsEvent(String type, Map<String, dynamic> payload, {String? sessionId}) → void
broadcastUpdate() → void
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({int port = 4747}) → Future<bool>
Starts the Web MCP Bridge connection on the specified port.
stop() → Future<void>
Stops the Web MCP Bridge connection and cancels background timers.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited