interactive-mcp
by ttommyth·★ 345·综合分 46
interactive-mcp 是一个本地、跨平台的 MCP 服务器,通过提示、通知和持久聊天会话实现 AI 代理与用户之间的交互式通信。
概述
interactive-mcp 提供了一套工具,允许 AI 代理直接从本地机器请求用户输入。它包含使用预定义选项提问、显示操作系统通知和维护持久命令行聊天会话的功能。服务器在本地与 Claude Desktop 或 VS Code 等 MCP 客户端一起运行,需要直接访问操作系统才能正常工作。尽管该项目仍处于早期阶段,但它展示了对接协议的清晰理解,并提供了增强人机交互的实用工具。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您的AI应用程序需要通过提示和通知与用户直接交互时,尤其是在开发工作流或对等编程场景中,应选择此方案。
什么时候不要选它
对于不需要用户输入的服务器间交互,或在无法直接访问用户本地机器的环境中运行时,应避免使用。
此 server 暴露的工具
从 README 抽取出 5 个工具request_user_inputAsks the user a question and returns their answer. Can display predefined options.
message_complete_notificationSends a simple OS notification.
start_intensive_chatInitiates a persistent command-line chat session.
ask_intensive_chatAsks a question within an active intensive chat session.
stop_intensive_chatCloses an active intensive chat session.
可对比工具
安装
安装
对于 Claude Desktop,将以下内容添加到 claude_desktop_config.json:
{
"mcpServers": {
"interactive": {
"command": "npx",
"args": ["-y", "interactive-mcp"]
}
}
}对于 VS Code,将以下内容添加到您的用户设置(JSON)文件或 .vscode/mcp.json:
{
"mcp": {
"servers": {
"interactive-mcp": {
"command": "npx",
"args": ["-y", "interactive-mcp"]
}
}
}
}FAQ
- interactive-mcp 支持哪些平台?
- interactive-mcp 是跨平台的,支持 Windows、macOS 和 Linux。
- 我可以自定义用户输入的超时时间吗?
- 是的,您可以在客户端配置中使用 `-t` 或 `--timeout` 标志设置自定义超时时间。
interactive-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。