Skip to main content
Glama

π“‚€π“’π“‹Ήπ”Έβ„•π•Œπ”Ήπ•€π•Šπ“‹Ήπ“’π“‚€ - Intelligent Guidance for

by Hive-Academy
prisma.service.tsβ€’787 B
import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common'; import { PrismaClient } from '../../generated/prisma'; import { PrismaBetterSQLite3 } from '@prisma/adapter-better-sqlite3'; @Injectable() export class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy { constructor() { // Use DATABASE_URL from environment (set by database-config.ts) // Fallback should align with Docker deployment pattern const databaseUrl = process.env.DATABASE_URL || 'file:./.anubis/workflow.db'; const adapter = new PrismaBetterSQLite3({ url: databaseUrl, }); super({ adapter, }); } async onModuleInit() { await this.$connect(); } async onModuleDestroy() { await this.$disconnect(); } }

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/Hive-Academy/Anubis-MCP'

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