flutter_pilotkit_mcp 1.0.6
flutter_pilotkit_mcp: ^1.0.6 copied to clipboard
MCP server for inspecting and controlling running Flutter apps through Flutter PilotKit.
flutter_pilotkit_mcp #
MCP server for Flutter PilotKit.
This package exposes a running Flutter app to MCP clients through tools backed by PilotKit VM Service extensions.
Run #
dart run bin/flutter_pilotkit_mcp.dart
Optional flags:
dart run bin/flutter_pilotkit_mcp.dart --help
dart run bin/flutter_pilotkit_mcp.dart --version
dart run bin/flutter_pilotkit_mcp.dart --log-level FINE
dart run bin/flutter_pilotkit_mcp.dart --sse-port 8765
MCP Flow #
- Run a Flutter app with
flutter_pilotkit_clawinstalled. - Copy the Flutter VM Service WebSocket URI.
- Start this MCP server.
- Call the
connecttool with the URI. - Use tools such as
get_element_tree,tap,enter_text,take_screenshots, andget_logs.
Example Client Configuration #
{
"mcpServers": {
"flutter-pilotkit": {
"command": "dart",
"args": ["run", "bin/flutter_pilotkit_mcp.dart"],
"cwd": "packages/flutter_pilotkit_mcp"
}
}
}
See the repository README for full setup and security notes.