UNPKG

mcp-cisco-support

Version:

MCP server for Cisco Support APIs including Bug Search and future tools

35 lines 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnhancedAnalysisApi = void 0; const bug_api_js_1 = require("./bug-api.js"); /** * Enhanced Analysis API - provides only the advanced analysis tools from Bug API * This is a filtered view of Bug API tools focused on comprehensive analysis */ class EnhancedAnalysisApi extends bug_api_js_1.BugApi { apiName = 'Enhanced Analysis'; getTools() { // Get all tools from BugApi and filter to only enhanced analysis tools const allBugTools = super.getTools(); const enhancedAnalysisToolNames = [ 'smart_search_strategy', 'progressive_bug_search', 'multi_severity_search', 'comprehensive_analysis', 'compare_software_versions', 'product_name_resolver' ]; return allBugTools.filter(tool => enhancedAnalysisToolNames.includes(tool.name)); } async executeTool(name, args, meta) { // Validate that the tool is allowed in enhanced analysis mode const allowedTools = this.getTools().map(tool => tool.name); if (!allowedTools.includes(name)) { throw new Error(`Tool ${name} is not available in Enhanced Analysis mode. Available tools: ${allowedTools.join(', ')}`); } // Delegate to parent BugApi implementation return await super.executeTool(name, args, meta); } } exports.EnhancedAnalysisApi = EnhancedAnalysisApi; //# sourceMappingURL=enhanced-analysis-api.js.map