Skip to main content
Glama

FastMCP Boilerplate

by rainer85ah
abstract_db.py708 B
from abc import ABC, abstractmethod from typing import Any, Dict, List class BaseDB(ABC): @abstractmethod async def connect(self) -> None: pass @abstractmethod async def close(self) -> None: pass @abstractmethod async def read(self, filter_query: Dict[str, Any], **kwargs) -> List[Dict[str, Any]]: pass @abstractmethod async def write(self, document: Dict[str, Any], **kwargs) -> None: pass @abstractmethod async def update(self, filter_query: Dict[str, Any], update_doc: Dict[str, Any], upsert: bool = False) -> int: pass @abstractmethod async def delete(self, filter_query: Dict[str, Any]) -> int: pass

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/rainer85ah/mcp-server'

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