Skip to main content
Glama
route.ts675 B
export const runtime = "nodejs"; export const dynamic = "force-dynamic"; import fs from "fs"; import path from "path"; export async function GET() { try { const projectRoot = path.resolve(process.cwd(), ".."); const p = path.join(projectRoot, "docs", "ai-presets", "templates.json"); const text = fs.readFileSync(p, "utf8"); const json = JSON.parse(text); return new Response(JSON.stringify(json), { headers: { "Content-Type": "application/json" }, }); } catch (e: any) { return new Response(JSON.stringify({ error: e?.message || String(e) }), { status: 500, headers: { "Content-Type": "application/json" }, }); } }

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/tndfame/mcp_management'

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