Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m6s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m52s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m1s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
🏥 Server Maintenance / 🧹 Prune & Clean (push) Failing after 4s
17 lines
563 B
TypeScript
17 lines
563 B
TypeScript
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);
|
|
});
|