We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kcaitech/vextra-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { Request, Response } from "express";
import { getRedisManager } from "@/providers/redis";
export async function healthHandler(req: Request, res: Response) {
try {
const redisManager = getRedisManager();
try {
await redisManager.ping();
} catch (error) {
console.error('Redis connection failed:', error);
res.status(500).json({status: 'unhealthy'});
return;
}
res.status(200).json({status: 'healthy'});
} catch (error) {
console.error('Health check failed:', error);
res.status(500).json({
status: 'unhealthy',
error: error instanceof Error ? error.message : 'Unknown error'
});
}
}