UNPKG

@spaik/mcp-server-roi

Version:

MCP server for AI ROI prediction and tracking with Monte Carlo simulations

78 lines 2 kB
/** * Help Mode Service for Interactive LLM Assistance * * Provides context-aware help, tool recommendations, and troubleshooting * for optimal LLM interaction with the MCP Server ROI tools. */ import { ToolExample } from '../utils/tool-examples.js'; export interface HelpQuery { query: string; context?: { previousTool?: string; previousError?: string; userIntent?: string; }; } export interface HelpResponse { recommendedTool: { name: string; confidence: number; reasoning: string; }; examples: ToolExample[]; usage: { quickStart: string; detailedSteps: string[]; commonMistakes: string[]; }; troubleshooting?: { issue: string; solution: string; preventionTips: string[]; }; alternativeApproaches?: { tool: string; whenToUse: string; }[]; nextSteps: string[]; } export declare class HelpModeService { /** * Analyze a query and recommend the best tool */ getToolRecommendation(query: HelpQuery): Promise<HelpResponse>; /** * Analyze query intent to determine the best tool */ private analyzeQueryIntent; /** * Generate reasoning for tool selection */ private generateReasoning; /** * Get relevant examples for the recommended tool */ private getRelevantExamples; /** * Generate usage guidance for a tool */ private generateUsageGuidance; /** * Generate troubleshooting guidance */ private generateTroubleshooting; /** * Suggest alternative approaches */ private suggestAlternatives; /** * Generate next steps based on the tool and context */ private generateNextSteps; /** * Format help response for LLM consumption */ formatHelpResponse(response: HelpResponse): string; } export declare const helpModeService: HelpModeService; //# sourceMappingURL=help-mode.d.ts.map