npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-user-feedback-server

v2.0.0

Published

MCP server with user feedback tool that shows dialog boxes

Readme

README | 中文

MCP User Feedback Server

A Model Context Protocol (MCP) server that provides a tool for requesting user feedback through system dialog boxes.

Features

  • Cross-platform dialog support (macOS, Linux, Windows)
  • Single tool: request_user_feedback
  • Native system dialog integration
  • Supports custom titles and default text
  • Easy integration with MCP clients like Cursor, Claude Desktop, etc.

Quick Start

Using with MCP Clients

This server is designed to be used with MCP clients. The easiest way is to install it directly from npm:

npx mcp-user-feedback-server@latest

Installation for Development

npm install
npm run build

Command Line Options

The server supports the following command line options:

| Option | Alias | Description | |--------|-------|-------------| | --timeout | -t | Set dialog timeout in seconds (default: 600 seconds / 10 minutes) |

Example:

# Set timeout to 5 minutes (300 seconds)
npx mcp-user-feedback-server --timeout 300

# Using the short form
npx mcp-user-feedback-server -t 300

MCP Client Configuration

Cursor IDE

Add this to your Cursor settings in the MCP servers configuration:

{
  "mcpServers": {
    "user-feedback": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-user-feedback-server@latest"
      ]
    }
  }
}

To set a custom timeout:

{
  "mcpServers": {
    "user-feedback": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-user-feedback-server@latest",
        "--timeout",
        "300"
      ]
    }
  }
}

Claude Desktop

Add this to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "user-feedback": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-user-feedback-server@latest"
      ]
    }
  }
}

Other MCP Clients

For any MCP client that supports the Model Context Protocol, you can use:

  • Command: npx
  • Args: ["-y", "mcp-user-feedback-server@latest"]

Local Development Setup

If you're developing locally, you can also run the server directly:

{
  "mcpServers": {
    "user-feedback": {
      "command": "node",
      "args": ["/path/to/mcp-user-feedback-server/dist/index.js"]
    }
  }
}

Tool: request_user_feedback

Shows a dialog box to request feedback from the user.

Parameters

  • question (required): The question or prompt to show to the user
  • title (optional): Title for the dialog box
  • defaultAnswer (optional): Default text to pre-fill in the input field

Example Usage in MCP Clients

Once configured in your MCP client, you can use the tool in conversations:

Example 1: Simple question

User: Ask me what my favorite programming language is
AI: I'll ask you about your favorite programming language.
[AI uses request_user_feedback tool with question: "What is your favorite programming language?"]
[Dialog box appears on your screen]
[You type "TypeScript" and click OK]
AI: Thanks! You mentioned that TypeScript is your favorite programming language.

Example 2: With custom title and default

User: Get my preferred email for notifications
AI: Let me ask for your preferred notification email.
[AI uses request_user_feedback tool with:
  question: "Please enter your preferred email for notifications:"
  title: "Email Settings"
  defaultAnswer: "[email protected]"]
[Dialog box appears with the title "Email Settings"]
[You modify the default email and submit]
AI: I've noted your preferred email for notifications.

Tool Parameters

{
  "question": "What is your favorite color?",
  "title": "User Preference",
  "defaultAnswer": "Blue"
}

Platform-specific Implementation

  • macOS: Uses AppleScript with osascript
  • Linux: Uses zenity, kdialog, yad, or xmessage (requires GUI environment)
  • Windows: Uses PowerShell or VBScript (fallback)

System Requirements

macOS

  • No additional dependencies required

Linux

  • Requires one of: zenity (GNOME/GTK), kdialog (KDE), yad, or xmessage
  • Install zenity: sudo apt-get install zenity (Ubuntu/Debian)

Windows

  • No additional dependencies required

Error Handling

The tool handles various error scenarios:

  • User cancellation
  • Dialog timeout
  • Missing GUI environment
  • Platform-specific dialog failures

Development

The project structure:

src/
├── index.ts      # Main MCP server
├── dialog.ts     # Cross-platform dialog manager
docs/
├── FEEDBACK_PROTOCOL.md # Feedback protocol documentation

License

MIT

import { read_file } from 'fs';