Skip to main content
Glama
Tiago-Alves-Dev

MCP Server TypeORM

cli.js783 B
#!/usr/bin/env node import { fileURLToPath } from "url"; import { dirname, join } from "path"; import { spawn } from "child_process"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const serverPath = join(__dirname, "..", "index.js"); console.log("Iniciando servidor MCP TabNews..."); const serverProcess = spawn("node", [serverPath], { stdio: "inherit", }); serverProcess.on("error", (error) => { console.error("Erro ao iniciar o servidor:", error); process.exit(1); }); process.on("SIGINT", () => { console.log("\nEncerrando servidor..."); serverProcess.kill(); process.exit(); }); process.on("SIGTERM", () => { console.log("\nEncerrando servidor..."); serverProcess.kill(); process.exit(); });

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/Tiago-Alves-Dev/mcp-server-db'

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