flutter_peek_mcp library

MCP server that exposes a running Flutter app's console logs and HTTP traffic to AI coding agents through the Dart VM service.

Classes

McpServer
Minimal MCP server: JSON-RPC 2.0 over newline-delimited stdio, tools only.
NoiseFilter
Hides background traffic (analytics, crash reporting, health checks) from HTTP tools unless a tool call passes includeNoise: true.
ToolDef
An MCP tool: its name, its description and input schema for the agent, and the handler that runs it.
VmClient
Connects to a running Flutter app through the Dart VM service and keeps rolling in-memory buffers of its console output and HTTP traffic.

Constants

packageVersion → const String
Keep in sync with version in pubspec.yaml (checked by a test).

Functions

buildTools(VmClient vm, NoiseFilter noise) → List<ToolDef>
All flutter-peek tools, reading from vm and hiding URLs that match noise by default.

Exceptions / Errors

VmConnectionException
The app's VM service can't be found or reached. The message says why and how to fix it.