Skip to main content
Glama
config.py600 B
"""Configuration module for the Sleep.""" import os from dataclasses import dataclass @dataclass class SleepConfig: """Sleep configuration.""" timeout: int # Max wait timeout @classmethod def from_env(cls) -> "SleepConfig": """Create configuration from environment variables. Returns: SleepConfig with values from environment variables Raises: ValueError: If any required environment variable is missing """ timeout = int(os.getenv("MCP_SLEEP_TIMEOUT")) return cls( timeout=timeout )

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