Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
PrettyText.tsx902 B
import { css, SerializedStyles } from "@emotion/react"; import { JSONBlock } from "@phoenix/components/code"; import { usePrettyText } from "@phoenix/hooks/usePrettyText"; import { assertUnreachable } from "@phoenix/typeUtils"; type PrettyTextProps = { children: string; /** * Style overrides for the pre tag */ preCSS?: SerializedStyles; }; export function PrettyText({ children, preCSS }: PrettyTextProps) { const { text, textType } = usePrettyText(children); if (textType === "string") { return ( <pre css={css` white-space: pre-wrap; text-wrap: wrap; overflow-wrap: anywhere; font-size: var(--ac-global-font-size-s); margin: 0; ${preCSS} `} > {text} </pre> ); } if (textType === "json") { return <JSONBlock value={text} />; } assertUnreachable(textType); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server