Skip to content

docs(flutter): document Dart MCP reconnects after a rebuild - #393

Merged
ElbertePlinio merged 4 commits into
mainfrom
docs/360-dart-mcp-rebuild
Oct 28, 2026
Merged

ElbertePlinio merged 4 commits into
mainfrom
docs/360-dart-mcp-rebuild

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Users reported that the Dart MCP server loses its connection when a Flutter app rebuilds, and that it connects to one DTD URI per session. The Flutter skill did not say what to do then.

A reproduction in a Pickforge session shows that hot reload and hot restart keep the connection. A full rebuild needs a new connect call. A killed flutter run leaves the server stuck on the old app. The Flutter skill now documents these recovery steps and the Pickforge fallback when the server is not connected. It also starts Flutter only after the session environment loads.

Proof: an MCP client drove dart mcp-server over stdio against an app in an isolated desktop session through four runs; cargo test -p pickforge-cli and the live Flutter test pass.

Sol review: round 1 found that a failed desktop env still started Flutter on the host display (blocker), round 2 approved.

Closes #360

Requirement How verified Scenario and edge cases Result Evidence
Reproduction of hot restart and full rebuild in a Pickforge session Node MCP client over stdio; minimal Flutter Linux app in a lab desktop session; Flutter 3.41.6, Dart 3.11.4, server 0.1.2 R and the hot_restart tool; q then a new flutter run; flutter run killed with the app left running Hot reload and restart keep the connection; after q, tools fail with "not connected" and a new connect works; after a kill, the server reads the old app and a new connect fails with "already connected" ~/.pickforge/investigations/360/run1 to run4, sdk-versions.txt
The Flutter skill documents recovery Skill diff; cargo test -p pickforge-cli; PICKFORGE_LIVE_FLUTTER=1 cargo test -p pickforge-cli --test live_flutter Installed skill content New "Dart MCP connection" section; all suites pass CI
The skill keeps the adb and screenshot fallback Skill text Server not connected Names desktop screenshot, android screenshot, android ui-tree, android logcat and android adb, and says to record that the runtime was unavailable Skill diff
No new Flutter server Diff Only SKILL.md and the release note change Diff
Upstream issue if a bug is confirmed Reproduction A limit, not a crash: one server cannot replace a live DTD connection; the upstream issue is drafted and waits to be filed, tracked in #391 ~/.pickforge/investigations/360/upstream-issue-draft.md
Session environment recipe stops on failure Stub pickforge-lab and flutter in sh and bash desktop env fails, or succeeds Flutter runs only when the recipe loads; exit status 3 on failure Stub check in this PR's review

Follow-ups: #382 (launch_app and session isolation), #383 (repeat on a newer Flutter), #391 (file the upstream limit), #379 (same eval recipe in README and INSTALL).

The release notes also drop the Known limits line for the Chrome flag bar, because #348 fixed it in #392.

Hot reload and hot restart keep the DTD connection. A full rebuild needs
a new connect call with the new URI. A killed flutter run can leave the
server attached to the old app. The skill now names each recovery and
the Pickforge screenshot and adb fallback.

Refs #360
…uild

# Conflicts:
#	docs/releases/UNRELEASED.md
@ElbertePlinio
ElbertePlinio merged commit ddec52a into main Oct 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flutter: check dart mcp-server after an app rebuild

1 participant