@logspace/mcp-server
Version:
MCP server for Logspace log analysis integration with AI models.
58 lines • 1.83 kB
TypeScript
/**
* Investigation Strategies for LogSpace MCP
* Implements multiple approaches from targeted to comprehensive fallback
*/
export interface InvestigationResult {
strategy: 'targeted' | 'comprehensive' | 'fallback';
success: boolean;
issuesFound: number;
data: any;
tokenEstimate: number;
executionTime: number;
}
/**
* Strategy 1: Targeted Investigation (Most Efficient)
* Only fetches specific data based on quick pattern detection
*/
export declare function targetedInvestigation(bugId: number): Promise<InvestigationResult>;
/**
* Strategy 2: Comprehensive Investigation (Medium Efficiency)
* Fetches all major data types but with reasonable limits
*/
export declare function comprehensiveInvestigation(bugId: number): Promise<InvestigationResult>;
/**
* Strategy 3: Full Fallback Investigation (Highest Coverage)
* Fetches everything available - use when other strategies fail
*/
export declare function fallbackInvestigation(bugId: number): Promise<InvestigationResult>;
/**
* Smart Investigation Orchestrator
* Tries strategies in order: targeted -> comprehensive -> fallback
*/
export declare function smartInvestigationWithFallback(bugId: number): Promise<{
finalResult: InvestigationResult;
strategiesAttempted: string[];
totalExecutionTime: number;
recommendedApproach: string;
}>;
/**
* Configuration for different investigation modes
*/
export declare const INVESTIGATION_CONFIGS: {
fast: {
strategy: string;
maxTokens: number;
timeoutSeconds: number;
};
balanced: {
strategy: string;
maxTokens: number;
timeoutSeconds: number;
};
thorough: {
strategy: string;
maxTokens: number;
timeoutSeconds: number;
};
};
//# sourceMappingURL=investigationStrategies.d.ts.map