Skip to main content
Glama

Captain Data MCP API

health.ts1.48 kB
// Schema for health check endpoint export const healthSchema = { operationId: 'getHealth', tags: ['Health'], summary: 'Health check', description: 'Check if the API is running', response: { 200: { type: 'object', properties: { status: { type: 'string', example: 'healthy' }, timestamp: { type: 'string', format: 'date-time' }, uptime: { type: 'number', description: 'Server uptime in seconds' }, redis: { type: 'object', properties: { available: { type: 'boolean', description: 'Whether Redis is available' }, connected: { type: 'boolean', description: 'Whether Redis is connected' }, healthy: { type: 'boolean', description: 'Whether Redis is healthy' }, connectionAttempts: { type: 'number', description: 'Number of connection attempts' }, ping: { type: ['string', 'null'], description: 'Redis ping response' } } }, _metadata: { type: 'object', properties: { requestId: { type: 'string' }, executionTime: { type: 'number' } } } } }, 500: { type: 'object', properties: { status: { type: 'string', example: 'unhealthy' }, error: { type: 'string' }, requestId: { type: 'string' }, timestamp: { type: 'string', format: 'date-time' }, executionTime: { type: 'number' } } } } };

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/captaindatatech/captaindata-mcp'

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