Cover image
Try Now
2025-04-02

光标的模型上下文协议(MCP)服务器,可在生成期间请求用户输入

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

User Prompt MCP

A Model Context Protocol (MCP) server for Cursor that enables requesting user input during generation. This is mostly AI-generated code.

Overview

This project implements an MCP server that allows Cursor (or any MCP-compatible client) to request additional input from users during model generation without ending the generation process. It serves as a bridge between the AI model and the user, creating a more interactive experience.

Features

  • User Input Prompting: Allows the AI to ask for more information during generation
  • Simple GUI: Presents input prompts in a dialog box with text wrapping
  • Cross-Platform: Should work on both Linux (tested) and macOS
  • Stdio Transport: Integration with Cursor via stdio

Installation

Prerequisites

  • For GUI functionality:
    • Linux: zenity
    • macOS: osascript (built-in)

Quick Install (Recommended)

The easiest way to install user-prompt-mcp is using our installation script, which automatically downloads the appropriate binary for your system:

# Install the latest version
curl -sSL https://raw.githubusercontent.com/nazar256/user-prompt-mcp/main/install.sh | bash

# Or install a specific version
curl -sSL https://raw.githubusercontent.com/nazar256/user-prompt-mcp/main/install.sh | bash -s -- -v v1.0.0

The installation script will:

  • Detect your OS and architecture (Linux or macOS, amd64 or arm64)
  • Download the appropriate pre-compiled binary
  • Install it to a suitable directory in your PATH
  • Make it executable

Install from source

If you prefer to build from source (requires Go 1.18+):

go install github.com/nazar256/user-prompt-mcp/cmd/user-prompt-mcp@latest

Manual Installation

You can also download pre-compiled binaries directly from the Releases page.

Usage with Cursor

  1. Open Cursor and go to Settings
  2. Navigate to the MCP Servers section and add a new server by editing JSON:
{
  "mcpServers": {
    "prompt": {
      "command": "user-prompt-mcp"
    }
  }
}
  1. Save and refresh

  2. Add to global rules something like: "Important - do not finish responding until explicitly told to do so, instead always use MCP input_user_prompt and wait for response in all cases, either you feel stuck, you have question or you finished work on a prompt - always communicate with the user using this MCP."

Configuration

The server can be configured using command-line flags or environment variables:

Timeout Configuration

By default, the server will wait 20 minutes for user input before timing out. You can customize this timeout using:

  • Command line flag: --timeout <seconds>
    user-prompt-mcp --timeout 600  # Set timeout to 10 minutes
    
  • Environment variable: USER_PROMPT_TIMEOUT=<seconds>
    export USER_PROMPT_TIMEOUT=1800  # Set timeout to 30 minutes
    user-prompt-mcp
    

Now when using Cursor, the AI can request additional input from you without ending its generation.

License

MIT

Acknowledgements

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    3 (1)
    Avatar
    user_wocUNS9M
    2025-04-16

    MCP GitHub by aghonem1 is an impressive tool that seamlessly integrates with your GitHub repositories. It streamlines my workflow, making it easier to manage and track progress on various projects. Highly recommended for developers looking for an efficient solution to boost productivity. Check it out [here](https://mcp.so/server/mcp-github/aghonem1).