Skip to main content
Glama
global-setup.ts593 B
import { execSync } from 'node:child_process'; import chalk from 'chalk'; import wtf from 'wtfnode'; import '../../src/init-env'; // helps track processes that are left open / hanging wtf.init(); console.log(chalk.magentaBright('>>> global test env - setup <<<')); // locally we can assume the test db exists already because it's part of our docker compose setup // on CI, we may need to do something else to create it console.log('> Migrating test db'); execSync('pnpm run db:reset'); console.log('> Test db ready'); console.log(chalk.magentaBright('>>> global test env - ready <<<'));

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/systeminit/si'

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