voyage-and-consumption-mcp-server
Version:
Voyage and consumption management server handling vessel position tracking, ETA monitoring, fuel consumption, lube oil consumption, fresh water production and weather data
31 lines (30 loc) • 1.06 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 voyageCargoToolHandler;
private lubricantOilToolHandler;
private freshWaterToolHandler;
private complianceToolHandler;
private vesselPositionToolHandler;
private universalToolHandler;
private mongodbToolsHandler;
constructor(server: Server);
/**
* Get company IMO numbers for validation
*/
getCompanyImos(): string[];
/**
* Validate IMO numbers against company IMO list
*/
private validateImoNumber;
/**
* 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>;
}