Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
utils.ts607 B
/** * Deduplicates annotations by name by keeping the latest one */ export const deduplicateAnnotationsByName = < T extends { name: string; createdAt: string }, >( annotations: T[] ) => { return Object.values( annotations.reduce( (acc, annotation) => { if (!acc[annotation.name]) { acc[annotation.name] = annotation; } else if ( new Date(acc[annotation.name].createdAt) < new Date(annotation.createdAt) ) { acc[annotation.name] = annotation; } return acc; }, {} as Record<string, T> ) ); };

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