Skip to main content
Glama
init_db.py630 B
"""Initialize SQLite database schema.""" import asyncio import os import sys from pathlib import Path # Add parent directory to path sys.path.insert(0, str(Path(__file__).parent.parent)) from personal_rag_mcp.storage.sqlite_store import SQLiteStore async def init_database(): """Initialize the database with schema.""" sqlite_path = os.getenv("SQLITE_PATH", "/app/data/documents.db") print(f"Initializing database at: {sqlite_path}") store = SQLiteStore(sqlite_path) await store.initialize() print("Database initialized successfully!") if __name__ == "__main__": asyncio.run(init_database())

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/timerickson/personal-rag-mcp'

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