Skip to main content
Glama
Southclaws

Storyden

by Southclaws
mdx-components.tsx866 B
import { openapi } from "@/lib/openapi"; import { createAPIPage } from "fumadocs-openapi/ui"; import defaultComponents from "fumadocs-ui/mdx"; import type { MDXComponents } from "mdx/types"; import { Mermaid } from "@/components/Mermaid"; import type { MediaAdapter } from "fumadocs-openapi"; const mediaAdapters: Record<string, MediaAdapter> = { "text/plain": { encode(data) { return String(data.body ?? ""); }, generateExample(data, ctx) { const bodyStr = JSON.stringify(data.body ?? "", null, 2); if (ctx.lang === "js") { return `const body = ${bodyStr};`; } return bodyStr; }, }, }; const APIPage = createAPIPage(openapi, { playground: { enabled: false }, mediaAdapters, }); export function getMDXComponents(): MDXComponents { return { ...defaultComponents, APIPage, Mermaid, }; }

Latest Blog Posts

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/Southclaws/storyden'

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