MCP 等待计时器服务器
提供简单wait
工具的 MCP(模型上下文协议)服务器。
观看演示视频: https://www.youtube.com/watch?v= TaF_j9wrWVw
概述
该服务器公开了一个工具, wait
,旨在在 MCP 客户端(例如,Cline、Claude Desktop、Cursor)执行的工作流中引入刻意的暂停。
问题解决了
MCP 客户端及其驱动的 AI 模型通常按顺序运行。执行命令或操作(例如 Web 请求、文件操作或 API 调用)后,模型可能会立即执行下一步。然而,某些操作需要更多时间才能完全完成其效果(例如,后台进程完成、JavaScript 执行后网页完全渲染、文件系统传播)。
由于模型无法始终可靠地检测这些异步效应何时完成,因此它可能会过早进行,从而导致后续步骤中出现错误或不正确的假设。
解决方案: wait
工具
该服务器提供了一个wait
工具,允许用户或 AI 提示明确指示客户端暂停指定的时长后再继续执行。这确保了与时间相关的操作有足够的时间完成。
工具: wait
- **描述:**暂停执行指定的秒数。
- 输入参数:
duration_seconds
(数字,必需):等待的时长,以秒为单位。必须为正数。
用例
- **Web 自动化:**确保动态内容加载或脚本在页面导航或元素交互后完成执行。
- **命令行操作:**为后台任务、文件写入或由 shell 命令启动的服务启动留出时间。
- **API 交互:**在 API 调用之间添加延迟以处理速率限制或等待异步作业完成。
- **工作流调试:**在复杂任务期间插入暂停以观察特定点的系统状态。
安装和设置
此服务器需要 Node.js(版本 16 或更高版本)。
步骤 1:配置您的 MCP 客户端
在客户端配置文件的"mcpServers": {}
对象中添加以下 JSON 块。请选择与您的客户端和操作系统对应的文件:
配置块:
客户端配置文件位置:
- 克劳德桌面:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
(路径可能略有不同)
- macOS:
- VS Code 扩展(Cline /“Claude Code”):
- macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- Windows:
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
- Linux:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- macOS:
- 光标:
- 全局:
~/.cursor/mcp.json
- 项目特定:在项目文件夹中创建一个文件
.cursor/mcp.json
。
- 全局:
- 风帆冲浪:
~/.codeium/windsurf/mcp_config.json
- 其他客户:
- 请参阅特定客户端的文档,了解其 MCP 配置文件的位置。上面“配置块”中显示的 JSON 结构通常可以正常工作。
第 2 步:重启客户端
添加配置块并保存文件后,请完全重启MCP 客户端应用程序以使更改生效。客户端首次启动服务器时,如果mcp-wait-timer
包尚未缓存, npx
将自动下载。
使用示例
安装并启用后,您可以指示您的 MCP 客户端:
客户端的 AI 模型应该识别意图并使用duration_seconds: 10
调用wait
工具。
开发者
该工具是199 Longevity计划的一部分,该组织致力于拓展人类健康和长寿的前沿。
欲了解我们在生物技术领域的工作详情,请访问199.bio 。
项目贡献者:Boris Djordjevic
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
提供一个简单的“等待”工具,在 MCP 客户端执行的工作流中引入刻意的暂停,以便异步操作有时间完成,然后再继续下一步。
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that provides a simple sleep/wait tool, useful for adding delays between operations such as waiting between API calls or testing eventually consistent systems.Last updated -167JavaScript
- AsecurityAlicenseAqualityTool that allows you to wait a certain time to continue the execution of an agent.Last updated -1PythonApache 2.0
- AsecurityAlicenseAqualitySimple MCP Server to enable a human-in-the-loop workflow in tools like Cline and Cursor. This is especially useful for developing desktop applications that require complex user interactions to test.Last updated -113PythonMIT License
- AsecurityAlicenseAqualityMCP server for "taming the Claude" with structured task queues.Last updated -135724TypeScriptMIT License