Skip to main content
Glama
rag_tools.py•886 B
""" RAG Tools - Document management for Qdrant """ import sys from pathlib import Path from typing import Dict # Add parent directory to path for imports sys.path.insert(0, str(Path(__file__).parent.parent)) from loguru import logger from tools.code_rag_tools import get_qdrant_client def upsert_document(content: str, metadata: Dict) -> bool: """ Upsert document into Qdrant Args: content: Document content metadata: Document metadata (path, title, etc.) Returns: True if successful """ client = get_qdrant_client() if not client: return False try: # TODO: Implement actual document upsert logger.info(f"Upserting document: {metadata.get('path', 'unknown')}") return True except Exception as e: logger.error(f"Document upsert failed: {e}") return False

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/mjdevaccount/AIStack-MCP'

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