Skip to main content
Glama
index.ts821 B
#!/usr/bin/env node import { MacuseProxyServer } from "./server/proxy-server.js"; async function main() { // Start the proxy server const server = new MacuseProxyServer(); // 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) { console.error(`Failed to start server: ${error}\n`); process.exit(1); } } // Handle uncaught exceptions process.on("uncaughtException", (error) => { console.error(`Uncaught Exception: ${error}\n`); process.exit(1); }); process.on("unhandledRejection", (reason, _promise) => { console.error(`Unhandled Rejection: ${reason}\n`); process.exit(1); }); 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/macuse-app/macuse'

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