Skip to main content
Glama

MCP Todoist

by kentaroh7777
start.ts772 B
import { MCPServer } from './index' import * as dotenv from 'dotenv' import * as path from 'path' // Load .env.local from project root dotenv.config({ path: path.join(__dirname, '../../../.env.local') }) const server = new MCPServer(process.env.TODOIST_API_TOKEN) const PORT = process.env.MCP_SERVER_PORT || 4000 server.getApp().listen(PORT, () => { console.log(`🚀 MCP Server running on http://localhost:${PORT}`) console.log(`📡 API Endpoint: http://localhost:${PORT}/mcp`) }) // Graceful shutdown process.on('SIGTERM', async () => { console.log('📤 Shutting down MCP Server...') await server.close() process.exit(0) }) process.on('SIGINT', async () => { console.log('📤 Shutting down MCP Server...') await server.close() process.exit(0) })

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/kentaroh7777/mcp-todoist'

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