Flutter Inspector MCP Server
AI 기반 개발을 위한 Flutter Inspector MCP 서버
🔍 Cursor, Claude, Cline, Windsurf, RooCode 또는 MCP 서버를 지원하는 다른 AI 어시스턴트와 같은 AI 코딩 어시스턴트와 Flutter 앱을 연결하는 MCP(Model Context Protocol) 서버
macOS에서 커서를 사용하여 MCP 서버를 설정하는 방법에 대한 간단한 비디오 튜토리얼을 시청하세요 - https://www.youtube.com/watch?v=NBY2p7XIass
[!NOTE] 현재 클라이언트에게 Dart 툴링 개발 도구 작업을 공개하는 새로운 실험적 패키지가 개발 중이므로 앞으로는 이 프로젝트가 그렇게 많이 필요하지 않을 수도 있습니다.
그러므로 현재 내 초점은 다음과 같습니다.
개발에 유용한 도구만 안정화하고 다듬는 방법(플러그 앤 플레이 방식이 더 편리해짐) 에 대한 자세한 내용은 MCP_RPC_DESCRIPTION.md에서 확인하세요.
전달 서버를 사용하지 않기 위한 해결 방법을 찾으세요.
귀하에게 유용할 것으로 바랍니다.
좋은 하루 되세요!
현재 Flutter는 포워딩 서버를 통해 MCP 서버와 함께 작동합니다. 자세한 내용은 아키텍처를 참조하세요.
⚠️ 경고 ⚠️
덤프 RPC 메서드(예: dump_render_tree )는 엄청난 양의 토큰 사용이나 컨텍스트 오버로드를 유발할 수 있습니다. 따라서 기본적으로 비활성화되어 있지만, 환경 변수 DUMPS_SUPPORTED=true 를 통해 활성화할 수 있습니다.
.env.example 에서 환경 변수에 대한 자세한 내용을 확인하세요.
Related MCP server: flutter-dev-mcp
🚀 시작하기
구성 옵션은 CONFIGURATION.md 에서 사용할 수 있습니다.
🎯 AI 에이전트에 사용 가능한 도구
오류 분석
get_app_errors[리소스|도구] - Flutter 앱에서 정확하고 요약된 오류 정보를 검색합니다. 사용법 :오류에 대한 간략한 설명만 사용합니다. 에이전트 컨텍스트 창에 동일한 오류가 너무 많이 표시되는 것을 방지하기 위해 중복 오류를 필터링해야 합니다.
Error Monitor를 사용하여 Dart VM 오류를 캡처합니다. 즉, 먼저 MCP 서버와 포워딩 서버를 시작하고, 앱을 시작하고, DevTools와 확장 프로그램을 연 다음, 앱을 다시 로드하여 오류를 캡처합니다. 모든 오류는 DevTools 확장 프로그램(mcp_bridge)에서 캡처됩니다.
테스트 대상 : ✅ macOS, ✅ iOS 테스트 대상 아님 : 🚧 Android, 🤔 Windows, 🤔 Linux, ❌ 웹 문제 참조
개발 도구
hot_reload[도구] - Flutter 애플리케이션의 핫 리로드를 수행합니다. 테스트 대상 : ✅ macOS, ✅ iOS, ✅ Android 테스트하지 않은 대상 : 🤔 Windows, 🤔 Linux, ❌ 웹 문제 참조screenshot[리소스|도구] - 실행 중인 애플리케이션의 스크린샷을 캡처합니다. 구성 :--images플래그 또는IMAGES_SUPPORTED=true환경 변수로 활성화이미지 크기를 최적화하기 위해 압축을 사용할 수 있습니다.
테스트 대상 : ✅ macOS, ✅ iOS 테스트 대상 아님 : 🚧 Android, 🤔 Windows, 🤔 Linux, ❌ 웹 문제 참조
포트를 지정하지 않으면 모든 도구는 기본적으로 8181 포트를 사용합니다. 특정 포트 번호를 제공하여 이 포트를 재정의할 수 있습니다.
📚 자세한 내용은 MCP_RPC_DESCRIPTION 에서 확인하세요.
🔧 문제 해결
get_app_errors - 오류는 DevTools 확장 프로그램에서 캡처되므로 MCP 서버, 전달 서버 및 DevTools mcp_bridge 확장 프로그램을 시작한 후 Flutter 앱을 다시 시작하거나 다시 로드했는지 확인해야 합니다.
또한 다음 사항을 확인하세요.
전달 서버가 실행 중인지 확인하세요.
브라우저에서 Devtools를 열었습니다.
Flutter 앱 개발 종속성에 MCP 확장 기능을 추가하고 Devtools에서 활성화했습니다.
연결 문제
Flutter 앱이 디버그 모드에서 실행 중인지 확인하세요.
Flutter 앱과 검사기 모두에서 포트 일치를 확인하세요.
다른 프로세스에서 포트를 사용하고 있지 않은지 확인하세요
AI 도구가 Inspector를 감지하지 못함
구성 변경 후 AI 도구를 다시 시작합니다.
구성 JSON 구문을 확인하세요
연결 오류가 있는지 도구 로그를 확인하세요.
🚧 Smithery 통합 🚧 (작업 진행 중)
Flutter Inspector는 Smithery 레지스트리에 등록되어 있어 표준화된 인터페이스를 통해 다른 AI 도구에서 검색하고 사용할 수 있습니다.
통합 아키텍처
지엑스피1
🤝 기여하기
기여를 환영합니다! GitHub 저장소 에 풀 리퀘스트를 제출하거나 문제를 보고해 주세요.
📖 자세히 알아보기
📄 라이센스
MIT - 여러분의 프로젝트에 자유롭게 사용하세요!
플러터와 다트는 Google LLC의 상표입니다.
Available Tools
60 toolsdart_io_get_http_profile_requestC
RPC: Get details of a specific HTTP request from the profile
Inputs: requestId (required), port.
dart_io_get_open_file_by_idC
RPC: Get details of a specific open file by its ID
Inputs: fileId (required), port.
dart_io_get_open_filesC
RPC: Get list of currently open files in the Flutter app
Inputs: port.
dart_io_get_versionC
RPC: Get Flutter version information (ext.dart.io.getVersion)
Inputs: port.
dart_io_http_enable_timeline_loggingB
RPC: Enable or disable HTTP timeline logging. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: enabled (required), port.
dart_io_socket_profiling_enabledB
RPC: Enable or disable socket profiling. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: enabled (required), port.
debug_allow_bannerC
RPC: Toggle the debug banner in the Flutter app
Inputs: enabled (required), port.
debug_disable_clip_layersC
RPC: Toggle disabling of clip layers in the Flutter app
Inputs: enabled (required), port.
debug_disable_opacity_layersB
RPC: Toggle opacity layers debugging (ext.flutter.debugDisableOpacityLayers). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: enabled (required), port.
debug_disable_physical_shape_layersC
RPC: Toggle physical shape layers debugging (ext.flutter.debugDisablePhysicalShapeLayers)
Inputs: enabled (required), port.
debug_dump_focus_treeB
RPC: Dump the focus tree (ext.flutter.debugDumpFocusTree)
Inputs: port.
debug_dump_layer_treeB
RPC: Dump the layer tree (ext.flutter.debugDumpLayerTree). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
debug_dump_render_treeB
RPC: Dump the render tree (ext.flutter.debugDumpRenderTree). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
debug_dump_semantics_treeA
RPC: Dump the semantics tree (ext.flutter.debugDumpSemanticsTreeInTraversalOrder). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
debug_dump_semantics_tree_inverseC
RPC: Dump the semantics tree in inverse hit test order (ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder)
Inputs: port.
debug_paint_baselines_enabledB
RPC: Toggle baseline paint debugging (ext.flutter.debugPaintBaselinesEnabled). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: enabled (required), port.
flutter_core_brightness_overrideC
RPC: Override the brightness for the Flutter app
Inputs: brightness (required), port.
flutter_core_did_send_first_frame_eventC
RPC: Check if the first frame event has been sent
Inputs: port.
flutter_core_did_send_first_frame_rasterized_eventC
RPC: Check if the first frame has been rasterized
Inputs: port.
flutter_core_evictC
RPC: Evict an asset from the Flutter app's cache
Inputs: asset (required), port.
flutter_core_invert_oversized_imagesB
RPC: Toggle inverting of oversized images for debugging
Inputs: enabled (required), port.
flutter_core_platform_overrideC
RPC: Override the platform for the Flutter app
Inputs: platform (required), port.
flutter_core_profile_platform_channelsB
RPC: Enable or disable profiling of platform channels
Inputs: enabled (required), port.
flutter_core_time_dilationB
RPC: Set the time dilation factor for animations in the Flutter app
Inputs: dilation (required), port.
get_active_portsA
Utility: Get list of ports where Flutter/Dart processes are listening. This is a local utility, not a Flutter RPC method.
Inputs: no named parameters.
get_extension_rpcsB
Utility: List all available extension RPCs in the Flutter app. This is a helper tool for discovering available methods.
Inputs: isRawResponse, isolateId, port.
get_supported_protocolsB
Utility: Get supported protocols from a Flutter app. This is a VM service method, not a Flutter RPC. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
get_vm_infoB
Utility: Get VM information from a Flutter app. This is a VM service method, not a Flutter RPC. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
inspector_add_pub_root_directoriesC
RPC: Add additional root directories for pub packages (ext.flutter.inspector.addPubRootDirectories)
Inputs: directories (required), port.
inspector_dispose_all_groupsA
RPC: Dispose all inspector groups to free up memory (ext.flutter.inspector.disposeAllGroups)
Inputs: port.
inspector_dispose_groupB
RPC: Dispose a specific inspector group to free up memory (ext.flutter.inspector.disposeGroup)
Inputs: groupId (required), port.
inspector_dispose_idB
RPC: Dispose a specific widget ID to free up memory (ext.flutter.inspector.disposeId)
Inputs: id (required), port.
inspector_get_children_details_subtreeC
RPC: Get the children details subtree for a widget (ext.flutter.inspector.getChildrenDetailsSubtree)
Inputs: objectId (required), port.
inspector_get_children_summary_treeB
RPC: Get the children summary tree for a widget (ext.flutter.inspector.getChildrenSummaryTree). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: objectId (required), port.
inspector_get_details_subtreeB
RPC: Get the details subtree for a widget. This provides detailed information about the widget and its descendants. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: objectId (required), port.
inspector_get_layout_explorer_nodeB
RPC: Get layout explorer information for a widget (ext.flutter.inspector.getLayoutExplorerNode). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: objectId (required), port.
inspector_get_parent_chainB
RPC: Get the parent chain for a widget (ext.flutter.inspector.getParentChain). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: objectId (required), port.
inspector_get_pub_root_directoriesB
RPC: Get the list of root directories for pub packages (ext.flutter.inspector.getPubRootDirectories)
Inputs: port.
inspector_get_root_widget_summary_treeC
RPC: Get the root widget summary tree (ext.flutter.inspector.getRootWidgetSummaryTree)
Inputs: port.
inspector_get_root_widget_summary_tree_with_previewsC
RPC: Get the root widget summary tree with previews from the Flutter app. This provides a hierarchical view of the widget tree with preview information.
Inputs: port.
inspector_get_selected_summary_widgetB
RPC: Get summary information about the currently selected widget in the Flutter app. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
inspector_get_selected_widgetB
RPC: Get information about the currently selected widget in the Flutter app. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
inspector_is_widget_creation_trackedB
RPC: Check if widget creation tracking is enabled in the Flutter app.
Inputs: port.
inspector_is_widget_tree_readyA
RPC: Check if the widget tree is ready for inspection (ext.flutter.inspector.isWidgetTreeReady)
Inputs: port.
inspector_remove_pub_root_directoriesB
RPC: Remove root directories from pub packages (ext.flutter.inspector.removePubRootDirectories)
Inputs: directories (required), port.
inspector_screenshotA
RPC: Take a screenshot of the Flutter app (ext.flutter.inspector.screenshot). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: port.
inspector_set_pub_root_directoriesC
RPC: Set the root directories for pub packages (ext.flutter.inspector.setPubRootDirectories)
Inputs: directories (required), port.
inspector_set_selection_by_idC
RPC: Set the selected widget by ID (ext.flutter.inspector.setSelectionById). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: selectionId (required), port.
inspector_showC
RPC: Show specific widget details in the Flutter app inspector.
Inputs: options (required), port.
inspector_structured_errorsB
RPC: Enable or disable structured error reporting in the Flutter app.
Inputs: enabled (required), port.
inspector_track_rebuild_dirty_widgetsB
RPC: Track widget rebuilds to identify performance issues (ext.flutter.inspector.trackRebuildDirtyWidgets). Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: enabled (required), port.
inspector_track_repaint_widgetsB
RPC: Track widget repaints to identify rendering performance issues (ext.flutter.inspector.trackRepaintWidgets)
Inputs: enabled (required), port.
inspector_widget_location_id_mapB
RPC: Get a mapping of widget IDs to their source code locations (ext.flutter.inspector.widgetLocationIdMap)
Inputs: port.
layout_set_flex_factorC
RPC: Set the flex factor of a flex child widget (ext.flutter.inspector.setFlexFactor)
Inputs: factor (required), objectId (required), port.
layout_set_flex_fitB
RPC: Set the flex fit property of a flex child widget (ext.flutter.inspector.setFlexFit)
Inputs: fit (required), objectId (required), port.
layout_set_flex_propertiesC
RPC: Set multiple flex properties of a flex child widget (ext.flutter.inspector.setFlexProperties)
Inputs: objectId (required), properties (required), port.
performance_profile_render_object_layoutsC
RPC: Enable or disable profiling of render object layout operations (ext.flutter.profileRenderObjectLayouts)
Inputs: enabled (required), port.
performance_profile_render_object_paintsA
RPC: Enable or disable profiling of render object paint operations (ext.flutter.profileRenderObjectPaints)
Inputs: enabled (required), port.
repaint_rainbowC
RPC: Toggle repaint rainbow debugging (ext.flutter.repaintRainbow)
Inputs: enabled (required), port.
stream_listenA
RPC: Subscribe to a Flutter event stream. This is a VM service method for event monitoring. Connects to the default Flutter debug port (8181) unless specified otherwise.
Inputs: streamId (required), port.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 60 tools
Many tools are distinct, but there are confusingly similar pairs such as inspector_get_root_widget_summary_tree versus inspector_get_root_widget_summary_tree_with_previews, and multiple near-identical dump/toggle variants. With 60 tools, users need deep domain knowledge to pick the right one.
Naming mostly follows snake_case with clear prefixes (debug_, inspector_, dart_io_, flutter_core_). Minor inconsistencies exist (e.g., flutter_core_invert_oversized_images vs debug_paint_baselines_enabled), but overall patterns are recognizable.
60 tools is far beyond a coherent toolkit size for an inspector surface. Many are fine-grained toggles and getters that could be consolidated, making the set unwieldy.
Covers the major Flutter inspector workflows: tree dumps, selection, layout info, debug toggles, pub roots, and HTTP profiling. Some areas like hot reload/restart or broader VM service operations are absent, but within the inspector scope it is fairly complete.
Maintenance
Related MCP Connectors
MCP server to assist with JxBrowser development.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseCqualityDmaintenanceA distributable Model Context Protocol (MCP) server that exposes Dart SDK commands for AI-powered development. This server bridges the gap between AI coding assistants and Dart/Flutter development workflows by implementing the Model Context Protocol (MCP).106MIT
- AlicenseAqualityDmaintenanceAn MCP server that wraps Flutter CLI tools into structured, agent-friendly tools for AI coding agents, with features like two-phase test results, output capping, and managed app lifecycle.1515 npm4MIT
- AlicenseBqualityDmaintenanceAn MCP server that lets AI agents see, tap, type, scroll, and assert inside live Flutter apps — no pre-written tests required.28MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for FlutterFlow that uses a command-palette model to manage projects, inspect UI, and apply safe edits via transactional ChangeSets.10MIT