"""Base service class."""
from typing import TypeVar, Generic
from basic_memory.models import Base
T = TypeVar("T", bound=Base)
class BaseService(Generic[T]):
"""Base service that takes a repository."""
def __init__(self, repository):
"""Initialize service with repository."""
self.repository = repository
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/basicmachines-co/basic-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server