@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-запуска.
16 lines • 873 B
TypeScript
import type { IncomingMessage, ServerResponse } from 'node:http';
import { type ReadinessDeps } from '../../observability/health.js';
/**
* Lightweight HTTP handlers для Express-like транспорта.
*
* Каждый handler — `(req, res) => Promise<void>` (совместимо с Node http
* и Express `(req, res, next?)`). Используются так:
*
* app.get('/els/metrics', metricsHandler);
* app.get('/els/healthz', healthzHandler);
* app.get('/els/readyz', readyzHandler(deps));
*/
export declare function metricsHandler(_req: IncomingMessage, res: ServerResponse): Promise<void>;
export declare function healthzHandler(_req: IncomingMessage, res: ServerResponse): void;
export declare function readyzHandler(deps: ReadinessDeps): (_req: IncomingMessage, res: ServerResponse) => Promise<void>;
//# sourceMappingURL=metrics.d.ts.map