@logspace/mcp-server
Version:
MCP server for Logspace log analysis integration with AI models.
24 lines • 953 B
TypeScript
import { z } from 'zod';
import { LogDataResponse } from '../types/logs.types.js';
export interface ToolResponse {
content: Array<{
type: 'text';
text: string;
}>;
isError?: boolean;
}
export declare abstract class BaseTool<TArgs> {
protected abstract toolName: string;
protected abstract schema: z.ZodType<TArgs>;
private static requestCache;
execute(args: TArgs): Promise<ToolResponse>;
protected abstract processArgs(args: TArgs): Promise<any>;
protected fetchLogData(bugId: number | string): Promise<LogDataResponse>;
protected getLogParser(): import("../services/logParser.js").LogParser;
protected formatTimestamp(timestamp: number): string;
protected formatDuration(duration: number): string;
protected formatSuccess(data: any): ToolResponse;
protected formatError(error: unknown): ToolResponse;
static clearRequestCache(): void;
}
//# sourceMappingURL=baseTool.d.ts.map