import { config } from "dotenv"; import { resolve } from "path"; import { fileURLToPath } from "url"; const __dirname = fileURLToPath(new URL(".", import.meta.url)); // Try to load .env.local first (contains credentials usually) config({ quiet: true, path: resolve(__dirname, "../../../.env.local") }); // Fallback to .env (contains defaults) config({ quiet: true, path: resolve(__dirname, "../../../.env") }); // Now boot the compiled MCP index import("./index.js").catch((err) => { console.error("Failed to start MCP Server:", err); process.exit(1); });