Skip to content

Commit 7b6f783

Browse files
gspencergoogCommit Queue
authored andcommitted
[beta] Dart MCP server updates
Issue description: Without this change, the dart MCP command launch_app will not work for the `chrome` device target because it won't find any DTD URI. What is the fix: This starts using the `--machine` along with `--print-dtd` arguments to the `flutter run` command, now that it prints the DTD URI in machine mode. Why cherry-pick: This will enable Flutter developers to develop web apps using the MCP server without hanging. Risk: Low, this only affects the Dart MCP server's `launch_app` command so the radius is small, and the likely worst thing that could happen is that it would stop working for other devices as well. See dart-lang/ai#301 and flutter/flutter#176655 for more information. Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/456480 Bug: dart-lang/ai#302 Change-Id: Ide1ea8d447de43a0a48fae05d40f9051457eaa2c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/456482 Commit-Queue: Alexander Thomas <[email protected]> Reviewed-by: Ivan Inozemtsev <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
1 parent b9a48cb commit 7b6f783

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,24 @@ instead.
123123
Dart SDK for ia32 anymore (support to execute the `dartvm` for ia32
124124
architecture is retained).
125125

126+
#### Dart MCP Server
127+
128+
- The Dart MCP server now has additional tools:
129+
130+
This release introduces a suite of new tools for interacting with Flutter
131+
applications, including support for flutter_driver commands like screenshot,
132+
as well as tools for `list_devices`, `launch_app`, `get_app_logs`,
133+
`list_running_apps` and performing a `hot_restart`. The `pub` MCP tool has
134+
been enhanced with support for the `pub outdated` command, and both `pub add`
135+
and `pub remove` now accept multiple packages.
136+
137+
- And some bug fixes:
138+
139+
Key fixes include providing the full widget tree instead of a summary for
140+
better widget discovery and improved error reporting for tools that handle
141+
multiple paths. Additionally, this version adds more detailed logging for failed
142+
app launches and fixes a bug in hot_reload.
143+
126144
### Libraries
127145

128146
#### `dart:async`

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ vars = {
131131
### /third_party/pkg dependencies
132132
# 'tools/rev_sdk_deps.dart' will rev pkg dependencies to their latest; put an
133133
# EOL comment after a dependency to instead pin at the current revision.
134-
"ai_rev": "59db320ee39a1ae5f6e2830be851e52bb7263ce1",
134+
"ai_rev": "0a85ddf4f75cee6e3abe07cecdffae69bbdbc793",
135135
"core_rev": "5c3e2c38df268be2347f3aad30ced0147dd012bb", # b/444274553
136136
"dartdoc_rev": "ec2a4feee51961e9fbdd2bd94060cc8fc994c47e",
137137
"ecosystem_rev": "96ee86147a5f4c70aed64262e1521b745936cdb1",

0 commit comments

Comments
 (0)