Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
PointCloudContext.tsx961 B
import { createContext, PropsWithChildren, useContext, useState } from "react"; import { useZustand } from "use-zustand"; import { createPointCloudStore, PointCloudProps, PointCloudState, PointCloudStore, } from "@phoenix/store/pointCloudStore"; export const PointCloudContext = createContext<PointCloudStore | null>(null); export function PointCloudProvider({ children, ...props }: PropsWithChildren<Partial<PointCloudProps>>) { const [store] = useState<PointCloudStore>(() => createPointCloudStore(props)); return ( <PointCloudContext.Provider value={store}> {children} </PointCloudContext.Provider> ); } export function usePointCloudContext<T>( selector: (state: PointCloudState) => T, equalityFn?: (left: T, right: T) => boolean ): T { const store = useContext(PointCloudContext); if (!store) throw new Error("Missing PointCloudContext.Provider in the tree"); return useZustand(store, selector, equalityFn); }

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