User Prompt
概览
作者提供的说明(英文原文)
An MCP server that enables AI agents to ask users clarifying questions via pop-up terminal windows.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"user-prompt": {
"command": "dnx",
"args": [
"UserPrompt",
"--yes"
]
}
}
}在终端中运行这条命令
claude mcp add user-prompt -- dnx UserPrompt --yes或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"user-prompt": {
"command": "dnx",
"args": [
"UserPrompt",
"--yes"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"user-prompt": {
"type": "stdio",
"command": "dnx",
"args": [
"UserPrompt",
"--yes"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 Jacob-J-Thomas 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5684 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5684 个服务器的 3% 更新
- 基础检查结果等于或优于此分类中其他 5684 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
User Prompt 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.0.2)于9个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
User Prompt MCP Server
mcp-name: io.github.Jacob-J-Thomas/user-prompt
A Model Context Protocol (MCP) server that gives AI agents the ability to ask users clarifying questions mid-task via a pop-up terminal window. Built with .NET 8 and C#.
The Problem
Long-running AI agents (like Claude Code, IDE copilots, or custom agentic workflows) often encounter situations where they need human input — ambiguous requirements, unexpected errors, or design decisions that could go multiple ways. Without a mechanism to ask, the agent either guesses (often incorrectly) or stops entirely and waits for the user to notice.
The Solution
This MCP server exposes a single tool, user_prompt, that an AI agent can call at any point during execution. When invoked, a new terminal window opens on the user's machine displaying the agent's questions. The user types their answers and the responses are returned directly to the agent, allowing it to continue working with the additional context.
Features
- Pop-up terminal prompt — questions appear in a dedicated window, separate from the agent's own I/O
- Multi-question support — the agent can ask multiple questions in a single call; all are displayed upfront as a numbered list
- Structured responses — answers are returned as clearly formatted Q&A pairs the agent can parse
- Timeout handling — 10-minute response window with graceful fallback messaging
- Window-closed detection — if the user closes the prompt without answering, the agent receives a clear notification
- Stdio transport — communicates over stdin/stdout per the MCP specification, compatible with any MCP client
Prerequisites
- Windows: PowerShell 5.1+ (included with Windows 10/11)
- macOS/Linux *(untested)*: PowerShell Core (
pwsh) must be installed
Note: Pre-built releases have no other dependencies. The .NET Global Tool and Build from Source options require the .NET 8.0 SDK or later.
Quick Start
Pick one of the three install options below. Each option walks you through installation, client configuration, and updates end-to-end.
Option A: GitHub Releases
Self-contained executables — no .NET SDK required.
1. Download
Grab the zip for your platform from the latest release:
| Platform | Asset |
|---|---|
| Windows (x64) | UserPromptMcpServer-win-x64.zip |
| macOS (Intel) | UserPromptMcpServer-osx-x64.zip |
| macOS (Apple Silicon) | UserPromptMcpServer-osx-arm64.zip |
| Linux (x64) | UserPromptMcpServer-linux-x64.zip |
2. Extract
Unzip to a permanent location, for example:
- Windows:
C:\Tools\UserPromptMcpServer\ - macOS / Linux:
~/tools/UserPromptMcpServer/
3. Configure your MCP client
Claude Code (CLI):
claude mcp add user-prompt -- "C:\Tools\UserPromptMcpServer\UserPromptMcpServer.exe"
Other clients — point the command at the executable (see Client Configuration Reference for full examples):
{
"command": "C:\\Tools\\UserPromptMcpServer\\UserPromptMcpServer.exe" }
Updating: download the new release and replace the files in the same folder.
Option B: .NET Global Tool
Requires the .NET 8.0 SDK or later. The tool is added to your PATH automatically.
1. Install
dotnet tool install -g UserPrompt
2. Configure your MCP client
Claude Code (CLI):
claude mcp add user-prompt -- user-prompt
Other clients — the command name is user-prompt (see Client Configuration Reference for full examples):
{
"command": "user-prompt" }
Updating:
dotnet tool update -g UserPrompt
Option C: Build from Source
Requires the .NET 8.0 SDK or later.
git clone https://github.com/Jacob-J-Thomas/user-context-retrieval-mcp-server.git
cd user-context-retrieval-mcp-server dotnet publish UserPromptMcpServer -c Release -r win-x64 -o ./publish
Replace
win-x64with your platform's runtime identifier (e.g.osx-arm64,linux-x64).
Then configure your client the same way as Option A, pointing at the executable inside ./publish/.
Client Configuration Reference
This server uses the stdio transport — it does not listen on a port. The MCP client launches the server process and communicates with it over stdin/stdout. Replace the command/path below with the value from whichever install option you chose.
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": { "user-prompt": { "command": "/path/to/UserPromptMcpServer.exe" } } }
Config file location:
| Platform | Path |
|---|---|
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
Cursor
Add the following to .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):
{
"mcpServers": { "user-prompt": { "command": "/path/to/UserPromptMcpServer.exe" } } }
OpenAI Codex CLI
Add the following to ~/.codex/config.toml (global) or .codex/config.toml (project-level):
[mcp_servers.user-prompt]
command = "/path/to/UserPromptMcpServer.exe"
Or via the CLI:
codex mcp add user-prompt -- /path/to/UserPromptMcpServer.exe
Other MCP Clients
Any MCP client that supports the stdio transport can launch this server. Point it at the executable (or the user-prompt command name if using the .NET Global Tool).
Usage
Once configured, the user_prompt tool is available to the AI agent automatically. The agent decides when to invoke it based on its own judgment — no manual triggering is required.
Tool Reference
Tool name: user_prompt
| Parameter | Type | Required | Description |
|---|---|---|---|
reason | string | Yes | A clear explanation of why the agent needs user input. Displayed prominently in the terminal window. |
questions | string[] | Yes | A list of specific questions. Displayed as a numbered list; the user answers each in sequence. |
Example Tool Call
{
"name": "user_prompt", "arguments": { "reason": "The project has no database configuration and I need to set one up.", "questions": [ "Which database engine should I use (PostgreSQL, SQLite, SQL Server)?", "Should I include Entity Framework Core as the ORM?" ] } }
Example Response
User responded to 2 question(s):
- Q: Which database engine should I use (PostgreSQL, SQLite, SQL Server)? A: PostgreSQL
- Q: Should I include Entity Framework Core as the ORM? A: Yes, use EF Core with code-first migrations
Terminal Window Behavior
When the tool is invoked, a new PowerShell window opens displaying:
- A header indicating an AI agent needs input
- The agent's stated reason for asking
- All questions as a numbered list
- Numbered input prompts (
1>,2>, etc.) — one Enter per answer - A confirmation message before the window auto-closes
If the user does not respond within 10 minutes, or closes the window without answering, the agent receives a descriptive fallback message and can decide how to proceed.
Architecture
UserPromptMcpServer/
├── UserPromptMcpServer.csproj # Project file (.NET 8) ├── Program.cs # MCP server entry point (stdio transport) └── Tools/ └── UserPromptTool.cs # Tool implementation
How It Works Internally
- The MCP client sends a
tools/callJSON-RPC request over stdin - The server writes the questions to a temporary JSON file
- A PowerShell script is generated and launched in a new terminal window
- The user sees the questions and types answers sequentially
- Answers are written to a response JSON file; the terminal closes
- The server reads the response file, formats it, cleans up temp files, and returns the result over stdout
All temporary files are created under %TEMP%/UserPromptMcpServer/ / and are cleaned up after each invocation regardless of outcome.
Contributing
Contributions are welcome! To make sure your change gets merged, please open an issue first to discuss the proposed change and get approval before starting work.
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Make your changes and ensure the project builds cleanly (
dotnet build) - Commit with a clear, descriptive message
- Open a pull request against
develop
Development Setup
git clone https://github.com/Jacob-J-Thomas/user-context-retrieval-mcp-server.git
cd user-context-retrieval-mcp-server dotnet restore UserPromptMcpServer/UserPromptMcpServer.csproj dotnet build UserPromptMcpServer/UserPromptMcpServer.csproj
Areas for Contribution
- Cross-platform support — the macOS and Linux terminal launching is currently stubbed out and untested
- Test coverage — no test project exists yet
- Additional MCP tools — if the project scope expands beyond a single tool
License
This project is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). See LICENSE for details.
Author
Jacob Thomas — @Jacob-J-Thomas