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-запуска.

39 lines 1.32 kB
import { z } from 'zod'; import type { ElsClient } from '../elsClient.js'; import type { ToolResult } from '../types.js'; /** * Tool: error_histogram * Mapping: GET /analytics/histogram → analytics.routes.ts:241 * Upstream Zod: HistogramSchema (from + to required, + фасет-фильтры). * * Bucket size auto-selected by range (5m / 30m / 1h / 1d). */ export declare const errorHistogramInputShape: { from: z.ZodString; to: z.ZodString; level: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; serviceName: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; appVersion: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }; export declare const errorHistogramToolDef: { name: string; title: string; description: string; inputShape: { from: z.ZodString; to: z.ZodString; level: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; serviceName: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; appVersion: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }; }; type Args = { from: string; to: string; level?: string[]; serviceName?: string[]; appVersion?: string[]; }; export declare function handleErrorHistogram(args: Args, client: ElsClient): Promise<ToolResult>; export {}; //# sourceMappingURL=errorHistogram.d.ts.map