Flutter Tools MCP Server

by dkpoulsen

Integrations

  • Provides diagnostic capabilities and fix suggestions for Dart files as part of the Flutter SDK integration

  • Allows for analyzing and fixing Dart/Flutter files through diagnostic tools and applying fixes

FlutterツールMCPサーバー

概要

flutter-tools MCPサーバーは、Flutter SDKと連携するためのツールを提供します。get_diagnosticsとapply_fixes get_diagnosticsつの主要なツールが提供されています。これらのツールは、Dart/Flutterファイルの分析と修正に役立ちます。

ツール

診断情報を取得する

**説明:**ファイルの 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.0
  • node-pty : ^1.0.0
  • which :^4.0.0

開発依存関係

  • @types/node : ^18.19.0
  • @types/which : ^3.0.3
  • typescript :^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 ファイルへの実際のパスに置き換えます。

使用法

  1. Flutter SDK がインストールされ、PATH で使用可能であることを確認します。
  2. 設定されたコマンドを使用して MCP サーバーを起動します。
  3. 必要に応じて、 get_diagnosticsおよびapply_fixesツールを使用します。

node /path/to/flutter-tools/build/index.js

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Dart および Flutter ファイルを分析して修正を適用するためのツールを提供することで、Flutter SDK とのやり取りを可能にします。

  1. 概要
    1. ツール
      1. 診断情報を取得する
      2. 修正を適用する
    2. 依存関係
      1. 開発依存関係
        1. スクリプト
          1. インストール
            1. 使用法

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A Dart-based MCP server implementation that enables AI-assisted task management, document handling, and workspace organization through standardized tools and seamless Dart integration.
                  Last updated -
                  10
                  599
                  2
                  JavaScript
                  MIT License
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A 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).
                  Last updated -
                  10
                  11
                  2
                  TypeScript
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that connects Flutter apps with AI coding assistants like Cursor, Claude, and Cline, enabling AI-powered analysis of widget trees, navigation, and layout issues.
                  Last updated -
                  62
                  45
                  JavaScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that enables AI assistants to interact with Flutterwave payment services, providing tools for transaction management, payment link generation, and automated customer support.
                  Last updated -
                  TypeScript

                View all related MCP servers

                ID: 4v3bx1viov