Skip to main content
Glama

VPS Initialize

by oxy-Op
index.ts1.1 kB
#!/usr/bin/env node import { MCPVPSServer } from './services/mcp-server.js'; import { logger } from './utils/logger.js'; async function main(): Promise<void> { try { const server = new MCPVPSServer(); // Handle graceful shutdown process.on('SIGINT', async () => { logger.info('Received SIGINT, shutting down gracefully...'); await server.stop(); process.exit(0); }); process.on('SIGTERM', async () => { logger.info('Received SIGTERM, shutting down gracefully...'); await server.stop(); process.exit(0); }); // Start the server await server.start(); } catch (error) { logger.error('Failed to start MCP VPS Initialize server', { error: error instanceof Error ? error.message : 'Unknown error', }); process.exit(1); } } // Only run if this file is being executed directly if (import.meta.url === `file://${process.argv[1]}`) { main().catch(error => { logger.error('Unhandled error in main', { error: error instanceof Error ? error.message : 'Unknown error', }); process.exit(1); }); }

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/oxy-Op/DevPilot'

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