Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧹 Lint (push) Failing after 9s
Monorepo Pipeline / 🧪 Test (push) Failing after 9s
Monorepo Pipeline / 🏗️ Build (push) Failing after 8s
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
17 lines
565 B
TypeScript
17 lines
565 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);
|
|
});
|