FlutterツールMCPサーバー
概要
flutter-tools
MCPサーバーは、Flutter SDKと連携するためのツールを提供します。get_diagnosticsとapply_fixes
get_diagnostics
つの主要なツールが提供されています。これらのツールは、Dart/Flutterファイルの分析と修正に役立ちます。
ツール
診断情報を取得する
**説明:**ファイルの Flutter/Dart 診断を取得します。
入力スキーマ:
使用例:
修正を適用する
説明: Dart 修正提案をファイルに適用します。
入力スキーマ:
使用例:
依存関係
@modelcontextprotocol/sdk
: ^1.0.0node-pty
: ^1.0.0which
:^4.0.0
開発依存関係
@types/node
: ^18.19.0@types/which
: ^3.0.3typescript
:^5.3.3
スクリプト
build
: TypeScript コードをコンパイルし、コンパイルされた JavaScript ファイルに実行権限を設定します。prepare
:build
スクリプトを実行します。watch
: TypeScript コードをコンパイルし、変更を監視して自動的に再コンパイルします。
インストール
MCP サーバーをインストールするには、MCP 設定ファイルに次の構成を追加します。
/path/to/flutter-tools/build/index.js
を、コンパイルされた JavaScript ファイルへの実際のパスに置き換えます。
使用法
- Flutter SDK がインストールされ、PATH で使用可能であることを確認します。
- 設定されたコマンドを使用して MCP サーバーを起動します。
- 必要に応じて、
get_diagnostics
およびapply_fixes
ツールを使用します。
例
local-only server
The server can only run on the client's local machine because it depends on local resources.
Dart および Flutter ファイルを分析して修正を適用するためのツールを提供することで、Flutter SDK とのやり取りを可能にします。
Related Resources
Related MCP Servers
- -securityFlicense-qualityEnables interaction with GitHub through the GitHub API, supporting file operations, repository management, advanced search, and issue tracking with comprehensive error handling and automatic branch creation.Last updated -94631TypeScript
- AsecurityAlicenseAqualityEnables interaction with iOS simulators by providing tools to inspect UI elements, control UI interactions, and manage simulators through natural language commands.Last updated -6872829JavaScriptMIT License
- -securityAlicense-qualityEnables interaction with GitHub repositories through the GitHub API, allowing file operations, repository management, issue tracking, and code search through natural language commands.Last updated -32TypeScriptMIT License
- AsecurityAlicenseAqualityProvides tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations with advanced filtering capabilities.Last updated -65121TypeScriptMIT License