Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
ManualProjectGuide.tsx2.37 kB
import { useCallback } from "react"; import { graphql, useMutation } from "react-relay"; import { useNavigate } from "react-router"; import { useNotifyError, useNotifySuccess } from "@phoenix/contexts"; import type { ManualProjectGuideCreateProjectMutation } from "./__generated__/ManualProjectGuideCreateProjectMutation.graphql"; import { NewProjectForm, ProjectFormParams } from "./NewProjectForm"; export function ManualProjectGuide() { const navigate = useNavigate(); const notifySuccess = useNotifySuccess(); const notifyError = useNotifyError(); const [commit, isCommitting] = useMutation<ManualProjectGuideCreateProjectMutation>(graphql` mutation ManualProjectGuideCreateProjectMutation( $input: CreateProjectInput! ) { createProject(input: $input) { project { id name gradientStartColor gradientEndColor createdAt } query { projects(first: 50) { edges { node { id name } } } } } } `); const onSubmit = useCallback( (params: ProjectFormParams) => { commit({ variables: { input: { name: params.name, description: params.description, gradientStartColor: params.gradientStartColor, gradientEndColor: params.gradientEndColor, }, }, onCompleted: (response) => { const createdProject = response.createProject.project; notifySuccess({ title: "Project created", message: `Project "${createdProject.name}" has been successfully created.`, }); // Navigate to the project page navigate(`/projects/${createdProject.id}`); }, onError: () => { notifyError({ title: "Failed to create project", message: "This is likely due to a naming conflict. Please try a different name.", }); }, }); }, [commit, notifySuccess, notifyError, navigate] ); return ( <NewProjectForm onSubmit={onSubmit} isSubmitting={isCommitting} submitButtonText={isCommitting ? "Creating..." : "Create Project"} /> ); }

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