Skip to main content
Glama
healthcheck.js•612 B
const http = require('http'); const options = { hostname: 'localhost', port: process.env.PORT || 3000, path: '/api/health', method: 'GET', timeout: 2000 }; const req = http.request(options, (res) => { if (res.statusCode === 200) { process.exit(0); } else { console.error(`Health check failed with status code: ${res.statusCode}`); process.exit(1); } }); req.on('error', (err) => { console.error(`Health check failed: ${err.message}`); process.exit(1); }); req.on('timeout', () => { console.error('Health check timed out'); req.destroy(); process.exit(1); }); req.end();

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/pythondev-pro/egw_writings_mcp_server'

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