UNPKG

mcp-server-logzio

Version:

Model Context Protocol server for Logz.io log management platform

90 lines 2.38 kB
import { z } from 'zod'; import type { LogzioApiClient } from '../api/client.js'; /** * Search logs tool parameter schema */ export declare const SearchLogsParamsSchema: z.ZodObject<{ query: z.ZodString; timeRange: z.ZodOptional<z.ZodString>; from: z.ZodOptional<z.ZodString>; to: z.ZodOptional<z.ZodString>; logType: z.ZodOptional<z.ZodString>; severity: z.ZodOptional<z.ZodEnum<{ error: "error"; fatal: "fatal"; warn: "warn"; info: "info"; debug: "debug"; trace: "trace"; }>>; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<{ asc: "asc"; desc: "desc"; }>>; }, z.core.$strip>; export type SearchLogsParams = z.infer<typeof SearchLogsParamsSchema>; /** * Search logs tool implementation */ export declare function searchLogs(client: LogzioApiClient, params: SearchLogsParams): Promise<{ content: Array<{ type: 'text'; text: string; }>; }>; /** * MCP tool definition for search logs */ export declare const searchLogsTool: { name: string; description: string; inputSchema: { type: string; properties: { query: { type: string; description: string; }; timeRange: { type: string; enum: string[]; description: string; }; from: { type: string; format: string; description: string; }; to: { type: string; format: string; description: string; }; logType: { type: string; description: string; }; severity: { type: string; enum: string[]; description: string; }; limit: { type: string; minimum: number; maximum: number; default: number; description: string; }; sort: { type: string; enum: string[]; default: string; description: string; }; }; required: string[]; }; }; //# sourceMappingURL=search.d.ts.map