Sleep Server

Allows AI Agents to sleep for a specified amount of milliseconds, like when they should wait for an API to complete

Installation

Installing for Claude Desktop

Option 1: One-Command Installation

npx mcpbar@latest install Garoth/sleep-mcp -c claude

This command will automatically install and configure the Sleep Server MCP server for your selected client.

Option 2: Manual Configuration

Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

After opening your configuration file, copy and paste this configuration:

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

Sleep MCP Server

Sleep MCP Logo

A 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.

Available Tools

  • sleep: Wait for a specified duration in milliseconds

Installation

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

Configuration

Add to your Cline MCP settings file (ex. ~/.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
    }
  }
}

Note: The timeout parameter specifies the maximum time (in milliseconds) that the MCP server will wait for a response before timing out. This is particularly important for the sleep tool, as setting a timeout that's shorter than your sleep duration will cause the operation to fail. Make sure your timeout value is always greater than the maximum sleep duration you plan to use.

Development

Setting Up Tests

The tests verify the sleep functionality with various durations:

npm test

Building

npm run build

License

MIT

Share:
Details:
  • Stars


    12
  • Forks


    8
  • Last commit


    4 months ago
  • Repository age


    5 months
View Repository

Auto-fetched from GitHub .

MCP servers similar to Sleep Server:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


Sleep Server: MCP Server – MCP.Bar