DF

dhruvanbhalara/flutter_agent_lens

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

48 stars 4 forks 품질 73 트렌드 33MIT

Agent-first Model Context Protocol (MCP) 서버에서 디버그, 프로파일, 그리고 실행 플래터 앱을 최적화합니다.

개요

A Model Context Protocol (MCP) 서버는 Flutter 애플리케이션을 실행하기 위해 AI 조수를 연결합니다. WebSockets를 통해 Dart VM Service와 통신하여 애플리케이션 상태, 성능 데이터, 레이아웃 제약 및 콘솔 로그에 AI 도구를 직접 액세스를 제공합니다. AI 조수 (클래드 또는 Copilot와 같은)는, 단면도를 검열하고, 벌레 또는 단면도 형태에서 달리는 어떤 플러터 신청 벌레를 벌레잡기 수 있습니다. 이 서버를 사용할 수 있습니다: - 트랙 위젯은 주파수를 재건. - 병목과 프레임 jank 렌더링 진단. - 분석 CPU 사용 및 실행 핫스팟. - 감사 메모리 사용 및 메모리 누출을 일으키는 유지 경로 찾기. - 캡처 콘솔, stdout, stderr 및 로깅 스트림. - 무거운 패키지와 자산을 찾을 수있는 로컬 빌드 크기를 읽으십시오. - App Links 및 Universal Links 구성을 검증합니다. - 구동 스크롤 동작 및 트리거 핫 리로드. flutter-agent-lens 바이너리를 등록하기 위해 전 세계적으로 패키지를 활성화하십시오. 글로벌 pub 캐시 빈 디렉토리가 시스템 PATH에 있는지 확인하십시오.

개요(AI 번역)

A Model Context Protocol (MCP) 서버는 Flutter 애플리케이션을 실행하기 위해 AI 조수를 연결합니다. WebSockets를 통해 Dart VM Service와 통신하여 애플리케이션 상태, 성능 데이터, 레이아웃 제약 및 콘솔 로그에 AI 도구를 직접 액세스를 제공합니다.


특징

AI 조수 (클래드 또는 Copilot와 같은)는, 단면도를 검열하고, 벌레 또는 단면도 형태에서 달리는 어떤 플러터 신청 벌레를 벌레잡기 수 있습니다. 이 서버에 사용할 수 있습니다:

  • 트랙 위젯 rebuild 주파수.
  • 병목과 프레임 jank 렌더링 진단.
  • 분석 CPU 사용 및 실행 핫스팟.
  • 감사 메모리 사용 및 메모리 누출을 일으키는 유지 경로 찾기.
  • 캡처 콘솔, stdout, stderr 및 로깅 스트림.
  • 무거운 패키지와 자산을 찾을 수있는 로컬 빌드 크기를 읽으십시오.
  • App Links 및 Universal Links 구성을 검증합니다.
  • Resolve package: URIs to local source files for Accura 항법.
  • 디스커버리 및 트리거 등록 서비스 확장 RPC.
  • 구동 스크롤 동작 및 트리거 핫 리로드.

설치

##1. CLI 설치 글로벌 패키지를 활성화 flutter-agent-lens 바이너리를 등록:

  • 글로벌 pub 캐시 빈 디렉토리가 시스템 PATH에 있는지 확인하십시오. *

# # # # 2.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Flutter Agent Lens MCP Server

A Model Context Protocol (MCP) server that connects AI assistants to running Flutter applications. It communicates with the Dart VM Service over WebSockets, giving AI tools direct access to application state, performance data, layout constraints, and console logs.


Features

AI assistants (such as Claude or Copilot) can inspect, profile, and debug any Flutter application running in debug or profile mode. You can use this server to:

  • Track widget rebuild frequencies.
  • Diagnose rendering bottlenecks and frame jank.
  • Analyze CPU usage and execution hotspots.
  • Audit memory usage and find retaining paths that cause memory leaks.
  • Capture console, stdout, stderr, and logging streams.
  • Read local build sizes to locate heavy packages and assets.
  • Validate App Links and Universal Links configurations.
  • Resolve package: URIs to local source files for precise navigation.
  • Discover and trigger registered service extension RPCs.
  • Drive scroll behaviors and trigger hot reloads.

Setup

1. Install the CLI

Activate the package globally to register the flutter-agent-lens binary:

dart pub global activate flutter_agent_lens

Make sure your global pub cache bin directory is in your system PATH.

2. Configure the MCP Client

Claude Desktop

Add this to your configuration file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "flutter_agent_lens": {
      "command": "flutter-agent-lens"
    }
  }
}

Cursor

  1. Go to Settings > Features > MCP.
  2. Click + Add New MCP Server and set:
    • Name: flutter_agent_lens
    • Type: command
    • Command: flutter-agent-lens

Tool Catalog

This server groups functions into action-based tools to keep the schema footprint small.

Connection & Setup (Pre-connection / Startup)

Tool Action Option Description
connection connect``connect_dtd``disconnect Connect to the VM Service, Dart Tooling Daemon (DTD), or disconnect.
discover_apps N/A Find running Flutter apps on this machine.
diagnose_project bundle_size``deep_links Run local build size analysis or check platform deep links.
set_response_format N/A Choose output format (markdown or json).

Connected Tools (Requires Active Connection)

Category Tool Actions / Subcommands Description
App Info get_app_info N/A Get VM version details, isolates, and service extensions.
DTD Integration get_active_location N/A Find active editor path and cursor line (requires DTD).
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "flutter_agent_lens": { "command": "flutter-agent-lens" } } }