Flutter Maestro
БесплатноНе проверенBridges Flutter mobile app development with Maestro UI testing by providing tools for inspecting UI hierarchies, simulating user interactions, taking screenshot
Описание
Bridges Flutter mobile app development with Maestro UI testing by providing tools for inspecting UI hierarchies, simulating user interactions, taking screenshots, and managing app state through hot reload/restart via VM Service connections.
README
Experimental Model Context Protocol (MCP) server that enables AI agents to interact with running Flutter applications via the VM Service and execute Maestro flows. Just for playing around with custom MCPs
Prerequisites
- Maestro CLI: Required for running Maestro flows with the
run_maestro_flowtool.- Install via Homebrew:
brew install maestro - Or follow the official installation guide
- Install via Homebrew:
Installation
- Clone this repository.
- Run
dart pub getto install dependencies.
Configuration
VS Code
Add the following to your MCP settings file (typically ~/.vscode/mcp.json or similar, depending on the extension):
{
"servers": {
"flutter-maestro": {
"command": "dart",
"args": [
"/absolute/path/to/flutter_maestro_mcp/bin/flutter_maestro_mcp.dart"
]
}
}
}
Note: Replace /absolute/path/to/flutter_maestro_mcp with the actual path to your cloned repository.
Testing with Example App
This repository includes an example Flutter application instrumented with test hooks to verify the MCP server functionality.
Using VS Code (Recommended):
- Open the repository in VS Code.
- Go to Run and Debug and select "Flutter Example App".
- Copy the VM Service URI from the Debug Console.
Using Command Line:
- Navigate to
example/. - Run the app:
flutter run. - Note the VM Service URI from the output (e.g.,
ws://127.0.0.1:12345/ws).
Once Running:
- Copy the complete VM Service URI from the Flutter app output
- Use the
connecttool with this URI - Try tools like
inspect_uiandtapto interact with the running example app
Finding the VM Service URI:
The VM Service URI is printed when your Flutter app starts. You MUST copy the complete URI including the authentication token:
- VS Code Debug Console: Search for "VM Service" or "Observatory"
- Flutter CLI output: Look for "The Dart VM service is listening on ws://..."
- URI format:
ws://127.0.0.1:PORT/AUTH_TOKEN/ws - Example:
ws://127.0.0.1:59548/-ppep2G-MyI=/ws
⚠️ Important: Auto-discovery is not supported. You must provide the complete URI with the authentication token. The token is only printed once at app startup and cannot be retrieved later.
Available Tools
connect: Connect to a running Flutter app using its VM Service URI.- Arguments:
uri(required - the complete VM Service WebSocket URI including auth token from your Flutter app output, e.g.,ws://127.0.0.1:59548/-ppep2G-MyI=/ws)
- Arguments:
disconnect: Disconnect from the current Flutter app.inspect_ui: Get a simplified JSON representation of the current UI hierarchy (keys, text, semantics).tap: Tap on a widget matching criteria.- Arguments:
key,text,tooltip,semantics
- Arguments:
enter_text: Enter text into a widget matching criteria.- Arguments:
input(required), plus matcher arguments (key,text, etc.)
- Arguments:
scroll_to: Scroll until a widget is visible.- Arguments: Matcher arguments (
key,text, etc.)
- Arguments: Matcher arguments (
take_screenshot: Take a screenshot of the current screen.get_logs: Retrieve application logs.hot_reload: Trigger a hot reload.write_maestro_flow: Write a Maestro YAML flow to a file.- Arguments:
path,content
- Arguments:
run_maestro_flow: Run a Maestro YAML flow usingmaestro test.- Arguments:
path
- Arguments:
Установка Flutter Maestro
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/code-growers/flutter_maestro_mcpFAQ
Flutter Maestro MCP бесплатный?
Да, Flutter Maestro MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Flutter Maestro?
Нет, Flutter Maestro работает без API-ключей и переменных окружения.
Flutter Maestro — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Flutter Maestro в Claude Desktop, Claude Code или Cursor?
Открой Flutter Maestro на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
LibreOffice Tools
Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a
автор: passerbyflutterdannote/figma-use
Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.
автор: dannoteLogo.dev
Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
автор: NOVA-3951Design Inspiration Server
Searches top design platforms like Dribbble and Behance to provide UI inspiration, color palettes, and layout patterns via the Serper API. It allows users to re
автор: YonasValentinCompare Flutter Maestro with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории design
