Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
NewDatasetLabelButton.tsx1.27 kB
import { useState } from "react"; import type { DataID } from "react-relay"; import { Button, DialogTrigger, Icon, Icons } from "@phoenix/components"; import { Modal, ModalOverlay } from "@phoenix/components/overlay"; import { NewDatasetLabelDialog } from "./NewDatasetLabelDialog"; type NewDatasetLabelButtonProps = { /** * Optional Relay connection IDs to update. These must be connections of DatasetLabelEdge types. */ updateConnectionIds?: DataID[]; }; export function NewDatasetLabelButton(props: NewDatasetLabelButtonProps) { const [showNewDatasetLabelDialog, setShowNewDatasetLabelDialog] = useState(false); return ( <DialogTrigger> <Button size="S" variant="primary" leadingVisual={<Icon svg={<Icons.PlusOutline />} />} onPress={() => setShowNewDatasetLabelDialog(true)} > New Label </Button> <ModalOverlay isOpen={showNewDatasetLabelDialog} onOpenChange={setShowNewDatasetLabelDialog} > <Modal size="S"> <NewDatasetLabelDialog updateConnectionIds={props.updateConnectionIds} onCompleted={() => setShowNewDatasetLabelDialog(false)} /> </Modal> </ModalOverlay> </DialogTrigger> ); }

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