Flutter Tools MCP Server
FlutterツールMCPサーバー
概要
flutter-tools MCPサーバーは、Flutter SDKと連携するためのツールを提供します。get_diagnosticsとapply_fixes get_diagnosticsつの主要なツールが提供されています。これらのツールは、Dart/Flutterファイルの分析と修正に役立ちます。
Related MCP server: mcp-flutter-senior
ツール
診断情報を取得する
**説明:**ファイルの Flutter/Dart 診断を取得します。
入力スキーマ:
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Path to the Dart/Flutter file"
}
},
"required": ["file"]
}使用例:
{
"name": "get_diagnostics",
"arguments": {
"file": "/path/to/your/file.dart"
}
}修正を適用する
説明: Dart 修正提案をファイルに適用します。
入力スキーマ:
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Path to the Dart/Flutter file"
}
},
"required": ["file"]
}使用例:
{
"name": "apply_fixes",
"arguments": {
"file": "/path/to/your/file.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 設定ファイルに次の構成を追加します。
{
"mcpServers": {
"flutter-tools": {
"command": "node",
"args": ["/path/to/flutter-tools/build/index.js"],
"env": {}
}
}
}/path/to/flutter-tools/build/index.jsを、コンパイルされた JavaScript ファイルへの実際のパスに置き換えます。
使用法
Flutter SDK がインストールされ、PATH で使用可能であることを確認します。
設定されたコマンドを使用して MCP サーバーを起動します。
必要に応じて、
get_diagnosticsおよびapply_fixesツールを使用します。
例
node /path/to/flutter-tools/build/index.jsThis server cannot be deployed
Maintenance
Related MCP Connectors
Create, edit, preview, and build Flutter apps via FlutterGo.AI cloud MCP (OAuth).
Check Dart/Flutter dependencies on pub.dev for updates and manage monitored projects.
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Trigger and inspect Codemagic CI builds, apps and artifacts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides advanced Flutter development tools via Model Context Protocol with features including widget analysis, documentation search, performance optimization, and code generation.18MIT
- FlicenseNot gradedqualityDmaintenanceProvides Flutter best practices, code analysis, and state management recommendations for senior developers.-
- FlicenseBqualityBmaintenanceProvides Flutter and Dart reference data, code generation, live API lookups, and a verified sample corpus for AI coding assistants, enabling efficient Flutter development with accurate guidance and boilerplate generation.14-
- AlicenseNot gradedqualityAmaintenanceExposes 35 stdio JSON-RPC tools that let AI agents snapshot the Flutter Semantics tree, drive gestures, capture screenshots, and observe live app state against running Flutter apps over VM Service.3MIT