Flutter Deprecations MCP Server

Flutter Deprecations MCP Server

mcp-flutter-deprecations-server•byjger

An MCP server that tracks Flutter API deprecations, analyzes Flutter code for deprecated APIs, suggests replacements, and reports Flutter version availability.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Analyzes supplied Flutter code snippets for deprecated APIs and proposes modern replacements.
  • •Lists all known Flutter deprecations from a local cache with replacement and version information.
  • •Tracks deprecations by scanning Flutter's GitHub source code for @Deprecated annotations and caching them for 24 hours.
  • •Checks the latest stable Flutter version and its availability across Flutter CLI, FVM, and Docker images.

BEST FOR

  • •Finding modern replacements for deprecated Flutter widgets and APIs such as RaisedButton or Color.withOpacity.
  • •Reviewing Flutter code snippets for deprecated API usage before migrating to newer Flutter versions.
  • •Checking the latest Flutter version and whether it is available through FVM or Docker.

ABOUT MCP-FLUTTER-DEPRECATIONS-SERVER

Flutter Deprecations MCP Server is cataloged as an MCP server attributed to jger. An MCP server that tracks Flutter API deprecations, analyzes Flutter code for deprecated APIs, suggests replacements, and reports Flutter version availability. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Flutter Deprecations MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server keep its deprecation data current?

It scans Flutter's GitHub source code for @Deprecated annotations and stores results in a local cache that is refreshed automatically every 24 hours when tools are used.

Where is the deprecation cache stored?

Deprecations are cached in a flutter_deprecations.json file under the user's .flutter-deprecations directory.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ed97112cbc88 · 采集于 2026-11-13 12:50:33 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Flutter Deprecations MCP Server

This MCP server tracks Flutter API deprecations and provides tools to check code for deprecated APIs and suggest replacements.

Project Structure

flutter-deprecations-server/
├── cmd/
│   └── server/          # Main application entry point
│       └── main.go
├── internal/            # Private application code
│   ├── handlers/        # MCP tool handlers
│   │   ├── mcp_handlers.go
│   │   ├── mcp_handlers_test.go
│   │   └── testdata/
│   ├── models/          # Data structures
│   │   └── flutter.go
│   └── services/        # Business logic
│       ├── cache.go
│       ├── cache_test.go
│       ├── deprecations.go
│       ├── deprecations_test.go
│       ├── flutter_api.go
│       ├── flutter_api_test.go
│       ├── flutter_version.go
│       ├── interfaces.go
│       ├── version_info.go
│       ├── version_info_test.go
│       └── testdata/
├── pkg/                 # Public libraries
│   └── config/          # Configuration constants
│       └── config.go
├── bin/                 # Compiled binaries
├── Makefile            # Build automation
├── go.mod              # Go module definition
├── go.sum              # Dependency checksums
└── README.md

Features

  • Source-based deprecation tracking: Directly scans Flutter's GitHub source code for @Deprecated annotations
  • Local caching: Stores deprecations locally with 24-hour cache duration
  • Code analysis: Analyzes Flutter code snippets for deprecated APIs
  • Replacement suggestions: Provides modern alternatives for deprecated APIs
  • Comprehensive scanning: Scans key Flutter directories (widgets, material, cupertino, services, etc.)
  • Version checking: Gets latest Flutter version using Flutter CLI (most reliable) with GitHub API fallback
  • Multi-platform support: Checks FVM and Docker image availability
  • Command-line cache management: Manual cache updates and clearing with progress reporting
  • Short command options: Support for both long and short command flags
  • Rate limit handling: Graceful handling of GitHub API rate limits with helpful error messages
  • Verbose logging: Detailed logging with -vvv flag for troubleshooting

MCP Tools

1. check_flutter_deprecations

Analyzes provided Flutter code for deprecated APIs and suggests replacements.

Parameters:

  • code (string): Flutter code snippet to analyze

Example:

Color.red.withOpacity(0.5)  // Will suggest Color.red.withValues(alpha: 0.5)

2. list_flutter_deprecations

Lists all known Flutter deprecations from the cache.

Parameters: None

Returns: Complete list of deprecations with replacements and version information.

3. check_flutter_version_info

Gets the latest stable Flutter version and checks availability across different tools and platforms.

Parameters: None

Returns:

  • Latest stable Flutter version (using Flutter CLI when available, GitHub API fallback)
  • Flutter CLI installation status and channel information
  • FVM installation status and version availability
  • Docker image availability for instrumentisto/flutter and ghcr.io/cirruslabs/flutter
  • Usage examples and installation commands

