Skip to content

Apps are registered to DTD without a name, making it hard for agents to disambiguate #184251

Description

@jakemac53

Use case

I am working on improving the automatic app connection flows for agents via the Dart MCP Server.

The ultimate goal is that agents can connect to the most relevant running flutter app on the developers machine.

We already have automatic discovery of applications via DTD PID files, but when we list the connected applications for those DTD instances, none of them have a specified name, only a URI.

Proposal

See https://pub.dev/documentation/dtd/latest/dtd/ConnectedAppsExtension/registerVmService.html for the API which is used to register these things. We should provide as much information as possible in the name field here, such as the application type (flutter), path to the app that was launched, and device type. Anything that might be useful in understanding what the app actually is.

There should already be an existing call to this API somewhere.

cc @bkonyi @jwren

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions