FlowStepMCP

FlowStepMCP

Complete Model Context Protocol (MCP) server designed to facilitate seamless interaction between Large Language Models (LLMs) and end-users. It provides a robust set of tools for notifications, confirmations, selections, and text inputs, supporting multiple rendering modes including Console, GUI, and Telegram Bot.

Category
Visit Server

README

FlowStep - MCP Server for User Interactions

GitHub Version GitHub Status

🚧 Under Development

A complete Model Context Protocol (MCP) server designed to facilitate seamless interaction between Large Language Models (LLMs) and end-users. It provides a robust set of tools for notifications, confirmations, selections, and text inputs, supporting multiple rendering modes including Console, GUI, and Telegram Bot.

šŸŽÆ Native Desktop UI

ā–¶ļø Watch the demonstration video

FlowStep Demonstration

šŸŽÆ Telegram UI

ā–¶ļø Watch the demonstration video

FlowStep Demonstration

šŸŽÆ Overview

FlowStep acts as an abstraction layer for user interactions. It exposes standard MCP tools that LLMs can invoke to interact with the user based on the application's configuration (Console, GUI, or Telegram).

Key Capabilities:

  • Notifications: Display non-blocking or blocking informational messages.
  • Confirmations: Request explicit Yes/No or Cancel confirmation from the user.
  • Single & Multi-Selection: Provide dropdowns or lists for choosing one or multiple options.
  • Text Input: Collect free-form text from the user with multi-line support.
  • Custom Input: Allow selection from a predefined list or custom text entry.
  • Progress Reporting: Visual feedback for long-running operations.
  • Multiple Render Modes: Console (CLI), Desktop GUI (Avalonia), or Telegram Bot.

šŸ“¦ Project Structure

The library is organized into logical layers:

FlowStep.MCP.Library/
ā”œā”€ā”€ Models/
│   └── InteractionModels.cs           # Data models (InteractionRequest, InteractionResponse, InteractionOption)
ā”œā”€ā”€ Contracts/
│   ā”œā”€ā”€ IFlowStepService.cs            # Core service interface
│   └── IInteractionRenderer.cs        # Renderer interface (Contracts for UI implementation)
ā”œā”€ā”€ Services/
│   └── FlowStepService.cs             # Business logic and orchestration
ā”œā”€ā”€ McpServices/
│   └── FlowStepMcpService.cs          # Implementation of MCP Server Tools
ā”œā”€ā”€ Renderers/
│   ā”œā”€ā”€ CliInteractionRenderer.cs      # Console-based implementation
│   ā”œā”€ā”€ TelegramRenderer.cs            # Telegram Bot implementation
│   ā”œā”€ā”€ GuiInteractionBridge.cs        # Bridge for custom GUI implementations
│   └── AvaloniaUI/
│       ā”œā”€ā”€ AvaloniaUIRenderer.cs      # Main Avalonia GUI renderer
│       ā”œā”€ā”€ Themes/
│       │   └── ThemeColors.cs         # Dark mode color definitions
│       ā”œā”€ā”€ Header/
│       │   └── HeaderContentFactory.cs
│       ā”œā”€ā”€ Footer/
│       │   ā”œā”€ā”€ StandardFooterFactory.cs
│       │   └── NotificationFooterFactory.cs
│       ā”œā”€ā”€ Inputs/
│       │   ā”œā”€ā”€ SingleChoiceInputFactory.cs
│       │   ā”œā”€ā”€ MultiChoiceInputFactory.cs
│       │   ā”œā”€ā”€ TextInputFactory.cs
│       │   └── ChoiceWithTextInputFactory.cs
│       ā”œā”€ā”€ Factories/
│       │   ā”œā”€ā”€ ConfirmationButtonsFactory.cs
│       │   ā”œā”€ā”€ SimpleConfirmationContentFactory.cs
│       │   └── ResponseBuilder.cs
│       └── Styles/
│           └── DarkThemeStyles.cs     # XAML-like styling logic
ā”œā”€ā”€ Extensions/
│   └── FlowStepServiceExtension.cs    # DI Registration helper
└── FlowStep.MCP.Library.csproj

šŸ–„ļø Rendering Modes

FlowStep supports three rendering modes, configurable at startup:

Mode Description Use Case
CLI Console/Terminal interface Headless servers, debugging, automation scripts
GUI Avalonia Desktop application Rich desktop experience with modern dark UI
Telegram Telegram Bot integration Remote interactions, mobile notifications, distributed teams

Mode Selection Priority

Configuration is resolved in the following order (highest to lowest priority):

  1. Command Line Arguments
  2. Environment Variables (prefix: FLOWSTEP_)
  3. appsettings.json
  4. Default (GUI)

āš™ļø Configuration

Command Line Arguments

# GUI Mode (default)
dotnet run

# CLI Mode
dotnet run -- --mode cli

# Telegram Mode
dotnet run -- --mode telegram --telegram-token "123456:ABC-DEF" --telegram-chat-id 123456789

# Custom configuration file
dotnet run -- --config /path/to/custom-config.json

Environment Variables

# Windows
set FLOWSTEP_MODE=telegram
set FLOWSTEP_TELEGRAM__BOTTOKEN=123456:ABC-DEF
set FLOWSTEP_TELEGRAM__CHATID=123456789

# Linux/Mac
export FLOWSTEP_MODE=telegram
export FLOWSTEP_TELEGRAM__BOTTOKEN=123456:ABC-DEF
export FLOWSTEP_TELEGRAM__CHATID=123456789

