Skip to main content

Interactive MCP feedback server with Flutter Web UI for AI-assisted development. Collect user feedback, images, and manage sessions in real-time.

Project description

Leo Feedback MCP

A customized MCP (Model Context Protocol) server for interactive feedback collection during AI-assisted development. Built with a Flutter Web frontend and Python/FastAPI backend.

Features

  • Flutter Web UI with dark theme for interactive feedback
  • AI Work Summary panel with Markdown rendering
  • Image support - upload, drag & drop from IDE, paste (PNG, JPG, GIF, BMP, WebP)
  • Auto-submit countdown with configurable prompts
  • Audio & browser notifications when AI requests feedback
  • Session history - persists across browser reloads via backend storage
  • Drag & drop files from IDE (Cursor) into the feedback panel
  • Keyboard shortcuts - Ctrl+Enter / Cmd+Enter for quick submit
  • Smart browser detection (WSL, SSH, local)
  • Session management with auto-cleanup

Architecture

┌─────────────────────────────────────────────┐
│  Cursor / AI Client                         │
│  (calls leo_feedback_mcp MCP tool)           │
└──────────────┬──────────────────────────────┘
               │ MCP Protocol (stdio)
┌──────────────▼──────────────────────────────┐
│  Python Backend                             │
│  ├── FastMCP server (MCP tool definitions)  │
│  ├── FastAPI (HTTP routes + WebSocket)      │
│  └── Session management & image processing  │
└──────────────┬──────────────────────────────┘
               │ HTTP + WebSocket
┌──────────────▼──────────────────────────────┐
│  Flutter Web Frontend                       │
│  ├── Workspace (AI Summary + Feedback)      │
│  ├── Sessions (chat history)                │
│  ├── Settings (auto-submit, timeout)        │
│  └── About                                  │
└─────────────────────────────────────────────┘

Requirements

  • Python 3.11+
  • uv (Python package manager)
  • Flutter 3.x+ (for frontend development/building)

Installation

Option A: Install from PyPI (recommended for users)

pip install leo-feedback-mcp

Or with uv:

uv pip install leo-feedback-mcp

MCP configuration (.cursor/mcp.json):

{
  "mcpServers": {
    "leo-feedback-mcp": {
      "command": "uvx",
      "args": ["leo-feedback-mcp"],
      "timeout": 180,
      "autoApprove": ["leo_feedback_mcp"]
    }
  }
}

Option B: Install from source (for development)

git clone <your-repo-url> ~/Desktop/leo-feedback-mcp
cd ~/Desktop/leo-feedback-mcp
make init
make build

MCP configuration (.cursor/mcp.json):

{
  "mcpServers": {
    "leo-feedback-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "<path-to-leo-feedback-mcp>",
        "leo-feedback-mcp"
      ],
      "timeout": 180,
      "autoApprove": ["leo_feedback_mcp"]
    }
  }
}

Replace <path-to-leo-feedback-mcp> with the actual path to the cloned repository.

Apply configuration

You can place the MCP config in:

  • Project-level: .cursor/mcp.json in your project root
  • Global: ~/.cursor/mcp.json to apply across all projects

After editing, restart Cursor or reload MCP servers (Cursor Settings > MCP > Reload).

Usage

Once configured, the AI assistant will automatically call leo_feedback_mcp to collect your feedback during conversations. A Web UI will open in your browser where you can:

  1. Review the AI's work summary (Markdown rendered)
  2. Provide text feedback with keyboard shortcuts
  3. Attach images via upload button, drag & drop, or paste
  4. View session history of previous AI interactions
  5. Configure auto-submit prompts and timeout settings

Environment Variables

Variable Description Default
MCP_DEBUG Enable debug logging false
MCP_WEB_HOST Web UI host 127.0.0.1
MCP_WEB_PORT Web UI port 8765

Credits

  • Author: Leo Nguyen

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leo_feedback_mcp-1.2.1.tar.gz (10.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leo_feedback_mcp-1.2.1-py3-none-any.whl (10.6 MB view details)

Uploaded Python 3

File details

Details for the file leo_feedback_mcp-1.2.1.tar.gz.

File metadata

  • Download URL: leo_feedback_mcp-1.2.1.tar.gz
  • Upload date:
  • Size: 10.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for leo_feedback_mcp-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a13fe25c91ae7584345ca3ff2bdc81a96220f387c17c9bd6a4c1ac9ebaddb7e8
MD5 4a213817a7571834f46e152554a954c8
BLAKE2b-256 a87dc2c3f3cf33af657a5bf52e1320c1aac20e18b9d5104a753914cdbccea48b

See more details on using hashes here.

File details

Details for the file leo_feedback_mcp-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for leo_feedback_mcp-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b58de9ef5b1a5b45a7f81b7d8f13a1090bac95aa7e8138e17cbbb7ae596156e0
MD5 0ce4483a229c80da905b88f335696105
BLAKE2b-256 638487f371be2af116cc674a4bb94b488052f1b48e8c716802e2571fd2f8bfe0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page