Skip to main content
Glama

Convex MCP server

Official
by get-convex
CodeBlock.tsx1.66 kB
import { LanguageSelector, convertFilePath } from "@site/src/LanguageSelector"; import CodeBlock from "@theme-original/CodeBlock"; import React, { ReactNode } from "react"; import { useSelectedDialect } from "../Root"; export default function CodeBlockWrapper({ metastring, showLanguageSelector, title: titleProp, ...props }: { className?: string; metastring?: string; originalType?: string; showLanguageSelector?: boolean; title?: ReactNode; children?: ReactNode; }) { const [_, language] = props.className?.match(/language-(\w+)/) ?? []; const title = parseCodeBlockTitle(metastring) ?? titleProp; const shouldShowLanguageSelector = showLanguageSelector === true || (showLanguageSelector !== false && title !== undefined && title !== null && !shouldNotVary(metastring) && (language === "tsx" || language === "ts")); const selectedDialect = useSelectedDialect(); return ( <CodeBlock title={ (shouldShowLanguageSelector ? ( <div className="codeblock-header"> <div> {typeof title === "string" ? convertFilePath(title, selectedDialect) : title} </div> <LanguageSelector /> </div> ) : ( title )) as unknown as string } {...props} /> ); } export function parseCodeBlockTitle(metastring?: string) { return metastring?.match(codeBlockTitleRegex)?.groups!.title; } export function shouldNotVary(metastring?: string) { return metastring?.includes("noDialect"); } const codeBlockTitleRegex = /title=(?<quote>["'])(?<title>.*?)\1/;

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