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
import { fetchQuery, graphql } from "react-relay";
import { LoaderFunctionArgs, redirect } from "react-router";
import RelayEnvironment from "@phoenix/RelayEnvironment";
import { homeLoaderQuery } from "./__generated__/homeLoaderQuery.graphql";
/**
* Loads in the necessary page data for the home page
* makes a determination about the available functionality
*/
export async function homeLoader(_args: LoaderFunctionArgs) {
const data = await fetchQuery<homeLoaderQuery>(
RelayEnvironment,
graphql`
query homeLoaderQuery {
functionality {
modelInferences
}
}
`,
{}
).toPromise();
if (data?.functionality.modelInferences) {
return redirect("/model");
} else {
return redirect("/projects");
}
}