Skip to main content
Glama
decorator_util.py377 B
from functools import wraps from threading import Lock def singleton(cls): instance = None lock = Lock() @wraps(cls) def wrapper(*args, **kwargs): nonlocal instance if instance is None: with lock: if instance is None: instance = cls(*args, **kwargs) return instance return wrapper

Latest Blog Posts

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/Cyanty/Arcs-MCP'

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