Codex Setup
Use this when configuring Codex to talk to the Flutter inspector MCP server.
Server Entry
Add this server definition to your Codex MCP configuration (merge into existing mcpServers object):
{
"mcpServers": {
"flutter-inspector": {
"command": "/ABSOLUTE/PATH/mcp_flutter/mcp_server_dart/build/flutter_inspector_mcp",
"args": [
"--dart-vm-host=localhost",
"--dart-vm-port=8181",
"--resources",
"--images",
"--dynamics"
],
"env": {},
"disabled": false
}
}
}
Validation
After restarting Codex client/session, test:
- "List available tools from flutter-inspector"
- "Get extension RPCs and confirm ext.mcp.toolkit.app_errors/view_details/view_screenshots/inspect_widget_at_point exist"
- "Take a screenshot of my app"
- "Get view details for current layout"
- "Get current app errors"