Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

673 B
Raw Blame
import { CodeBlock } from '~/features/ui/CodeBlock/CodeBlock'
import { getCustomContent } from '~/lib/custom-content/getCustomContent'

import { buildMcpCiConfig } from './McpCiConfigBlock.utils'

/**
 * Renders the example CI MCP server configuration with the remote MCP server
 * URL pulled from `custom-content.json` (`mcp:servers`). Fenced code blocks in
 * MDX render verbatim, so a dynamic value has to be injected via a component.
 */
export function McpCiConfigBlock() {
  const { mcpServers } = getCustomContent(['mcp:servers'])
  const config = buildMcpCiConfig(mcpServers?.remote)

  return <CodeBlock lang="json" contents={JSON.stringify(config, null, 2)} />
}