From 4261cc76e7f003a8e6a9113c332880692bc60aa2 Mon Sep 17 00:00:00 2001 From: Qindeel Ishtiaq Date: Mon, 11 May 2026 16:50:49 -0400 Subject: [PATCH] Added agent tab for MCP endpoint and information for developer / agent mcp endpoints --- .../src/components/McpConnectInstructions.tsx | 48 +++++++++++++++++-- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/console/src/components/McpConnectInstructions.tsx b/console/src/components/McpConnectInstructions.tsx index 838033203dc69..b3005a9a30562 100644 --- a/console/src/components/McpConnectInstructions.tsx +++ b/console/src/components/McpConnectInstructions.tsx @@ -25,7 +25,11 @@ import { currentEnvironmentState } from "~/store/environments"; import { MaterializeTheme } from "~/theme"; import { obfuscateSecret } from "~/utils/format"; -import { CopyableBox, SecretCopyableBox } from "./copyableComponents"; +import { + CopyableBox, + SecretCopyableBox, + TabbedCodeBlock, +} from "./copyableComponents"; import TextLink from "./TextLink"; interface McpConnectInstructionsProps extends BoxProps { @@ -49,7 +53,6 @@ const McpConnectInstructions = ({ const [currentEnvironment] = useAtom(currentEnvironmentState); const appConfig = useAppConfig(); const isCloud = appConfig.mode === "cloud"; - const endpoint = "developer"; const envAddress = currentEnvironment?.state === "enabled" @@ -68,8 +71,8 @@ const McpConnectInstructions = ({ const user = userStr || ""; const base64Command = `printf '${user}:' | base64 -w0`; - const endpointUrl = `${baseUrl}/api/mcp/${endpoint}`; - const claudeCodeCliCommand = `claude mcp add --transport http materialize-${endpoint} \\\n ${endpointUrl} \\\n --header "Authorization: Basic "`; + const claudeCodeCliCommand = (ep: "agent" | "developer") => + `claude mcp add --transport http "materialize-${ep}" \\\n "${baseUrl}/api/mcp/${ep}" \\\n --header "Authorization: Basic "`; return ( @@ -161,7 +164,42 @@ const McpConnectInstructions = ({ Or connect to Claude Code now: - + + + Expose real-time data products to AI agents via + Materialize's built-in MCP endpoint. + + + + ), + }, + { + title: "Developer", + children: ( + + + Query Materialize system catalog tables for troubleshooting + and observability via the built-in MCP developer endpoint. + + + + ), + }, + ]} + /> );