Skip to main content
Glama
test-server.ts501 B
import { Express } from 'express'; import request from 'supertest'; import { Database } from '../../database.js'; import { createServer } from '../../server.js'; export class TestServer { private app: Express; private db: Database; constructor() { // Use in-memory SQLite for tests this.db = new Database(':memory:'); this.app = createServer(this.db, { skipAuth: true }); } get request() { return request(this.app); } async close() { await this.db.close(); } }

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/zjromani/garmin-mcp'

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