UNPKG

pms-analysis-reports-mcp-server

Version:

PMS analysis reports server handling maintenance reports, equipment analysis, compliance tracking, and performance metrics with ERP access for data extraction

23 lines (18 loc) 585 B
#!/usr/bin/env node import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; // Get the directory of this script const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const rootDir = dirname(__dirname); const mainScript = join(rootDir, 'dist', 'index.js'); // Pass all arguments to the main script const args = process.argv.slice(2); const child = spawn('node', [mainScript, ...args], { stdio: 'inherit', cwd: rootDir }); child.on('exit', (code) => { process.exit(code); });