Skip to main content
Glama

1313

by chatmcp
index.tsx932 B
"use client"; import "highlight.js/styles/atom-one-dark.min.css"; // Import a highlight.js style import "../markdown/markdown.css"; import MarkdownIt from "markdown-it"; import React from "react"; import hljs from "highlight.js"; export default function Markdown({ content }: { content: string }) { const md: MarkdownIt = new MarkdownIt({ highlight: function (str: string, lang: string) { if (lang && hljs.getLanguage(lang)) { try { return `<pre class="hljs"><code>${ hljs.highlight(str, { language: lang, ignoreIllegals: true }).value }</code></pre>`; } catch (_) {} } return `<pre class="hljs"><code>${md.utils.escapeHtml(str)}</code></pre>`; }, }); const renderedMarkdown = md.render(content); return ( <div className="max-w-full overflow-x-auto markdown" dangerouslySetInnerHTML={{ __html: renderedMarkdown }} /> ); }

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/chatmcp/mcpso'

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