leancodepl/marionette_mcp
소개
AI 에이전트가 런타임에 Flutter 앱과 상호작용할 수 있도록 하는 MCP 서버입니다. 위젯을 검사하고, 탭을 시뮬레이션하고, 텍스트를 입력하고, 스크롤하고, 스크린샷을 촬영할 수 있습니다.
AI 및 머신러닝What you can do
- See - get_interactive_elements, take_screenshots
- Act - tap, enter_text, scroll_to, swipe, long_press, double_tap, pinch_zoom, press_key, press_back_button
- Verify - get_logs, set_device_config (text scale, bold text, dark mode)
- Iterate - hot_reload, hot_restart
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- +8
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMarionette MCP
Your agent's hands and eyes on a running Flutter app.
Marionette connects Claude Code, Cursor, Codex, Gemini CLI, Copilot or any MCP client to the Flutter app you run in debug mode. The agent sees the screen, taps, types, scrolls, reads the logs, hot reloads, and writes a report of what it did. If you know Playwright MCP: this is that, for Flutter.
Website · Docs · Video · Article
Quick start
Add the package to your app and initialize the binding in debug builds:
flutter pub add marionette_fluttervoid main() { if (kDebugMode) { MarionetteBinding.ensureInitialized(); } else { WidgetsFlutterBinding.ensureInitialized(); } runApp(const MyApp()); }If another package provides a binding mixin, combine both behaviors in one binding and initialize it before startup. See the binding guide.
Give your agent a bridge: the MCP server or the
marionetteCLI, whichever you prefer (every agent):# MCP server, registered with Claude Code dart pub global activate marionette_mcp claude mcp add --transport stdio marionette -- marionette_mcp # or the CLI dart pub global activate marionette_cliRun the app with
flutter runand paste the VM service URI it prints (http://127.0.0.1:…/…=/) into the prompt, or ask the agent to run the app itself:Connect to http://127.0.0.1:9101/…=/. On Profile, a malformed email must show an error and keep Submit disabled, and a valid one must submit.
[!IMPORTANT] Flutter's own widgets work as is. A custom design system needs one configuration step, or the agent cannot see your buttons and fields: see Configure.
An app whose source imports the
material_uiorcupertino_uipackages addsmarionette_materialormarionette_cupertinoand callswithMaterialUi()orwithCupertinoUi()on its configuration (both, for both). A library in the lockfile only, likecupertino_uiundermaterial_ui, needs neither. See UI libraries.
What the agent can do
| Tools | |
|---|---|
| See | get_interactive_elements, take_screenshots |
| Act | tap, enter_text, scroll_to, swipe, long_press, double_tap, pinch_zoom, press_key, press_back_button |
| Verify | get_logs, set_device_config (text scale, bold text, dark mode) |
| Iterate | hot_reload, hot_restart |
| Extend | your app's own actions, registered with registerMarionetteExtension |
With MarionetteConfiguration(enableSessionReports: true), every run leaves a folder: a steps.md the server writes, one line per tool call, and a report.md the agent writes from it. See Reports.
The marionette CLI drives the app with the same actions as shell commands: see Drive.
For UI outside the Flutter widget tree (system permission dialogs, OS sheets, webviews), use the native lane: native_connect with platform android | ios, then native_get_elements / native_tap / etc. Prefer Flutter tools when the target is an in-app widget. The CLI has the same native lane as native-* commands (marionette native-connect --platform android, marionette native-tap --text Allow). Setup (adb, a WebDriverAgent build), the CLI and the workflow: Native lane. To run the MCP server without the native tools, start it with --no-native (marionette_mcp --no-native or marionette mcp --no-native).
Agent Skills
marionette_flutter ships three Agent Skills:
| Skill | Teaches the agent to |
|---|---|
marionette-flutter-setup |
Add the binding and the UI library integrations, configure a custom design system, logs and device config |
marionette-flutter-drive-app |
Drive the app with the MCP tools or the CLI, and write the report |
marionette-flutter-to-patrol |
Turn a verified run into Patrol tests |
dart run skills@ get # in an app that depends on marionette_flutter
npx skills add leancodepl/marionette_mcp # without the Dart toolchain
Documentation
| Page | What is inside |
|---|---|
| Start | Setup, every agent's config, the first prompt, the example app, FAQ |
| Concepts | How the agent sees a screen, selectors, compaction, the single-binding rule |
| Configure | UI libraries, custom design systems, Semantics, logs, device config, custom extensions |
| Drive | Prompts for common jobs, every tool with its CLI command, the CLI |
| Reports | Session folders, steps.md, report.md, the verdict |
| Native lane | System UI outside Flutter: dialogs, pickers, notifications, WebViews — setup, workflow, what each lane sees. |
Packages
| Package | Role |
|---|---|
marionette_flutter |
The binding in your app. Required. |
marionette_mcp |
The MCP server your agent runs. |
marionette_cli |
The marionette CLI, for shell-only agents. |
marionette_material |
Support for the material_ui widgets. Flutter 3.44+. |
marionette_cupertino |
Support for the cupertino_ui widgets. Flutter 3.44+. |
marionette_logging |
Log collection from the logging package. |
marionette_logger |
Log collection from the logger package. |
🛠️ Maintained by LeanCode
Marionette is built by LeanCode, the creators of Patrol, the testing framework for Flutter. We build Flutter products from scratch to long-term maintenance.
관련 프로젝트 살펴보기
불러오는 중…