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

18 lines (15 loc) 496 B
import { existsSync, mkdirSync } from 'fs'; import { join } from 'path'; import { fileURLToPath } from 'url'; import { dirname } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Create necessary directories const dirs = ['logs', 'data']; dirs.forEach(dir => { const dirPath = join(__dirname, dir); if (!existsSync(dirPath)) { mkdirSync(dirPath, { recursive: true }); } }); console.log('Installation completed successfully!');