UNPKG

@inso_web/els-mcp

Version:

MCP-сервер поверх INSO Error Logs Service. Read-only tools (search, analytics, fingerprinting, correlations) для подключения Claude Desktop/Code и ChatGPT к логам ошибок. Streamable HTTP transport + stdio для npx-запуска.

24 lines 1.1 kB
import { Router } from 'express'; import type { Logger } from 'pino'; import type { ElsClient } from '../../elsClient.js'; import type { RedisService } from '../../cache/redis.js'; /** * Health endpoints: * - `GET /health` — INSO Uptime-совместимый формат: `{status, uptime, version, hostname}`. * Используется LK Uptime Service (health-monitor) для мониторинга, * парсит поле `version` (BUILD_VERSION из CI). * - `GET /healthz` — liveness (legacy alias). Всегда 200. * - `GET /readyz` — readiness. Проверяет upstream ELS И Redis. */ export interface CreateHealthOptions { elsClient?: ElsClient; redis?: RedisService; /** Дополнительные probe'ы (БД, etc.) — будут вызваны последовательно. */ probes?: Array<{ name: string; check: () => Promise<void>; }>; log?: Logger; } export declare function createHealthRouter(opts?: CreateHealthOptions): Router; //# sourceMappingURL=health.d.ts.map