Skip to main content
Glama
base.py818 B
""" Base service class with common functionality. Services in nabu follow these principles: - Accept simple parameters (not MCP-specific) - Return domain objects (not MCP response dicts) - Orchestrate core components - No knowledge of MCP protocol """ from abc import ABC from typing import Any import logging class BaseService(ABC): """ Base service with common functionality. All nabu services inherit from this class to get: - Database manager access - Logging infrastructure - Common utilities """ def __init__(self, db_manager): """ Initialize service with database manager. Args: db_manager: KuzuConnectionManager instance """ self.db_manager = db_manager self.logger = logging.getLogger(self.__class__.__name__)

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/y3i12/nabu_nisaba'

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