Skip to main content
Glama

Flutter Tools MCP Server

by dkpoulsen

Servidor MCP de Flutter Tools

Descripción general

El servidor MCP flutter-tools proporciona herramientas para interactuar con el SDK de Flutter. Ofrece dos herramientas principales: get_diagnostics y apply_fixes . Estas herramientas ayudan a analizar y corregir archivos de Dart/Flutter.

Herramientas

obtener_diagnósticos

Descripción: Obtenga diagnósticos de Flutter/Dart para un archivo.

Esquema de entrada:

{ "type": "object", "properties": { "file": { "type": "string", "description": "Path to the Dart/Flutter file" } }, "required": ["file"] }

Ejemplo de uso:

{ "name": "get_diagnostics", "arguments": { "file": "/path/to/your/file.dart" } }

aplicar_correcciones

Descripción: Aplicar sugerencias de corrección de Dart a un archivo.

Esquema de entrada:

{ "type": "object", "properties": { "file": { "type": "string", "description": "Path to the Dart/Flutter file" } }, "required": ["file"] }

Ejemplo de uso:

{ "name": "apply_fixes", "arguments": { "file": "/path/to/your/file.dart" } }

Dependencias

  • @modelcontextprotocol/sdk : ^1.0.0
  • node-pty : ^1.0.0
  • which : ^4.0.0

Dependencias de desarrollo

  • @types/node : ^18.19.0
  • @types/which : ^3.0.3
  • typescript : ^5.3.3

Guiones

  • build : compila el código TypeScript y establece los permisos ejecutables en el archivo JavaScript compilado.
  • prepare : ejecuta el script build .
  • watch : compila el código TypeScript y observa los cambios, recompilándolo automáticamente.

Instalación

Para instalar el servidor MCP, agregue la siguiente configuración a su archivo de configuración de MCP:

{ "mcpServers": { "flutter-tools": { "command": "node", "args": ["/path/to/flutter-tools/build/index.js"], "env": {} } } }

Reemplace /path/to/flutter-tools/build/index.js con la ruta real al archivo JavaScript compilado.

Uso

  1. Asegúrese de que el SDK de Flutter esté instalado y disponible en su RUTA.
  2. Inicie el servidor MCP utilizando el comando configurado.
  3. Utilice las herramientas get_diagnostics y apply_fixes según sea necesario.

Ejemplo

node /path/to/flutter-tools/build/index.js
Install Server
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.

Permite la interacción con el SDK de Flutter al proporcionar herramientas para analizar y aplicar correcciones a los archivos de Dart y Flutter.

  1. Descripción general
    1. Herramientas
      1. obtener_diagnósticos
      2. aplicar_correcciones
    2. Dependencias
      1. Dependencias de desarrollo
        1. Guiones
          1. Instalación
            1. Uso
              1. Ejemplo

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  Enables 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 -
                  9
                  463
                  1
                  TypeScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables interaction with iOS simulators by providing tools to inspect UI elements, control UI interactions, and manage simulators through natural language commands.
                  Last updated -
                  6
                  872
                  829
                  JavaScript
                  MIT License
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables interaction with GitHub repositories through the GitHub API, allowing file operations, repository management, issue tracking, and code search through natural language commands.
                  Last updated -
                  3
                  2
                  TypeScript
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  A
                  license
                  A
                  quality
                  Provides tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations with advanced filtering capabilities.
                  Last updated -
                  6
                  512
                  1
                  TypeScript
                  MIT License

                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