Skip to main content
Glama

mcptix

by ownlytics
server.test.ts942 B
import { ApiServer } from '../server'; import { initTestDatabase, cleanupTestDatabase } from './test-utils'; describe('API Server', () => { let db: any; let ticketQueries: any; let apiServer: ApiServer; beforeAll(() => { const testEnv = initTestDatabase(); db = testEnv.db; ticketQueries = testEnv.ticketQueries; }); afterAll(() => { cleanupTestDatabase(db); }); test('should initialize correctly', () => { apiServer = new ApiServer(ticketQueries); expect(apiServer).toBeDefined(); expect(apiServer.getApp()).toBeDefined(); expect(apiServer.isRunning()).toBe(false); }); test('should start and stop the server', async () => { apiServer = new ApiServer(ticketQueries); // Start the server await apiServer.start(3001); expect(apiServer.isRunning()).toBe(true); // Stop the server await apiServer.stop(); expect(apiServer.isRunning()).toBe(false); }); });

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/ownlytics/mcptix'

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