UNPKG

purchase-mcp-server

Version:

Purchase and budget management server handling requisitions, purchase orders, expenses, budgets, and vendor management with ERP access for data extraction

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!');