Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
TextCell.tsx1.04 kB
import { CellContext } from "@tanstack/react-table"; const MAX_LENGTH = 100; /** * Truncates the text if it is too long. * @param {string} text The text to truncate * @returns {string} The truncated text */ function formatText(text: string) { if (text.length > MAX_LENGTH) { return `${text.slice(0, MAX_LENGTH)}...`; } return text; } /** * A table cell that is designed to show text. It will truncate the text if it * is too long. */ export function TextCell<TData extends object, TValue>({ getValue, }: CellContext<TData, TValue>) { const value = getValue(); const str = value != null && typeof value === "string" ? formatText(value) : "--"; return <span>{str}</span>; } /** * A table cell that shows pre-formatted text. */ export function PreformattedTextCell<TData extends object, TValue>({ getValue, }: CellContext<TData, TValue>) { const value = getValue(); const str = value != null && typeof value === "string" ? value : "--"; return <pre style={{ whiteSpace: "pre-wrap" }}>{str}</pre>; }

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