Skip to main content
Glama
flutter-devtools-mcp

flutter-devtools-mcp

by draganbajic

connect

Attach to a running Flutter app using its VM Service URI to enable inspection and debugging; this link is required before using any other tool.

Instructions

Connect to a running Flutter app via its VM Service URI. The URI is printed when you run flutter run (e.g., http://127.0.0.1:50000/xxxxx=/). You must connect before using any other tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vmServiceUri": "<vmServiceUri>"
    },
    "name": "connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmServiceUriYesThe VM Service URI of the running Flutter app (e.g., http://127.0.0.1:50000/AbCdEf=/)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It usefully discloses the prerequisite ordering (connect first) and a stale-URI pitfall is implied by the example format, but nothing is said about what happens if the URI is invalid or the app has exited, whether an existing connection is replaced, or whether the connection persists across calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then the parameter source, then the ordering constraint. No filler and nothing repeated from the schema verbatim beyond the necessary example.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter session-bootstrap tool with no output schema and no annotations, this covers what an agent needs to invoke it correctly. The remaining gaps — return value and recovery when the URI is invalid or the app has stopped — are small but real for an entry-point tool whose failure blocks every other call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% — the single parameter already documents itself and supplies an example URI. The description adds the practical provenance detail that the value is printed by `flutter run`, which the schema does not say, so it contributes modestly beyond the structured field but not much beyond the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — connect to a running Flutter app over its VM Service URI — and names the transport mechanism explicitly. The clause 'You must connect before using any other tool' also positions it against the sibling set (disconnect, hot_reload, get_widget_tree, etc.), so an agent can tell this is the session-establishing tool without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use guidance: this must be called before any other tool, and it tells the agent where the required URI comes from (`flutter run` output). It stops short of naming the alternative path — the sibling discover_apps presumably surfaces running apps/URIs — so the agent has no guidance on which route to take when the app was not launched from the current terminal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.