Skip to main content
Glama
LarouTech

MCP Server TypeScript Boilerplate

by LarouTech
index.ts754 B
import { MCPServer } from "./server/MCPServer"; import { config } from "./config/config"; import { logger } from "./utils/logger"; async function main() { try { const server = new MCPServer(config); await server.start(); logger.info("MCP Server started successfully"); } catch (error) { logger.error("Failed to start MCP Server:", error); process.exit(1); } } // Handle graceful shutdown process.on("SIGINT", async () => { logger.info("Received SIGINT, shutting down gracefully..."); process.exit(0); }); process.on("SIGTERM", async () => { logger.info("Received SIGTERM, shutting down gracefully..."); process.exit(0); }); main().catch((error) => { logger.error("Unhandled error:", error); process.exit(1); });

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/LarouTech/mcp-server-boilerplate'

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