UNPKG

elasticsearch-mcp

Version:

Secure MCP server for Elasticsearch integration with comprehensive tools and Elastic Cloud support

30 lines 830 B
import { ElasticsearchManager } from '../elasticsearch/client.js'; import { Logger } from '../logger.js'; export interface FetchIndicesArgs { pattern?: string; includeSystemIndices?: boolean; sortBy?: 'name' | 'size' | 'docs'; } export interface IndexInfo { name: string; health: string; status: string; docs: number; size: string; created: string; uuid: string; } export interface FetchIndicesResult { indices: IndexInfo[]; total: number; } export declare class FetchIndicestool { private elasticsearch; private logger; constructor(elasticsearch: ElasticsearchManager, logger: Logger); execute(args: unknown): Promise<FetchIndicesResult>; private getSortParameter; private formatDate; private filterIndices; } //# sourceMappingURL=fetch-indices.d.ts.map