pms-analysis-reports-mcp-server
Version:
PMS analysis reports server handling maintenance reports, equipment analysis, compliance tracking, and performance metrics with ERP access for data extraction
36 lines (35 loc) • 1.2 kB
TypeScript
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { ToolArguments, ToolResponse } from "../types/index.js";
/**
* Main tool handler that coordinates different categories of tools
*/
export declare class ToolHandler {
private exportToolHandler;
private fuelAnalysisToolHandler;
private lubeOilToolHandler;
private performanceToolHandler;
private maintenanceToolHandler;
private pmsToolHandler;
private mongodbToolsHandler;
private universalToolsHandler;
constructor(server: Server);
/**
* Get company IMO numbers for validation
*/
getCompanyImos(): Promise<string[]>;
/**
* Validate IMO numbers against company IMO list
*/
private validateImoNumber;
/**
* Type-safe casting and validation of tool arguments
*/
private processToolArguments;
/**
* Handles tool calls by routing them to appropriate specialized handlers
* @param name - The name of the tool to call
* @param arguments_ - The arguments for the tool
* @returns Promise resolving to the tool response
*/
handleCallTool(name: string, arguments_: ToolArguments): Promise<ToolResponse>;
}