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 {
AlertCircleFilled,
AlertCircleOutline,
AlertTriangleFilled,
AlertTriangleOutline,
CheckmarkCircleFilled,
CheckmarkCircleOutline,
Icon,
InfoFilled,
InfoOutline,
} from "../icon";
import { SeverityLevel } from "../types";
type IconOptions = {
/**
* Whether or not the icon should be filled-in or outlined
* @default true
*/
filled?: boolean;
};
export function getSeverityIcon(
severity: SeverityLevel,
{ filled }: IconOptions = { filled: true }
) {
let svg;
switch (severity) {
case "warning":
svg = filled ? <AlertTriangleFilled /> : <AlertTriangleOutline />;
break;
case "info":
svg = filled ? <InfoFilled /> : <InfoOutline />;
break;
case "danger":
svg = filled ? <AlertCircleFilled /> : <AlertCircleOutline />;
break;
case "success":
svg = filled ? <CheckmarkCircleFilled /> : <CheckmarkCircleOutline />;
break;
}
return <Icon svg={svg} />;
}