Skip to main content
Glama

Convex MCP server

Official
by get-convex
update.ts1.08 kB
import chalk from "chalk"; import { Command } from "@commander-js/extra-typings"; import { oneoffContext } from "../bundler/context.js"; import { logMessage } from "../bundler/log.js"; import { loadPackageJson } from "./lib/utils/utils.js"; export const update = new Command("update") .description("Print instructions for updating the convex package") .allowExcessArguments(false) .action(async () => { const ctx = await oneoffContext({ url: undefined, adminKey: undefined, envFile: undefined, }); let updateInstructions = "npm install convex@latest\n"; const packages = await loadPackageJson(ctx); const oldPackageNames = Object.keys(packages).filter((name) => name.startsWith("@convex-dev"), ); for (const pkg of oldPackageNames) { updateInstructions += `npm uninstall ${pkg}\n`; } logMessage( chalk.green( `To view the Convex changelog, go to https://news.convex.dev/tag/releases/\nWhen you are ready to upgrade, run the following commands:\n${updateInstructions}`, ), ); });

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