SSyncDev

Dowel MCP Server

A Flutter dev-loop CLI that starts, hot reloads and inspects your app, and exposes the same commands to agents over MCP.

Local server

What is the Dowel MCP Server?

Most Flutter tooling assumes a person at the keyboard pressing r to hot reload. Dowel turns that loop into commands a script, or an assistant, can call. It is a pure-Dart CLI with a built-in stdio MCP server, and it doubles as the base that plugins such as crumbs and tapir build on. If you only want the short version: the Dowel MCP server lets an agent launch your app, push a code change into it and run Dart expressions against the live isolate.

The supervised session

dart run dowel start launches flutter run detached and records the session under ~/.dowel/sessions/<hash>/, keyed per project. Two apps can therefore be driven at once without a command hitting the wrong one. Reload and hot restart are sent through a FIFO. tinker opens a REPL that evaluates Dart in the running app over the VM Service. A command that dials the app while it is still building exits with code 75, which signals "retry", not failure.

Tools an agent gets

Running ./bin/dowel mcp:install writes a dowel entry into .mcp.json. The substrate tools are:

  • dowel_start, dowel_stop, dowel_restart for the lifecycle
  • dowel_reload and dowel_hot_restart to apply edits
  • dowel_status, dowel_logs, dowel_doctor, dowel_list for inspection
  • dowel_tinker to evaluate an expression in the app

Installed plugins add their own tools on top. With no app running the server stays up and reconnects when a call needs the VM Service. Allow and deny filters live in .dowel/mcp.json, DOWEL_MCP_* variables or serve flags; a deny always wins.

Scaffolding and plugins

dart pub add dowel followed by dart run dowel install generates bin/dispatcher.dart, codegen barrels and a fast bin/dowel wrapper that starts in about 0.2 seconds. make:command scaffolds new commands. plugin:install stages operations from a plugin's install.yaml and records them so plugin:uninstall can reverse most of the work. Edits injected into existing files are not reversed automatically.

Platform notes and caveats

The lifecycle commands (start, stop, reload and friends) support macOS and Linux only; the rest runs wherever Dart does. Dart 3.13 or newer is required. To give the Dowel MCP server its plugin tools, use ./bin/dowel mcp:serve if you want plugin tools; dart run dowel:mcp loads the substrate set alone. In git worktrees the session lookup can fall back to the main app, so start dowel inside the worktree first.

Related options include the iOS Simulator server, Capgo CLI MCP and the broader mobile development category.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
dowel_startStart the Flutter app under supervision; accepts the start command's options.
dowel_stopStop the running app and reap its process group.
dowel_restartRelaunch the app.
dowel_reloadHot reload, keeping Dart state.
dowel_hot_restartHot restart, dropping Dart state.
dowel_statusReturn the recorded session.
dowel_logsReturn the captured app log.
dowel_doctorCheck the Flutter and Dart toolchain and default port.
dowel_listList registered commands.
dowel_tinkerEvaluate a Dart expression in the running app.

How to install the Dowel MCP Server

{
  "mcpServers": {
    "dowel": {
      "command": "./bin/dowel",
      "args": [
        "mcp:serve"
      ]
    }
  }
}

Run dart run dowel install and ./bin/dowel mcp:install in your Flutter project first. The launcher path is project-relative; dart run dowel:mcp serves substrate tools only.

Frequently asked questions

The app lifecycle commands (start, stop, reload and so on) run on macOS and Linux. The rest of the CLI and the MCP server run anywhere Dart runs.