Skip to content

Commit 93ab365

Browse files
committed
docs(mcp): prefer -d web-server for agent-driven web testing
With `-d chrome`, only the Chrome window Flutter spawns receives hot reload patches; a second browser at the same URL renders the bundle but is invisible to dwds. Spell out the recommendation in the note block so readers don't hit the trap.
1 parent 7e08894 commit 93ab365

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/content/ai/mcp-server.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ out of production builds.
415415
**Web**: the `flutter_driver` package doesn't compile under dart2js. Pair
416416
the Dart MCP server with a browser-driving MCP for clicks and screenshots;
417417
the Dart MCP server still handles widget tree, runtime errors, and hot
418-
reload through DTD.
418+
reload through DTD. Prefer `flutter run -d web-server` so the browser the
419+
agent drives is the one DTD is connected to — with `-d chrome`, only the
420+
window Flutter spawned receives hot reload patches.
419421

420422
See the [setup guide][flutter-driver-guide] for the snippet, web modes,
421423
and common pitfalls.

0 commit comments

Comments
 (0)