Skip to main content
Glama
cli.js526 B
#!/usr/bin/env node import { join, dirname } from "path"; import { fileURLToPath } from "url"; import handler from "serve-handler"; import http from "http"; const __dirname = dirname(fileURLToPath(import.meta.url)); const distPath = join(__dirname, "../dist"); const server = http.createServer((request, response) => { return handler(request, response, { public: distPath, rewrites: [{ source: "/**", destination: "/index.html" }], }); }); const port = process.env.PORT || 5173; server.listen(port, () => {});

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/samihalawa/advanced-tts-mcp'

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