Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
ModelRoot.tsx1.28 kB
import { graphql, useLazyLoadQuery } from "react-relay"; import { Outlet } from "react-router"; import { InferencesProvider, TimeRangeProvider } from "@phoenix/contexts"; import { ModelRootQuery } from "./__generated__/ModelRootQuery.graphql"; const RootQuery = graphql` query ModelRootQuery { model { primaryInferences { name startTime endTime } referenceInferences { name startTime endTime } corpusInferences { name startTime endTime } } } `; /** * The root entry point for all things related to a single model. */ export function ModelRoot() { const data = useLazyLoadQuery<ModelRootQuery>(RootQuery, {}); const { model: { primaryInferences, referenceInferences, corpusInferences }, } = data; return ( <InferencesProvider primaryInferences={primaryInferences} referenceInferences={referenceInferences ?? null} corpusInferences={corpusInferences ?? null} > <TimeRangeProvider timeRangeBounds={{ start: new Date(primaryInferences.startTime), end: new Date(primaryInferences.endTime), }} > <Outlet /> </TimeRangeProvider> </InferencesProvider> ); }

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