Skip to main content
Glama
mdx-components.tsx1.02 kB
import defaultMdxComponents from "fumadocs-ui/mdx"; import type { MDXComponents } from "mdx/types"; import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock"; import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock"; import GithubCodeBlock from "./components/github-code-block"; import { XEmbedClient } from "./components/XEmbedClient"; import { Tab, Tabs } from "fumadocs-ui/components/tabs"; import { Step, Steps } from "fumadocs-ui/components/steps"; import CodeDisplay from "./components/code-display"; export function getMDXComponents(components?: MDXComponents): MDXComponents { return { ...defaultMdxComponents, pre: ({ ref: _ref, ...props }) => ( <CodeBlock {...props}> <Pre>{props.children}</Pre> </CodeBlock> ), DynamicCode: DynamicCodeBlock, Tab, Tabs, Step, Steps, XEmbed: XEmbedClient, GithubCodeBlock: GithubCodeBlock, CodeDisplay, ...components, }; } export const useMDXComponents = getMDXComponents;

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/metacode0602/open-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server