Known Deprecations

The server includes built-in patterns for common deprecations:

  • Color.withOpacity() → Color.withValues(alpha:)
  • RaisedButton → ElevatedButton
  • FlatButton → TextButton
  • OutlineButton → OutlinedButton
  • Scaffold.of(context).showSnackBar → ScaffoldMessenger.of(context).showSnackBar

Installation

# Install dependencies
make deps

# Build the server
make build

# Run the server
make run

# Build for multiple platforms
make build-all

Manual Build

# Install dependencies
go mod tidy

# Build the server
go build -o bin/flutter-deprecations-server ./cmd/server

# Run the server
./bin/flutter-deprecations-server

# Update deprecations cache manually
./bin/flutter-deprecations-server --update

# Update with verbose logging  
./bin/flutter-deprecations-server --update -vvv

# Clear deprecations cache
./bin/flutter-deprecations-server --clear-cache

# Show current cache contents
./bin/flutter-deprecations-server --show-cache

# Show help information
./bin/flutter-deprecations-server --help

Development

# Format code
make fmt

# Vet code
make vet

# Run tests
make test

# Development build and run
make dev

Configuration with AI Assistants

Add to your MCP configuration (e.g., mcp.json):

{
  "mcpServers": {
    "flutter-deprecations": {
      "command": "/path/to/flutter-deprecations-server/bin/flutter-deprecations-server",
      "args": [],
      "env": {}
    }
  }
}

Version Detection

The server uses a reliable multi-tier approach to detect the latest Flutter version:

  1. Primary: Flutter CLI (flutter --version) - Most accurate, matches developer environment
  2. Official API: Google Storage Flutter releases API (https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json) - Faster and more reliable than GitHub
  3. Fallback: GitHub API releases - Used when both Flutter CLI and official API are unavailable
  4. Channel Detection: Identifies stable/beta/dev channels from official sources
  5. Docker Registry Support: Checks both Docker Hub and GitHub Container Registry

Cache Location

Deprecations are cached at: ~/.flutter-deprecations/flutter_deprecations.json

The cache is automatically updated every 24 hours when tools are used.

Usage Examples

Ask your AI assistant:

  • "Check this Flutter code for deprecations: Color.red.withOpacity(0.5)"
  • "List all Flutter deprecations"
  • "What should I use instead of RaisedButton?"
  • "What's the latest Flutter version and is it available in FVM and Docker?"
  • "Check Flutter version info"

Command Line Usage

The server supports several command-line options for cache management:

# Show help and available options
./bin/flutter-deprecations-server --help
./bin/flutter-deprecations-server -h        # Short version

# Update deprecations cache with progress reporting
./bin/flutter-deprecations-server --update
./bin/flutter-deprecations-server -u        # Short version

# Update with verbose logging for troubleshooting
./bin/flutter-deprecations-server --update -vvv
./bin/flutter-deprecations-server -u -vvv   # Short version

# Clear deprecations cache
./bin/flutter-deprecations-server --clear-cache
./bin/flutter-deprecations-server -cc       # Short version

# Show current cache contents
./bin/flutter-deprecations-server --show-cache
./bin/flutter-deprecations-server -sc       # Short version

# Start the MCP server (default behavior)
./bin/flutter-deprecations-server

Available Options

  • --help, -h: Show help information with usage examples
  • --update, -u: Update the Flutter deprecations cache and exit
  • --clear-cache, -cc: Clear the Flutter deprecations cache and exit
  • --show-cache, -sc: Display the current Flutter deprecations cache and exit
  • --vvv: Enable verbose logging for detailed troubleshooting

Architecture

The project follows Go best practices with a clean architecture:

  • cmd/: Application entry points
  • internal/: Private application code (cannot be imported by other projects)
  • pkg/: Public libraries that can be imported
  • Makefile: Build automation and common tasks

Services Layer

  • CacheService: Handles local file caching with clear functionality
  • FlutterAPIService: Manages GitHub API interactions with rate limit handling, source code scanning, and Docker registry checks
  • FlutterVersionService: Gets Flutter version directly from Flutter CLI
  • DeprecationService: Analyzes and manages deprecation data from Flutter source code
  • VersionInfoService: Provides comprehensive version and availability information

Handlers Layer

  • MCPHandlers: Implements MCP tool interfaces and coordinates service calls

Testing

  • Comprehensive test suite: Unit tests for all services and handlers
  • Mock services: Test infrastructure with dependency injection
  • Test coverage: Run make test-coverage to generate coverage reports

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Flutter Deprecations MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-flutter-deprecations-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools