Flutter CLI - Model Context Protocol Server

by manojkulkarni30

2 180 downloads Not rated yet

About

Sample fun project to create flutter project using Flutter CLI MCP (Model Context Protocol) Server

Explore

- Exposes tools to create Flutter projects.
- Supports creating projects for all platforms.
- Supports creating projects for specified platforms only.

- .NET SDK 9.0 or later
- Flutter SDK

- Clone this repository
- Open the project in VS Code
- Build the project using dotnet build command
- Configure VS Code or other MCP client by adding below details

        "fluttercli": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "FlutterCliMcpServer/FlutterCliMcpServer.csproj",
                "--no-build"
            ]
        }

- Update the path of the project

- CreateFlutterProjectForSpecifiedPlatforms: Create flutter project with specified project name for specified platforms.
- CreateFlutterProject: Create flutter project with specified project name for all platforms

Overview

This project provides a server implementation for the Flutter CLI using the Model Context Protocol (MCP). It allows developers to create flutter project with specified platforms.

Getting Started

Prerequisites

- .NET SDK 9.0 or later
- Flutter SDK

Running The Server

- Clone this repository
- Open the project in VS Code
- Build the project using dotnet build command
- Configure VS Code or other MCP client by adding below details

        "fluttercli": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "FlutterCliMcpServer/FlutterCliMcpServer.csproj",
                "--no-build"
            ]
        }

- Update the path of the project

Features

The server exposes two tools that can be invoked by client.

Available Tools

- CreateFlutterProjectForSpecifiedPlatforms: Create flutter project with specified project name for specified platforms.
- CreateFlutterProject: Create flutter project with specified project name for all platforms

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.