Skip to main content
Glama

Flutter Tools MCP Server

by dkpoulsen

Flutter 工具 MCP 服务器

概述

flutter-tools MCP 服务器提供了与 Flutter SDK 交互的工具。它主要提供两个工具: get_diagnosticsapply_fixes 。这两个工具有助于分析和修复 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_diagnosticsapply_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. 用法
              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
                  307
                  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
                  79
                  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

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/dkpoulsen/flutter-tools'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server