# FlutterSDK Dusk [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/fluttersdk/dusk  
**GitHub Stars:** 3  
**npm Downloads (last month):** 10258  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fluttersdk-dusk

## Description
Drive live Flutter apps: snapshot the Semantics tree, tap, type, scroll and screenshot.

## Tools
Capabilities this server exposes over MCP:

- **search-docs** — Search FlutterSDK package documentation (artisan, dusk, magic, telescope, wind). Returns markdown results with full page content up to a token budget. Default: search all packages at their latest version.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "fluttersdk-dusk": {
    "command": "npx",
    "args": ["-y","@fluttersdk/mcp"]
  }
}
```

## Documentation

## What FlutterSDK Dusk MCP server does

FlutterSDK Dusk MCP server drives a running Flutter application through a single stdio MCP endpoint. It gives an agent a structured view of the UI through Semantics snapshots, then lets the agent act on referenced nodes instead of relying on guessed coordinates or XPath expressions. The same underlying operations are available from the command line and MCP, so terminal-driven and agent-driven workflows use matching behavior.

The package is intended for live, unscripted automation. It can inspect the current interface, interact with controls, capture visual output, observe state, navigate routes, collect exceptions, and run performance-related commands. It complements `integration_test`, which is designed around authored test files and `WidgetTester`.

## How it works

Dusk adds a family of `ext.dusk.*` VM Service extensions to the Flutter application. Its CLI and MCP server route commands to those extensions, allowing an attached debug or profile app to be driven without creating a separate test harness or test file.

A snapshot returns a YAML representation of the Semantics tree with stable-looking `e<N>` references. The `dusk_find` capability also supports `q<N>` handles that are resolved against the live tree for each action. Before a gesture runs, Dusk checks conditions including whether the target is enabled, has a usable rectangle, is visible, remains stable across frames, and receives pointer events. It can scroll an off-viewport target into view as part of this process.

## Setup and configuration

Add the package with:

```bash
flutter pub add fluttersdk_dusk
dart run fluttersdk_dusk dusk:install
```

The installer patches `lib/main.dart`, creates the `./bin/fsa` fast CLI when possible, and registers the Dusk plugin. The MCP endpoint can then be registered with:

```bash
dart run fluttersdk_dusk mcp:install
```

When the fast CLI is unavailable, the generated MCP configuration uses `dart run fluttersdk_dusk mcp:serve`. Dusk requires Dart SDK 3.4.0 or newer and Flutter 3.22.0 or newer. The plugin installation should be guarded with `!kReleaseMode`; release builds tree-shake the driver for mobile, desktop, and web.

## Tools and capabilities

FlutterSDK Dusk MCP server exposes 39 MCP tools, covering the CLI surface plus evaluation support. Supported operations include:

- Snapshotting and observing the Semantics tree
- Tapping, typing, filling, scrolling, dragging, hovering, clicking, focusing, and clearing
- Setting checkboxes, selecting options, pressing keys, and waiting
- Finding nodes, navigating routes, handling modals, and resetting overlays
- Capturing screenshots, hot reloading, and returning a combined reload-and-snapshot result
- Resizing Chrome viewports and applying device profiles through CDP
- Reading console output, collecting non-fatal Flutter errors, and running performance sessions

The web screenshot path has an important distinction: the CLI can use CDP `Page.captureScreenshot` when started with `--cdp-port`, while the MCP screenshot tool dispatches in-process.

## Limitations and notes

Dusk is debug-only and requires a live attachable Flutter app. It is not a replacement for authored integration tests or native-dialog automation. The web screenshot fallback applies to the CLI, not the MCP screenshot tool. The standard server transport is stdio, and the documented client integrations include Claude Code, Cursor, Windsurf, VS Code Copilot, Gemini CLI, Codex CLI, Cline, and Roo Code.

_Full upstream README: https://allmcps.com/mcp/fluttersdk-dusk/readme_

