Skip to main content
Glama

Convex MCP server

Official
by get-convex
codeframe.ts616 B
import { codeFrameColumns } from "@babel/code-frame"; import { Node } from "ts-morph"; export function generateCodeframe(node: Node, message: string) { const sourceFile = node.getSourceFile(); const nodeStart = sourceFile.getLineAndColumnAtPos(node.getStart()); const nodeEnd = sourceFile.getLineAndColumnAtPos(node.getEnd()); return codeFrameColumns( sourceFile.getText(), { start: { line: nodeStart.line, column: nodeStart.column, }, end: { line: nodeEnd.line, column: nodeEnd.column, }, }, { highlightCode: true, message }, ); }

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