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 z from "zod";
/*
*
* OpenAI Message Part Schemas
*
*/
export const openaiChatPartTextSchema = z.object({
type: z.literal("text"),
text: z.string(),
});
export type OpenAIChatPartText = z.infer<typeof openaiChatPartTextSchema>;
export const openaiChatPartImageSchema = z.object({
type: z.literal("image_url"),
image_url: z.object({
url: z.string(),
}),
});
export type OpenAIChatPartImage = z.infer<typeof openaiChatPartImageSchema>;
export const openaiChatPartSchema = z.discriminatedUnion("type", [
openaiChatPartTextSchema,
openaiChatPartImageSchema,
]);
export type OpenAIChatPart = z.infer<typeof openaiChatPartSchema>;