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
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("teams", teamId);
},
});
async function ensureTeamAdmin(ctx, user, teamId) {
// use `ctx.db` to check that `user` is a team admin and throw an error otherwise
}