Skip to main content
Glama
HealthCheck.test.ts754 B
import request from 'supertest'; import app from '../index'; describe('Health Check Endpoint', () => { // Increase timeout for these tests jest.setTimeout(30000); it('should return health status', async () => { const response = await request(app).get('/health'); expect(response.status).toBe(200); expect(response.body).toHaveProperty('status', 'healthy'); expect(response.body).toHaveProperty('version'); expect(response.body).toHaveProperty('timestamp'); }); it('should return version info', async () => { const response = await request(app).get('/version'); expect(response.status).toBe(200); expect(response.body).toHaveProperty('version'); expect(response.body).toHaveProperty('timestamp'); }); });

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/Nom-nom-hub/fullstack-mcp'

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