Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
NewDatasetLabelDialog.tsx1.33 kB
import { Alert, Dialog, DialogCloseButton, DialogContent, DialogHeader, DialogTitle, } from "@phoenix/components"; import { useDatasetLabelMutations, UseDatasetLabelMutationsParams, } from "@phoenix/components/dataset/useDatasetLabelMutations"; import { NewLabelForm } from "@phoenix/components/label"; type NewDatasetLabelDialogProps = UseDatasetLabelMutationsParams & { onCompleted: () => void; }; export function NewDatasetLabelDialog(props: NewDatasetLabelDialogProps) { const { updateConnectionIds, datasetId, onCompleted } = props; const { addLabelMutation, isSubmitting, error } = useDatasetLabelMutations({ updateConnectionIds, datasetId, }); return ( <Dialog> {({ close }) => ( <DialogContent> <DialogHeader> <DialogTitle>New Dataset Label</DialogTitle> <DialogCloseButton /> </DialogHeader> {error ? ( <Alert banner variant="danger"> {error} </Alert> ) : null} <NewLabelForm onSubmit={(label) => { addLabelMutation(label, () => { onCompleted(); close(); }); }} isSubmitting={isSubmitting} /> </DialogContent> )} </Dialog> ); }

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