Skip to main content
Glama

スリープMCPサーバー

このMCPサーバーは、エージェントのフローを制御するために、指定された期間実行を一時停止しようとします。時間指定の遅延を導入することで自動化を強化し、タスクが所定の順序で実行されるようにします。アクション間に待機期間を必要とするワークフローの管理に最適です。

設定

インストール

MCP パッケージマネージャーの使用

鍛冶屋

Smithery経由で Claude Desktop 用の Sleep MCP を自動的にインストールするには:

npx @smithery/cli install @AgentsWorkingTogether/mcp-sleep --client claude

mcp-get

Sleep MCP サーバーはmcp-getを使用してインストールできます。

npx @michaellatman/mcp-get@latest install mcp-sleep

前提条件

MCP はまだ非常に新しく、進化を続けています。MCP の基本を理解して実行するには、 MCP ドキュメントに従うことをお勧めします。

必要なもの:

構成

1. Claudeデスクトップを設定する

OSに応じて次のファイルを作成します。

MacOSの場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

このテンプレートをファイルに貼り付けます

{ "mcpServers": { "mcp-sleep": { "command": "uvx", "args": [ "mcp-sleep" ], } } }

オプションで、 <MCP_SLEEP_TIMEOUT>タイムアウト (待機できる最大時間、デフォルトは 60 秒) に置き換えます。

{ "mcpServers": { "mcp-sleep": { "command": "uvx", "args": [ "mcp-sleep" ], "env": { "MCP_SLEEP_TIMEOUT": "<MCP_SLEEP_TIMEOUT>" } } } }
2. Claude Desktopを再起動します
SSEモード

あるいは、次のコマンドを実行して、MCP サーバーを SSE モードで実行することもできます。

uvx mcp-sleep --transport sse

このモードは、SSE をサポートする MCP クライアント (Web アプリなど) と統合する場合に便利です。

ツール

  1. sleep
    • 指定された期間実行を一時停止して、エージェントのフローを制御します。
    • 入力:
      • seconds (数値、最大タイムアウト設定値):続行を通知するまでの秒数
    • 戻り値: {seconds} 後に「{seconds} 秒待機した後、タスクを続行できます」というメッセージが表示されます。最大待機時間よりも長い待機時間を入力した場合、「設定により、{ctx.sleep.config.timeout} 秒以上待機させることはできません」というメッセージが表示されます。

Claude Desktopでの使用

Claude Desktop でこれを使用するには、 claude_desktop_config.jsonに以下を追加します。

ドッカー
{ "mcpServers": { "mcp-sleep": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MCP_SLEEP_TIMEOUT", "mcp/sleep" ], "env": { "MCP_SLEEP_TIMEOUT": "<MCP_SLEEP_TIMEOUT>" } } } }

発達

設定

ローカルで作業している場合は、リポジトリのルートにある.envファイルに 2 つの環境変数を追加します。

MCP_SLEEP_TIMEOUT=

ローカル開発の場合は、Claude Desktop の構成を更新します。

{ "mcpServers": { "mcp-sleep_local": { "command": "uv", "args": [ "run", "--directory", "/path/to/your/mcp-sleep", "run", "mcp-sleep" ] } } }
"mcpServers": { "mcp-sleep": { "command": "uvx", "args": [ "mcp-sleep" ] } }

建築と出版

配布用のパッケージを準備するには:

  1. 依存関係を同期し、ロックファイルを更新します。
uv sync
  1. パッケージディストリビューションをビルドします。
uv build

これにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。

  1. PyPI に公開:
uv publish

注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。

  • トークン: --tokenまたはUV_PUBLISH_TOKEN
  • またはユーザー名/パスワード: --username / UV_PUBLISH_USERNAMEおよび--password / UV_PUBLISH_PASSWORD

Dockerビルド:

docker build -t mcp/sleep -f Dockerfile .

デバッグ

MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。

次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。

npx @modelcontextprotocol/inspector uv --directory /path/to/your/mcp-sleep run mcp-sleep

起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Tools

エージェントのフローを制御するために、指定期間実行を一時停止します。時間指定の遅延を導入することで自動化を強化し、タスクが所定の順序で実行されるようにします。アクション間に待機期間を必要とするワークフローの管理に最適です。

  1. 設定
    1. インストール
    2. 前提条件
    3. 構成
  2. ツール
    1. Claude Desktopでの使用
  3. 発達
    1. 設定
    2. 建築と出版
    3. デバッグ

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    Enables AI agent and task management using the CrewAI framework, allowing users to create and run agents and tasks in an automated workflow environment.
    Last updated -
    0
    3
    JavaScript
  • -
    security
    F
    license
    -
    quality
    A TypeScript implementation of the MCP Agent framework, providing tools for building context-aware agents with advanced workflow management, logging, and execution capabilities.
    Last updated -
    5
    TypeScript
  • A
    security
    F
    license
    A
    quality
    An intelligent middleware that determines when human intervention is necessary in AI agent operations using a sequential scoring system that evaluates multiple dimensions of a request.
    Last updated -
    1
    6
    TypeScript
  • -
    security
    A
    license
    -
    quality
    Provides a simple 'wait' tool that introduces deliberate pauses into workflows executed by MCP clients, allowing time for asynchronous operations to complete before proceeding to the next step.
    Last updated -
    582
    1
    JavaScript
    MIT License
    • Linux
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentsWorkingTogether/mcp-sleep'

If you have feedback or need assistance with the MCP directory API, please join our Discord server