Sleep icon

Sleep

CreatedGaroth

Introduces delays in AI agent workflows by providing a sleep/wait function for specified durations.

About

The Sleep tool is a Model Context Protocol (MCP) server offering a straightforward sleep/wait function. It is particularly useful for inserting controlled delays between operations performed by AI agents, simulating wait times for API completion, and testing the behavior of eventually consistent systems.

Key Features

  • Configurable timeout parameter to prevent operations from failing due to long sleep durations
  • Tests to verify the sleep functionality with various durations
  • Provides a 'sleep' tool to pause execution for a specified duration in milliseconds
  • Easy installation via git clone and npm install

Use Cases

  • Testing eventually consistent systems
  • Adding delays between API calls
  • Simulating wait times in AI agent workflows