mirror of
https://github.com/supabase/supabase.git
synced 2026-09-08 19:08:44 +08:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added new public MCP base URL environment variables for hosted and self-hosted setups. * Introduced reusable MDX components to render custom MCP configuration content. * **Documentation** * Updated the MCP guide to reference shared MCP server template values for examples. * Swapped the CI configuration example for a component-rendered snippet for consistency. * **Bug Fixes** * Improved self-hosted MCP base URL fallback so it prefers the new non-platform URL when no custom API URL is provided. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
17 lines
673 B
TypeScript
17 lines
673 B
TypeScript
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)} />
|
|
}
|