Skip to main content
Glama

Convex MCP server

Official
by get-convex
logout.ts771 B
import { Command } from "@commander-js/extra-typings"; import { oneoffContext } from "../bundler/context.js"; import { logFinishedStep } from "../bundler/log.js"; import { recursivelyDelete } from "./lib/fsUtils.js"; import { globalConfigPath } from "./lib/utils/globalConfig.js"; export const logout = new Command("logout") .description("Log out of Convex on this machine") .allowExcessArguments(false) .action(async () => { const ctx = await oneoffContext({ url: undefined, adminKey: undefined, envFile: undefined, }); if (ctx.fs.exists(globalConfigPath())) { recursivelyDelete(ctx, globalConfigPath()); } logFinishedStep( "You have been logged out of Convex.\n Run `npx convex dev` to log in.", ); });

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