mcp-feedback-web

mcp-feedback-web

Provides a web-based interactive feedback server for MCP, replacing desktop GUI with a browser interface supporting full CJK input and bilingual UI.

Category
访问服务器

README

mcp-feedback-nodesktop

A web-based Interactive Feedback server for MCP (Model Context Protocol), designed for headless Linux servers. Replaces the desktop GUI (PySide6) approach with a browser-based interface that supports full CJK input and bilingual UI (English/Chinese).

Why This Project?

The original interactive-feedback-mcp uses PySide6 (Qt) to display a desktop feedback dialog. This doesn't work on headless Linux servers, and even with X11 forwarding, the Windows input method (IME) cannot be used in the forwarded window.

mcp-feedback-nodesktop solves this by serving the feedback UI as a web page. The browser on your local machine handles everything — including Chinese/Japanese/Korean input — natively.

Architecture

┌───────────────────────────────────────────────────────────────┐
│                    Linux Server (headless)                     │
│                                                               │
│  ┌──────────────┐    HTTP (127.0.0.1)   ┌──────────────────┐  │
│  │  server.py   │ ───────────────────>  │  web_feedback.py │  │
│  │  (MCP Server)│                       │  (Web Server)    │  │
│  │  stdio       │ <───────────────────  │  port 8765       │  │
│  └──────┬───────┘    feedback result    └────────┬─────────┘  │
│         │                                        │            │
│         │ stdin/stdout                           │ HTTP       │
└─────────┼────────────────────────────────────────┼────────────┘
          │                                        │
          │ SSH tunnel                             │ LAN
          │                                        │
┌─────────┼────────────────────────────────────────┼────────────┐
│         ▼        Local Machine (Windows/Mac)     ▼            │
│  ┌──────────────┐                   ┌────────────────────┐    │
│  │   Cursor IDE │                   │   Browser          │    │
│  │              │                   │   http://IP:8765   │    │
│  └──────────────┘                   │   Full IME support │    │
│                                     └────────────────────┘    │
└───────────────────────────────────────────────────────────────┘

How It Works

  1. Cursor IDE invokes server.py on the Linux server via SSH (MCP stdio transport)
  2. When AI requests user feedback, server.py launches web_feedback.py in client mode
  3. The client sends a feedback request to the Web Server (port 8765) via HTTP API
  4. The browser receives the request via long polling and displays a feedback form
  5. User types feedback in the browser (with full native IME support) and submits
  6. The Web Server returns the result to the client, which writes it to a temp file
  7. server.py reads the result and returns it to Cursor

Quick Start

Docker (Recommended)

docker compose up -d
docker compose ps   # STATUS should show "healthy"

The container uses restart: unless-stopped, so it will automatically start after system reboot (as long as Docker is enabled).

Manual Installation

python3 -m venv .venv
.venv/bin/pip install fastmcp pydantic
.venv/bin/python web_feedback.py --server

systemd Service

Create /etc/systemd/system/mcp-web-feedback.service:

[Unit]
Description=MCP Web Feedback Server
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/path/to/mcp-feedback-nodesktop
ExecStart=/path/to/mcp-feedback-nodesktop/.venv/bin/python web_feedback.py --server
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable --now mcp-web-feedback

Usage

1. Start the Web Server

Deploy using any method above. Verify:

curl http://127.0.0.1:8765/api/status
# {"status": "running"}

2. Open the Browser (Important!)

Navigate to http://<server-ip>:8765 on your local machine.

You must keep this browser tab open at all times. The page will automatically receive new feedback requests via long polling — no manual refresh needed. When a new request arrives, the tab title will flash and a browser notification will appear (if permitted).

Note: The web server cannot automatically open a browser on your local machine. You need to open the URL manually once. After that, just keep the tab open.

3. Configure Cursor MCP

Add to your Cursor MCP configuration (.cursor/mcp.json).

For Docker deployment on the same machine:

{
  "mcpServers": {
    "interactive-feedback": {
      "command": "docker",
      "args": ["exec", "-i", "mcp-web-feedback", "python", "server.py"],
      "timeout": 600,
      "autoApprove": ["interactive_feedback"]
    }
  }
}

For remote access via SSH (e.g., from a Windows machine):

{
  "mcpServers": {
    "interactive-feedback": {
      "command": "ssh",
      "args": [
        "your-server",
        "docker exec -i mcp-web-feedback python server.py"
      ],
      "timeout": 600,
      "autoApprove": ["interactive_feedback"]
    }
  }
}

Tip: The -i flag in docker exec -i is required to keep stdin open for MCP stdio transport.

4. Features

  • Bilingual UI (English/Chinese) with auto language detection and manual switch
  • Tab title flashes when a new request arrives
  • Browser notification support (requires permission)
  • Enter to submit, Shift+Enter for newline
  • "No feedback" button for quick empty submission
  • Page automatically returns to waiting state after submission

web_feedback.py Dual Mode

# Server mode: start the persistent web server
python web_feedback.py --server

# Client mode: send a request and wait for response
python web_feedback.py \
  --project-directory /path/to/project \
  --prompt "Please provide feedback" \
  --output-file /tmp/result.json

In client mode, if no server is detected, it automatically starts one as a daemon.

API Reference

Method Path Description
GET / Feedback page (HTML)
GET /api/status Health check
GET /api/poll Long poll for new requests (30s timeout)
POST /api/request Create a new feedback request
POST /api/submit Submit feedback
POST /api/get_response Block until feedback is submitted (300s timeout)

File Structure

File Purpose
server.py MCP server, communicates with Cursor via stdio
web_feedback.py Web feedback server + client (dual mode)
Dockerfile Docker image build file
docker-compose.yml Docker Compose configuration

Troubleshooting

Issue Solution
Browser can't load page Check firewall rules for port 8765
Client connection timeout Use 127.0.0.1 instead of localhost (IPv6 issue)
Docker health check fails Run docker logs mcp-web-feedback
Feedback page unresponsive Refresh the browser tab or restart the service

Credits

Based on interactive-feedback-mcp by Fábio Ferreira (MIT License). Modified to use a web-based UI instead of PySide6 desktop GUI.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选