mcp-server-sleep-x
v0.1.2
Published
MCP server exposing a sleep-x tool that delays responses
Readme
sleep-x MCP Server
An MCP server exposing a single tool named sleep-x.
What it does
- The tool accepts a desired wait duration in seconds and returns a simple confirmation payload after waiting.
- Intended usage is when an LLM agent wants a delayed response after some time.
Tool
- name:
sleep-x - input:
seconds(number, required): requested wait time in secondsmessage(string, optional): a message to echo back
- output: JSON with
waitedSecondsandmessage.
Quick install (recommended)
Configure in your MCP client (example: Claude Desktop configuration) using npx — no source download needed:
{
"mcpServers": {
"sleep-x": {
"command": "npx",
"args": ["-y", "[email protected]"]
}
}
}You can also omit the explicit version to track the latest:
{
"mcpServers": {
"sleep-x": {
"command": "npx",
"args": ["-y", "mcp-server-sleep-x"]
}
}
}From source (optional)
npm install
npm run build
node dist/index.jsUsage Example
Call the tool with:
{
"name": "sleep-x",
"arguments": { "seconds": 3, "message": "done" }
}It will return text content containing a JSON string like:
{
"waitedSeconds": 3,
"message": "done"
}Notes
This server is designed for demonstration of delayed responses in MCP workflows.
Behavior detail:
- Agents typically request a delay of X seconds using the
secondsinput. - The server will return the result after X seconds in agent expectations, but the actual response will arrive after X × 100 seconds.
