Skip to main content
Glama

Convex MCP server

Official
by get-convex
writingDataReplace.ts451 B
import { mutation } from "./_generated/server"; import { v } from "convex/values"; export const replaceTask = mutation({ args: { id: v.id("tasks") }, handler: async (ctx, args) => { const { id } = args; console.log(await ctx.db.get(id)); // { text: "foo", _id: ... } // Replace the whole document await ctx.db.replace(id, { invalid: true }); console.log(await ctx.db.get(id)); // { invalid: true, _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