Skip to main content
Glama
http.ts752 B
import { httpRouter } from "convex/server"; import { httpAction, internalQuery } from "./_generated/server.js"; import { internal } from "./_generated/api.js"; const http = httpRouter(); http.route({ path: "/index.html", method: "GET", handler: httpAction(async (ctx) => { const docs = await ctx.runQuery(internal.http.loadDebug, {}); const content = docs.map((doc) => JSON.stringify(doc, null, 2)).join("\n"); return new Response(`<html><body><pre>${content}</pre></body></html>`, { headers: { "Content-Type": "text/html", }, }); }), }); export const loadDebug = internalQuery({ args: {}, handler: async (ctx) => { return await ctx.db.query("rateLimits").collect(); }, }); export default http;

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/get-convex/convex-backend'

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