Skip to main content
Glama

Convex MCP server

Official
by get-convex
user.ts396 B
import { getAuthUserId } from "@convex-dev/auth/server"; import { Doc } from "./_generated/dataModel"; import { query } from "./_generated/server"; export const getCurrent = query({ handler: async (ctx): Promise<Doc<"users"> | null> => { const userId = await getAuthUserId(ctx); if (!userId) { throw new Error("Unauthorized"); } return await ctx.db.get(userId); }, });

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