feat(mcps): migrate gitea and memory MCPs to SSE transport on pm2

This commit is contained in:
2026-03-04 10:05:08 +01:00
parent ddf896e3f9
commit ee3d7714c2
8 changed files with 123 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
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({ path: resolve(__dirname, '../../../.env.local') });
// Fallback to .env (contains defaults)
config({ 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);
});