Files
supabase/apps/docs/components/McpCiConfigBlock.tsx
Chris Chinchilla 30b02aa0b7 docs: Allow for custom MCP server URLs (#47218)
## 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>
2026-07-07 10:04:56 +02:00

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)} />
}