
nazar256/user-prompt-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
生成時にユーザ入力をリクエストできるCursor用のモデルコンテキストプロトコル(MCP)サーバー
概要
生成時にユーザ入力をリクエストできるCursor用のモデルコンテキストプロトコル(MCP)サーバー。 主にAI生成コードです。 このプロジェクトでは、Cursor(または任意のMCP互換クライアント)が生成プロセスを終了することなく、モデル生成中のユーザーから追加の入力を要求することを可能にするMCPサーバーを実装しています。 AIモデルとユーザー間のブリッジとして機能し、よりインタラクティブな体験を実現します。 - : 生成中にAIがより多くの情報を求めることができます - : テキストラップでダイアログボックスに入力プロンプトを表示 - : Linux (テスト済み) と macOS の両方で動作する - : stdio を介してカーソルとの統合 - GUI機能の場合: - Linux: zenity - macOS: osascript (組み込み) user-prompt-mcp をインストールする最も簡単な方法は、インストールスクリプトを使用しており、システムに適したバイナリを自動的にダウンロードします。 インストールスクリプトは、OSとアーキテクチャ(LinuxまたはmacOS、amd64またはarm64)を検出します。 - 適切なプレコンパイルをダウンロード...
概要(AI 翻訳)
生成時にユーザ入力をリクエストできるCursor用のモデルコンテキストプロトコル(MCP)サーバー。 主にAI生成コードです。
概要
このプロジェクトでは、Cursor(または任意のMCP互換クライアント)が生成プロセスを終了することなく、モデル生成中のユーザーから追加の入力を要求することを可能にするMCPサーバーを実装しています。 AIモデルとユーザー間のブリッジとして機能し、よりインタラクティブな体験を実現します。
##特徴
-ユーザー入力プロンプト:AIが生成中により多くの情報を求めることを可能にします
- シンプルなGUI: テキストラップでダイアログボックスに入力プロンプトを表示
- クロスプラットフォーム:Linux(テスト済み)とmacOSの両方で動作する -Stdio Transport: stdioによるCursorとの統合
インストール
前提条件
- GUI機能の場合:
- Linux: 禅
- macOS: osascript (組み込み)
##クイックインストール(推奨)
user-prompt-mcp をインストールする最も簡単な方法は、インストールスクリプトを使用しており、システムに適したバイナリを自動的にダウンロードします。
インストールスクリプトは次のようになります。
- OSとアーキテクチャ(LinuxまたはmacOS、amd64またはarm64)を検知
- 適切な事前コンパイルされたバイナリをダウンロード
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
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
- Open Cursor and go to Settings
- Navigate to the MCP Servers section and add a new server by editing JSON:
{
"mcpServers": {
"prompt": {
"command": "user-prompt-mcp"
}
}
}
-
Save and refresh
-
Add to global rules something like: “Important - do not finish responding until explicitly told to do so, instead always use MCP
input_user_promptand 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:
--timeoutuser-prompt-mcp --timeout 600 # Set timeout to 10 minutes - Environment variable:
USER_PROMPT_TIMEOUT=export USER_PROMPT_TIMEOUT=1800 # Set timeout to 30 minutes user-prompt-mcp
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"prompt": {
"command": "user-prompt-mcp"
}
}
}