Skip to main content
Glama
setup.ts694 B
// Jest setup file import { existsSync, unlinkSync } from 'fs'; // Clean up test databases after each test afterEach(() => { const testDbFiles = ['./test-memory.db', './test-memory.db-wal', './test-memory.db-shm']; testDbFiles.forEach(file => { if (existsSync(file)) { unlinkSync(file); } }); // Clean up any test databases with timestamps const fs = require('fs'); const files = fs.readdirSync('.'); files.filter((f: string) => f.startsWith('test-') && f.endsWith('.db')).forEach((f: string) => { try { fs.unlinkSync(f); fs.unlinkSync(f + '-wal'); fs.unlinkSync(f + '-shm'); } catch (e) { // Ignore cleanup errors } }); });

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/dlasky/mcp-memory-vec'

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