
Sleep MCP Server
โ 21from Garoth
Provides a sleep/wait tool to add delays between operations, such as waiting between API calls or testing eventually consistent systems.
Sleep MCP Server
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
Development
Setting Up Tests
The tests verify the sleep functionality with various durations:
npm testBuilding
npm run buildgit clone https://github.com/Garoth/sleep-mcp.git
npm installInstallation
git clone https://github.com/Garoth/sleep-mcp.git
npm installConfiguration
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
timeoutparameter 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.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
License
MIT