Skip to main content
Glama

Unleash MCP (Feature Toggle)

index.ts890 B
#!/usr/bin/env node import { config } from './config.js'; import { createMcpServer } from './server.js'; import { startStdioTransport } from './transport/stdio.js'; import { startHttpTransport } from './transport/http.js'; import { logger } from './logger.js'; /** * Start the Unleash MCP Server */ async function main() { try { // Create MCP server const server = createMcpServer(); // Start with appropriate transport if (config.transport === 'http') { await startHttpTransport(server); } else { await startStdioTransport(server); } logger.log('Unleash MCP Server started successfully'); // Handle graceful shutdown process.on('SIGINT', () => { process.exit(0); }); process.on('SIGTERM', () => { process.exit(0); }); } catch (error) { process.exit(1); } } // Run the server main();

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/cuongtl1992/unleash-mcp'

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