Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
binning.tsx1.07 kB
import { assertUnreachable } from "@phoenix/typeUtils"; import { formatNumber } from "@phoenix/utils/numberFormatUtils"; /** * A object type to represent the graphql bin types */ type GqlBin = | { readonly __typename: "IntervalBin"; readonly range: { readonly end: number; readonly start: number; }; } | { readonly __typename: "MissingValueBin"; } | { readonly __typename: "NominalBin"; readonly name: string; } | { readonly __typename: "%other"; }; /** * Formats each bin into a string for charting * @param bin * @returns */ export function getBinName(bin: GqlBin): string { const binType = bin.__typename; switch (binType) { case "NominalBin": return bin.name; case "IntervalBin": return `${formatNumber(bin.range.start)} - ${formatNumber( bin.range.end )}`; case "MissingValueBin": return "(empty)"; case "%other": throw new Error("Unexpected bin type %other"); default: assertUnreachable(binType); } }

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