Skip to main content
Glama
startup (1).js2.99 kB
// MCP SYSTEM STARTUP // Ensures all core agents and monitoring systems start automatically // Run this on Windows startup import autoHandoff from './auto-handoff.js'; import { configManager } from './src/config-manager.js'; console.log('═══════════════════════════════════════════════'); console.log(' 🚀 MCP AGENT SYSTEM - STARTING UP'); console.log('═══════════════════════════════════════════════\n'); async function startup() { try { // Step 1: Load configuration console.log('📋 Loading configuration...'); const config = await configManager.initialize(); console.log(' ✅ Configuration loaded\n'); // Step 2: Start auto-handoff monitoring console.log('🔄 Starting conversation continuity monitoring...'); autoHandoff.start(); console.log(' ✅ Auto-handoff system active\n'); // Step 3: Display system status console.log('═══════════════════════════════════════════════'); console.log(' ✅ MCP SYSTEM READY'); console.log('═══════════════════════════════════════════════\n'); console.log('📊 ACTIVE SYSTEMS:'); console.log(' • Configuration Manager'); console.log(' • Auto-Handoff System (Token monitoring)'); console.log(' • Action Logger'); console.log(' • All Core Agents Ready\n'); console.log('📁 KEY LOCATIONS:'); console.log(` • Root: ${config.paths.root}`); console.log(` • Agents: ${config.paths.agents.core}`); console.log(` • Handoffs: ${config.paths.root}\\handoffs`); console.log(` • Logs: ${config.paths.logs.system}\n`); console.log('💡 HANDOFF SYSTEM:'); console.log(' • Monitors token usage continuously'); console.log(' • Creates handoff at conversation end'); console.log(' • Ensures continuity between conversations\n'); console.log('═══════════════════════════════════════════════\n'); console.log('System will continue running in background...'); console.log('Press Ctrl+C to stop\n'); } catch (error) { console.error('❌ Startup failed:', error); process.exit(1); } } // Start the system startup(); // Keep process alive process.on('SIGINT', () => { console.log('\n\n🛑 Shutting down MCP System...'); autoHandoff.stop(); console.log('✅ Goodbye!\n'); process.exit(0); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bermingham85/mcp-puppet-pipeline'

If you have feedback or need assistance with the MCP directory API, please join our Discord server