mirror of
https://github.com/supabase/supabase.git
synced 2026-09-06 09:59:03 +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>
10 lines
374 B
TypeScript
10 lines
374 B
TypeScript
import { buildMcpCiConfig } from '~/components/McpCiConfigBlock.utils'
|
|
import { getCustomContent } from '~/lib/custom-content/getCustomContent'
|
|
|
|
export const McpCiConfigBlock = (): string => {
|
|
const { mcpServers } = getCustomContent(['mcp:servers'])
|
|
const config = buildMcpCiConfig(mcpServers?.remote)
|
|
|
|
return '```json\n' + JSON.stringify(config, null, 2) + '\n```'
|
|
}
|