UNPKG

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

34 lines 1.95 kB
// get_charter_party_compliance_status // get_fleet_vessels_cii_rating // get_fleet_charter_party_compliance_status import { fetchQADetailsAndCreateResponse } from "../../utils/index.js"; export class ComplianceToolHandler { constructor() { } // async getCharterPartyComplianceStatus(args: { imo: string; session_id?: string }): Promise<ToolResponse> { // const { imo, session_id = "testing" } = args; // return fetchQADetailsAndCreateResponse( // imo, // 33, // "get_charter_party_compliance_status", // "charter party compliance status", // session_id, // config.vesselInfoDbName, // config.vesselInfoMongoUri // ); // } async getFleetVesselsCiiRating(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_vessels_cii_rating for the allowed properties."); } return fetchQADetailsAndCreateResponse(fleet_imo, 205, "get_fleet_vessels_cii_rating", "fleet vessels CII rating", process.env.QA_DB_NAME || process.env.qaDbName || "", process.env.QA_MONGO_URI || process.env.qaMongoUri || ""); } async getFleetCharterPartyComplianceStatus(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_charter_party_compliance_status for the allowed properties."); } return fetchQADetailsAndCreateResponse(fleet_imo, 233, "get_fleet_charter_party_compliance_status", "fleet charter party compliance status", process.env.QA_DB_NAME || process.env.qaDbName || "", process.env.QA_MONGO_URI || process.env.qaMongoUri || ""); } } //# sourceMappingURL=complianceTools.js.map