Skip to main content
Glama
lvmp

mcp-flutter-senior

by lvmp
README.md
# MCP Flutter Senior (Go implementation)

A Model Context Protocol (MCP) server designed for Flutter senior developers, providing high-quality resources, code analysis tools, and architectural guidance.

## Features

- **Resources**: In-depth markdown guides on Flutter best practices, architecture patterns, design systems, deployment, and testing.
- **Tools**:
  - `analyze_flutter_code`: Analyzes Dart/Flutter code for anti-patterns and improvement opportunities.
  - `suggest_state_management`: Recommends the best state management solution based on project complexity and team experience.
- **Optimized**: Multi-stage Docker build resulting in a minimal **18.2 MB** image.

## Getting Started

### Prerequisites

- [Docker](https://www.docker.com/) installed on your machine.
- An MCP-compatible client (like Antigravity).

### Running with Docker

1. **Pull the image**:
   ```bash
   docker pull lvmp7/mcp-flutter-senior:latest
   ```

2. **Run the container**:
   The server communicates via `stdio`, so it should be launched by your LLM client.

### Manual Configuration

To use this server in your MCP client (e.g., `mcp_config.json`), add the following entry:

```json
{
  "mcpServers": {
    "flutter-senior": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "lvmp7/mcp-flutter-senior:latest"
      ]
    }
  }
}
```

## Local Development

### Requirements
- Go 1.23 or higher

### Build and Run
1. **Initialize and tidy modules**:
   ```bash
   go mod tidy
   ```

2. **Run locally**:
   ```bash
   go run main.go
   ```

3. **Build image locally**:
   ```bash
   docker build -t lvmp7/mcp-flutter-senior:latest .
   ```

## License
MIT