Sleep MCP Server

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 服务器

提供简单睡眠/等待工具的模型上下文协议 (MCP) 服务器。可用于在操作之间添加延迟,例如在 API 调用之间等待,或测试最终一致性系统。

可用工具

  • sleep :等待指定的时间(以毫秒为单位)

安装

git clone https://github.com/Garoth/sleep-mcp.git npm install

配置

添加到您的 Cline MCP 设置文件(例如 ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):

{ "mcpServers": { "sleep": { "command": "node", "args": ["/path/to/sleep-server/build/index.js"], "disabled": false, "autoApprove": [], "timeout": 300 } } }

注意: timeout参数指定 MCP 服务器在超时前等待响应的最长时间(以毫秒为单位)。这对于 sleep 工具尤为重要,因为设置的超时时间短于睡眠时长会导致操作失败。请确保超时值始终大于您计划使用的最大睡眠时长。

发展

设置测试

测试验证了不同持续时间的睡眠功能:

npm test

建筑

npm run build

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Tools

模型上下文协议 (MCP) 服务器提供简单的睡眠/等待工具,可用于在操作之间添加延迟,例如在 API 调用之间等待或测试最终一致的系统。

  1. Available Tools
    1. Installation
      1. Configuration
        1. Development
          1. Setting Up Tests
          2. Building
        2. License
          ID: ebli96s3w9