Skip to main content
Glama

Convex MCP server

Official
by get-convex
users.ts759 B
import { s, streamQuery } from "./schema"; const t = s.table("users", async (ctx, _id) => { const normalizedId = ctx.db.normalizeId("users", _id); if (normalizedId === null) { return null; } const user = await ctx.db.get(normalizedId); if (user === null) { return null; } return { ...user, name: user.email ?? user.name ?? "Unknown" }; }); export const get = t.get; export const by_id = t.index( "by_id", async function* (ctx, { key, inclusive, direction }) { const stream = streamQuery(ctx, { table: "users", index: "by_id", startIndexKey: key as any[], startInclusive: inclusive, order: direction, }); for await (const [user, _indexKey] of stream) { yield user._id; } }, );

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