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
35 lines • 1.65 kB
JavaScript
// get_vessel_eta_cargo_activity
// get_voyage_details_from_shippalm
// get_fleet_eta_cargo_activity
import { fetchQADetailsAndCreateResponse } from "../../utils/index.js";
export class VoyageCargoToolHandler {
constructor() { }
// async getVesselEtaCargoActivity(args: { imo: string; session_id?: string }): Promise<ToolResponse> {
// const { imo, session_id = "testing" } = args;
// return fetchQADetailsAndCreateResponse(
// imo,
// 32,
// "get_vessel_eta_cargo_activity",
// "vessel ETA and cargo activity",
// session_id
// );
// }
// async getVoyageDetailsFromShippalm(args: { imo: string; session_id?: string }): Promise<ToolResponse> {
// const { imo, session_id = "testing" } = args;
// return fetchQADetailsAndCreateResponse(
// imo,
// 31,
// "get_voyage_details_from_shippalm",
// "voyage details from Shippalm",
// session_id
// );
// }
async getFleetEtaCargoActivity(args) {
const { fleet_imo } = args;
if (!fleet_imo) {
throw new Error("fleet_imo is required. Only the following property is allowed: fleet_imo. Please check the tool schema for get_fleet_eta_cargo_activity for the allowed properties.");
}
return fetchQADetailsAndCreateResponse(fleet_imo, 58, "get_fleet_eta_cargo_activity", "fleet ETA and cargo activity", process.env.QA_DB_NAME || process.env.qaDbName || "", process.env.QA_MONGO_URI || process.env.qaMongoUri || "");
}
}
//# sourceMappingURL=voyageCargoTools.js.map