Skip to content

docs: add Flutter Driver example to MCP server page#13220

Open
Ortes wants to merge 6 commits intoflutter:mainfrom
Ortes:doc/mcp-flutter-driver-example
Open

docs: add Flutter Driver example to MCP server page#13220
Ortes wants to merge 6 commits intoflutter:mainfrom
Ortes:doc/mcp-flutter-driver-example

Conversation

@Ortes
Copy link
Copy Markdown

@Ortes Ortes commented Mar 25, 2026

Summary

  • Adds a third usage example to the MCP server docs page
  • Shows how to connect to a running Flutter app and interact with its UI using Flutter Driver via the MCP server
  • Links to the full setup guide in dart-lang/ai for details

Related

Test plan

  • Verify page builds and renders correctly
  • Verify the :::note directive renders as expected
  • Verify the link to the dart-lang/ai README section works

🤖 Generated with Claude Code

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Mar 25, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Copy Markdown
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, @Ortes! Let us know when you're ready to land.

Comment thread src/content/ai/mcp-server.md Outdated
@sfshaza2
Copy link
Copy Markdown
Contributor

/gcbrun

@flutter-website-bot
Copy link
Copy Markdown
Collaborator

Visit the preview URL for this PR (updated for commit 1a33d89):

https://flutter-docs-prod--pr13220-doc-mcp-flutter-driver-exam-sg841r6i.web.app

Copy link
Copy Markdown
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Any reason we can't move this out of draft and land it?

@Ortes
Copy link
Copy Markdown
Author

Ortes commented May 7, 2026

It's not up-to-date anymore. I will update.

@Ortes Ortes marked this pull request as ready for review May 8, 2026 00:22
@Ortes Ortes requested a review from a team as a code owner May 8, 2026 00:22
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new section to the documentation detailing how to use the Dart and Flutter MCP server to interact with a running Flutter app. The reviewer provided a suggestion to improve formatting consistency by removing spaces around an em dash.

Comment thread src/content/ai/mcp-server.md Outdated
@Ortes Ortes force-pushed the doc/mcp-flutter-driver-example branch from 591e49e to ed51f41 Compare May 8, 2026 00:36
Ortes and others added 6 commits May 7, 2026 20:54
Add a third usage example showing how to connect to a running Flutter
app and interact with its UI using Flutter Driver via the MCP server.
- Remove --print-dtd from the launch command (auto-discovered via DDS in
  Flutter ≥3.27; flag no longer needed)
- Add explicit web note: flutter_driver doesn't compile under dart2js,
  pair with a browser-driving MCP for UI actions
- Trim wording to keep this section setup-oriented; full reference lives
  in dart-lang/ai
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.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Reorder the section so readers see the flag's origin before they hit
it on the command line: gate enableFlutterDriverExtension() in main()
first, launch with --dart-define second, then prompt the assistant.
ENABLE_FLUTTER_DRIVER is a user-defined flag, not a Flutter built-in,
so explaining it after the run command read backwards.
@Ortes Ortes force-pushed the doc/mcp-flutter-driver-example branch from 7c7144b to fd3acb7 Compare May 8, 2026 00:55
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.

3 participants