flutter-tools
4
The Flutter Tools MCP Server offers tools for interacting with the Flutter SDK, including diagnostics and fix applications for Dart/Flutter files. It supports automated scripts and TypeScript compilation for seamless operations.
Overview
The flutter-tools
MCP server provides tools for interacting with the Flutter SDK. It offers tools like get_diagnostics
and apply_fixes
for analyzing and fixing Dart/Flutter files.
Tools
- get_diagnostics: Get Flutter/Dart diagnostics for a file.
- apply_fixes: Apply Dart fix suggestions to a file.
Dependencies
@modelcontextprotocol/sdk
: ^1.0.0node-pty
: ^1.0.0which
: ^4.0.0
Dev Dependencies
@types/node
: ^18.19.0@types/which
: ^3.0.3typescript
: ^5.3.3
Scripts
build
: Compiles the TypeScript code and sets the executable permissions on the compiled JavaScript file.prepare
: Runs thebuild
script.watch
: Compiles the TypeScript code and watches for changes, recompiling automatically.
Installation
To install the MCP server, add the provided configuration to your MCP settings file and replace the path with the actual path to the compiled JavaScript file.
Usage
- Ensure the Flutter SDK is installed and in your PATH.
- Start the MCP server using the configured command.
- Use the
get_diagnostics
andapply_fixes
tools.