Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
embeddingLoader.ts775 B
import { fetchQuery, graphql } from "react-relay"; import { LoaderFunctionArgs } from "react-router"; import RelayEnvironment from "@phoenix/RelayEnvironment"; import { embeddingLoaderQuery } from "./__generated__/embeddingLoaderQuery.graphql"; /** * Loads in the necessary page data, e.g. info about the embedding */ export async function embeddingLoader(args: LoaderFunctionArgs) { const { embeddingDimensionId } = args.params; return fetchQuery<embeddingLoaderQuery>( RelayEnvironment, graphql` query embeddingLoaderQuery($id: ID!) { embedding: node(id: $id) { ... on EmbeddingDimension { id name } } } `, { id: embeddingDimensionId as string, } ).toPromise(); }

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