Skip to main content
Glama

Convex MCP server

Official
by get-convex
bestPracticesHelpersTeamsJS.js525 B
import { mutation } from "./_generated/server"; import { v } from "convex/values"; import { getCurrentUser } from "./userHelpers"; export const remove = mutation({ args: { teamId: v.id("teams") }, handler: async (ctx, { teamId }) => { const currentUser = await getCurrentUser(ctx); await ensureTeamAdmin(ctx, currentUser, teamId); await ctx.db.delete(teamId); }, }); async function ensureTeamAdmin(ctx, user, teamId) { // use `ctx.db` to check that `user` is a team admin and throw an error otherwise }

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