mcp-server-logzio
Version:
Model Context Protocol server for Logz.io log management platform
66 lines • 1.73 kB
TypeScript
import { z } from 'zod';
import type { LogzioApiClient } from '../api/client.js';
/**
* Query logs tool parameter schema
*/
export declare const QueryLogsParamsSchema: z.ZodObject<{
luceneQuery: z.ZodString;
from: z.ZodOptional<z.ZodString>;
to: z.ZodOptional<z.ZodString>;
size: z.ZodDefault<z.ZodNumber>;
sort: z.ZodDefault<z.ZodEnum<{
asc: "asc";
desc: "desc";
}>>;
}, z.core.$strip>;
export type QueryLogsParams = z.infer<typeof QueryLogsParamsSchema>;
/**
* Query logs tool implementation
*/
export declare function queryLogs(client: LogzioApiClient, params: QueryLogsParams): Promise<{
content: Array<{
type: 'text';
text: string;
}>;
}>;
/**
* MCP tool definition for query logs
*/
export declare const queryLogsTool: {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
luceneQuery: {
type: string;
description: string;
};
from: {
type: string;
format: string;
description: string;
};
to: {
type: string;
format: string;
description: string;
};
size: {
type: string;
minimum: number;
maximum: number;
default: number;
description: string;
};
sort: {
type: string;
enum: string[];
default: string;
description: string;
};
};
required: string[];
};
};
//# sourceMappingURL=query.d.ts.map