Skip to main content
Glama
server.js755 B
#!/usr/bin/env node import dotenv from 'dotenv'; import TaskMasterMCPServer from './src/index.js'; import logger from './src/logger.js'; // Load environment variables dotenv.config(); // Set MCP mode to silence tm-core console output process.env.TASK_MASTER_MCP = 'true'; /** * Start the MCP server */ async function startServer() { const server = new TaskMasterMCPServer(); // Handle graceful shutdown process.on('SIGINT', async () => { await server.stop(); process.exit(0); }); process.on('SIGTERM', async () => { await server.stop(); process.exit(0); }); try { await server.start(); } catch (error) { logger.error(`Failed to start MCP server: ${error.message}`); process.exit(1); } } // Start the server startServer();

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/eyaltoledano/claude-task-master'

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