Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
PointCloudPointHoverHalo.tsx1.33 kB
import { Sphere } from "@react-three/drei"; import { usePointCloudContext } from "@phoenix/contexts"; const POINT_RADIUS_MULTIPLIER = 2; export function PointCloudPointHoverHalo({ pointRadius, }: { /** * The radius of the point. This is scaled up to be encompassed via the halo */ pointRadius: number; }) { const hoveredEventId = usePointCloudContext((state) => state.hoveredEventId); const pointSizeScale = usePointCloudContext((state) => state.pointSizeScale); const eventIdToDataMap = usePointCloudContext( (state) => state.eventIdToDataMap ); const pointGroupColors = usePointCloudContext( (state) => state.pointGroupColors ); const eventIdToGroup = usePointCloudContext((state) => state.eventIdToGroup); if (hoveredEventId == null || eventIdToDataMap == null) return null; const event = eventIdToDataMap.get(hoveredEventId); const group = eventIdToGroup[hoveredEventId]; const color = pointGroupColors[group]; if (event == null) return null; return ( <Sphere position={event.position} args={[pointRadius * POINT_RADIUS_MULTIPLIER]} scale={[pointSizeScale, pointSizeScale, pointSizeScale]} > {/* eslint-disable-next-line react/no-unknown-property */} <meshMatcapMaterial color={color} opacity={0.7} transparent /> </Sphere> ); }

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