Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
messageSchemas.ts803 B
import z from "zod"; import { phoenixContentPartSchema } from "./messagePartSchemas"; import type { PromptChatMessage } from "../../../types/prompts"; import { schemaMatches } from "../../../utils/schemaMatches"; /** * * Prompt Message Schemas * */ export const phoenixMessageRoleSchema = z.enum([ "system", "developer", "user", "assistant", "model", "ai", "tool", ]); export type PhoenixMessageRole = z.infer<typeof phoenixMessageRoleSchema>; export const phoenixMessageSchema = schemaMatches<PromptChatMessage>()( z.object({ role: phoenixMessageRoleSchema, content: z.union([z.string(), phoenixContentPartSchema.array()]), }) ); export type PhoenixMessage = z.infer<typeof phoenixMessageSchema>; export const phoenixMessagesSchema = z.array(phoenixMessageSchema);

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