flutter-skill is an MCP server that gives any AI agent eyes and hands inside your running app — 10 platforms, no test code. 360★, MIT, last pushed 2026-08-21.
What is flutter-skill?
Writing end-to-end tests is painful; maintaining them is worse. Page Objects rot, selectors break, and the suite ends up describing last quarter’s UI.
flutter-skill takes the other route. It exposes your running app to an AI agent over the Model Context Protocol, so the agent can see the widget tree, tap buttons, type text, scroll, navigate and take screenshots. You describe the intent in English:
“Test the checkout flow with an empty cart, then add 3 items and complete the purchase.”
No Page Objects, no XPath, no selectors.
The Flutter package is flutter_skill (0.9.36 on pub.dev), but the same MCP server drives React Native, Electron, Tauri, Android/Kotlin, KMP Desktop, .NET MAUI, iOS/UIKit, any website, and Chrome over CDP with no SDK at all.
Why it matters in 2026
Two design decisions make this more than a demo.
The snapshot is a tree, not a picture. snapshot() returns a structured accessibility/element tree rather than an image, which the project measures at 87–99% fewer tokens than sending screenshots to the model. If you have ever watched an agent burn its context window on PNGs, you know why that matters — it is the difference between an agent that explores twelve screens and one that runs out of room on the third.
It talks to the runtime, not through a driver. The published benchmarks put tap and enter_text at 1–2 ms and snapshot at 2–29 ms depending on platform, against the 50–100 ms typical of WebDriver-mediated automation. Numbers from a project’s own README always deserve a sceptical eye, but the architecture backs the claim: there is no WebDriver or CDP indirection in the Flutter path.
There are two modes. server speaks MCP over stdio for IDE integration and exposes 253 tools that vary per page. serve runs an HTTP server for CI and scripting, with a CLI client:
flutter-skill serve https://your-app.com
flutter-skill tap "Login"
flutter-skill snap
Getting started
Install the server:
npm install -g flutter-skill
Point your agent at it:
{
"mcpServers": {
"flutter-skill": {
"command": "flutter-skill",
"args": ["server"]
}
}
}
That block goes in .cursor/mcp.json, claude_desktop_config.json, .vscode/mcp.json or ~/.codeium/windsurf/mcp_config.json depending on your tool.
Then two lines in your app:
import 'package:flutter_skill/flutter_skill.dart';
void main() {
if (kDebugMode) FlutterSkillBinding.ensureInitialized();
runApp(const MyApp());
}
Keep the kDebugMode guard. A release build should never carry a binding that lets an external process drive the UI.
Homebrew, Scoop, Docker, dart pub global activate flutter_skill, VS Code and JetBrains plugins are all available too, and flutter-skill init auto-detects and patches an existing app.
When should you use flutter-skill?
- you want exploratory testing — “walk every screen and tell me what breaks” — without writing it
- you are already using Claude Code, Cursor or Copilot and want it to verify its own UI changes
- you maintain apps on several platforms and want one automation surface across them
- your agent keeps running out of context on screenshots
Where it falls short
Version 0.9.36 and 98.8% of a self-authored test suite are not the same thing as production maturity. The test scores in the README are the project grading its own homework against its own sample app; treat them as a signal of effort, not of coverage on your app.
More fundamentally, agent-driven testing is not deterministic. The same prompt will not produce the same 28 actions twice, which makes it excellent at finding bugs and poor at proving one stays fixed. It complements integration_test and golden tests; it does not replace them. Anyone planning to delete their regression suite should not.
The security surface deserves a thought too. You are opening a channel that lets an external process read and drive your UI. In debug builds on your own machine that is fine. Make sure it is never anywhere else.
And 10 platforms means 10 SDKs at 10 different levels of polish — Flutter is the flagship and scores 188/195; iOS is listed with 19 tests. Check the platform you actually care about.
Alternatives worth comparing
integration_testandflutter_driver— deterministic, repeatable, and yours to maintain- dart-lang/ai: Dart’s official MCP packages — first-party MCP for the SDK and tooling rather than the running UI
- Maestro, Appium, Patrol — declarative or WebDriver-based mobile E2E
- tapflow: self-hosted simulator streaming for your whole team — human testers in a browser instead of an agent
Frequently asked questions
How much code do I have to add to my Flutter app?
Two lines. import 'package:flutter_skill/flutter_skill.dart'; and if (kDebugMode) FlutterSkillBinding.ensureInitialized(); at the top of main(). Guard it with kDebugMode so the binding never ships in a release build.
Which AI tools can drive it?
Any MCP-compatible agent. The README lists Cursor, Claude Desktop, Windsurf, VS Code Copilot, Cline, Continue.dev and OpenClaw, each with the config file it expects. The server block itself is the same: flutter-skill server.
Why is it faster than Playwright or Appium?
It talks to the app runtime directly rather than through WebDriver or CDP indirection. The project’s own benchmarks put a tap at 1–2 ms against the 50–100 ms typical of browser automation — worth verifying on your own app rather than taking on faith.
Does it replace integration_test?
No. Agent-driven exploration is excellent at finding bugs and terrible at proving a fix stays fixed, because the same prompt does not produce the same run twice. Keep deterministic tests for regressions and use flutter-skill for exploration.
Resources & links
- GitHub: ai-dashboad/flutter-skill
- pub.dev: flutter_skill
- npm: flutter-skill
- Docs: ai-dashboad.github.io/flutter-skill
Part of FlutterCook — hands-on guides to the best open-source Flutter libraries, UI kits, and apps. Explore the live GitHub trends or browse YouTube guides.
Originally published on FlutterCook. Read the latest version there — that copy is the one kept up to date.
Nhận xét
Đăng nhận xét