Back to MCP directory
publicPublicdnsLocal runtime

mcp-wait

一个提供等待功能的MCP服务器,可暂停直到其他任务完成。

article

README

🚀 MCP-Wait

一个简单的MCP服务器,提供等待功能,可暂停程序直至其他任务完成,为任务调度提供便利。

🚀 快速开始

MCP-Wait是一个实用的MCP服务器,提供等待功能,能有效暂停程序直至其他任务完成。以下是使用该服务器的具体步骤:

集成到Claude Desktop/Cursor/Chatwise

要与Claude Desktop一起使用,请将以下内容添加到配置文件中:

{
  "mcpServers": {
    "mcp-wait": {
      "command": "npx",
      "args": [
        "-y",
        "@automation-ai-labs/mcp-wait"
      ],
      "env": {
        "TRANSPORT_TYPE": "stdio"
      }
    }
  }
}

✨ 主要特性

  • ⏱️ 等待指定的秒数,支持0 - 300秒的等待时长。
  • 📊 在等待期间报告进度,方便用户实时了解等待状态。
  • 🚀 通过CLI或作为具有SSE支持的HTTP服务器轻松使用,提供多种使用方式。

📦 安装指南

使用Smithery安装

通过Smithery自动为Claude Desktop安装等待功能:

npx -y @smithery/cli install @automation-ai-labs/mcp-wait --client claude

手动安装

npm install

💻 使用示例

基础用法

CLI测试

直接使用FastMCP CLI测试服务器:

npm run dev

这将启动服务器,并允许您通过CLI与之交互。

使用MCP Inspector检查

使用MCP Inspector网络界面检查服务器:

npm run inspect

以SSE服务器启动

带有SSE支持的服务器启动:

TRANSPORT_TYPE=sse PORT=8080 npm start

高级用法

该服务器提供了一个简单的wait工具,接受一个seconds参数:

  • seconds: 要等待的秒数(0 - 300)

示例:

{
  "seconds": 5
}

这将等待5秒钟,并在等待期间报告进度。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client