
I built an Package that works as MCP server that lets AI coding agents inspect and interact with a running Flutter app
I've been experimenting with ways to make AI coding agents more useful when working on Flutter apps, and I built an open-source tool for it.
The idea is simple: instead of asking an AI agent to guess what's happening inside a running app, let it connect to the app's Dart VM Service and inspect the live runtime.
With flutter_ai_whisper, an MCP server, an agent can:
- 🔍 Discover and connect to a running Flutter debug app
- 🧠 Inspect live state holders, including Bloc/Cubit, GetX, Riverpod, and plain Dart objects
- ✏️ Evaluate Dart expressions to change runtime state
- 🧭 Navigate to existing named routes
- 🛠️ Work without adding a Flutter dependency or modifying the app just to expose test hooks
For example, you can start your app with flutter run and ask your AI agent:
>Connect to the running Flutter app. Read the counter, set it to 42, and tell me what the screen shows.
The goal is to make debugging and exploring existing Flutter apps more interactive for AI coding agents.
Tech details:
- Uses MCP over stdio
- Connects through the Dart VM Service
- Supports debug-mode Flutter apps, including Flutter Web with some capability limitations
- MIT licensed and open source
There are limitations: it requires a debug session, and runtime evaluation executes Dart code with the app's privileges. It should only be used with apps you control, on localhost—not production apps or exposed VM Service ports.
🔗 GitHub: https://github.com/RajKavadia/flutter_ai_whisper
🎬 The repository includes a demo video and setup instructions.
I'm interested in feedback from other Flutter developers, especially:
- What would you want an AI agent to inspect or control in a running Flutter app?
- Would you find runtime state inspection useful in your current AI-assisted workflow?
- What capabilities or safety controls would you want before using something like this regularly?
I'd appreciate constructive feedback, ideas, and contributions!