appsettings.json

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "Mode": "gui",
  "Telegram": {
    "BotToken": "123456:ABC-DEF",
    "ChatId": "123456789"
  }
}

Environment-Specific Configuration

Create appsettings.Development.json or appsettings.Production.json for environment-specific overrides:

{
  "Mode": "cli",
  "Logging": {
    "LogLevel": {
      "Default": "Debug"
    }
  }
}

🌐 MCP Client Configuration

To integrate FlowStep with your favorite AI editor or client (e.g., Cursor, Windsurf, Claude Desktop, or Cline), add the server configuration to your client's settings.

HTTP Transport (Recommended)

{
  "mcpServers": {
    "FlowStep.MCP": {
      "url": "http://localhost:59170"
    }
  }
}

STDIO Transport (Local Execution)

{
  "mcpServers": {
    "FlowStep.MCP": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "src/FlowStep.MCP/FlowStep.MCP.csproj",
        "--",
        "--mode",
        "gui"
      ]
    }
  }
}

šŸ› ļø MCP Tools Reference

All tools are exposed via the FlowStepMcpService and automatically registered with the MCP server.

1. NotifyUserAsync

Displays a simple notification to the user with a title and message.

  • Parameters:
    • message (string): Message to be displayed to the user.
    • title (string): Notification title (optional; default: 'System').
    • waitConfirmation (bool): If true, waits for user confirmation. Default: false.
  • Returns: Status of the operation.

2. ConfirmAsync

Requests user confirmation with a message.

  • Parameters:
    • message (string): Confirmation message to the user.
    • title (string): Confirmation title (optional).
    • isCancellable (bool): Indicates whether the operation can be cancelled (optional; default: true).
  • Returns: "yes", "no", or "cancelled".

3. ChooseOptionAsync

Allows the user to choose one option among several available ones.

  • Parameters:
    • message (string): Message describing the available options.
    • options (List<InteractionOption>): List of options available for selection.
    • title (string): Title of the choice (optional).
    • allowCustomInput (bool): Whether to allow a custom input option (optional; default: false).
  • Returns: Value of the selected option or "custom:{value}" if custom input is provided.

4. ChooseMultipleOptionsAsync

Allows the user to select multiple options.

  • Parameters:
    • title (string): Title of the selection (optional).
    • message (string): Message describing the available options.
    • options (List<InteractionOption>): List of options available for selection.
    • minSelections (int): Minimum number of required selections (optional; default: 0).
    • maxSelections (int): Maximum number of allowed selections (optional; default: 1).
  • Returns: List of values of selected options.

5. AskUserForTextAsync

Requests that the user type free-form text. Supports multi-line input in GUI mode.

  • Parameters:
    • message (string): Instruction or message to the user.
    • title (string): Title of the text field (optional).
    • placeholder (string): Placeholder text shown in the input field (optional; default: 'Type here...').
  • Returns: The text entered by the user (may contain line breaks).

6. ChooseWithCustomTextAsync

Allows the user to choose one option and optionally type a custom text.

  • Parameters:
    • message (string): Instruction message for the user.
    • options (List<InteractionOption>): List of options available for selection.
    • title (string): Title of the interaction (optional).
    • placeholder (string): Placeholder text for the custom text input field (optional).
  • Returns: Selected option value or custom text prefixed with "custom:".

7. ShowProgressAsync

Displays a notification indicating the progress of an operation.

  • Parameters:
    • operationName (string): Descriptive name of the ongoing operation.
    • total (int): Total number of items to process.
    • status (string): Current status or progress message.
  • Returns: Status of the operation.

šŸŽØ Interaction Types

The library handles six distinct interaction types defined in InteractionType:

  1. Notification: Simple display (OK).
  2. Confirmation: Yes/No decision.
  3. SingleChoice: Dropdown / Radio (Select 1).
  4. MultiChoice: Checkboxes (Select N).
  5. TextInput: Multi-line text input with word wrapping.
  6. ChoiceWithText: Predefined options + Custom text field.

šŸ—ļø Architecture

  • Service Layer: FlowStepService handles orchestration and timeout management.
  • Renderer Layer: IInteractionRenderer defines the contract. Implementations include:
    • CliInteractionRenderer: Terminal/console interface
    • AvaloniaUIRenderer: Modern desktop GUI with dark theme
    • TelegramRenderer: Telegram Bot API integration
  • MCP Layer: FlowStepMcpService exposes tools conforming to the Model Context Protocol.

šŸš€ Getting Started

Prerequisites

  • .NET 10.0 SDK
  • (Optional) Telegram Bot Token for Telegram mode

Running in GUI Mode (Default)

dotnet run --project src/FlowStep.MCP/FlowStep.MCP.csproj

Running in CLI Mode

dotnet run --project src/FlowStep.MCP/FlowStep.MCP.csproj -- --mode cli

Running in Telegram Mode

# Via arguments
dotnet run --project src/FlowStep.MCP/FlowStep.MCP.csproj -- --mode telegram --telegram-token "YOUR_TOKEN" --telegram-chat-id 123456789

# Via environment
export FLOWSTEP_MODE=telegram
export FLOWSTEP_TELEGRAM__BOTTOKEN="YOUR_TOKEN"
export FLOWSTEP_TELEGRAM__CHATID=123456789
dotnet run --project src/FlowStep.MCP/FlowStep.MCP.csproj

License

This project is licensed under the MIT License - see the LICENSE file for details.

<p align="center">Made with ā¤ļø</p>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured