Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
messageSchemas.ts860 B
import z from "zod"; import zodToJsonSchema from "zod-to-json-schema"; import { anthropicMessagePartSchema } from "./messagePartSchemas"; /** * * Anthropic Message Schemas * */ export const anthropicMessageRoleSchema = z.enum(["user", "assistant"]); export type AnthropicMessageRole = z.infer<typeof anthropicMessageRoleSchema>; /** * TODO: rewrite as discriminated union */ export const anthropicMessageSchema = z .object({ role: anthropicMessageRoleSchema, content: z.union([z.string(), z.array(anthropicMessagePartSchema)]), }) .passthrough(); export type AnthropicMessage = z.infer<typeof anthropicMessageSchema>; export const anthropicMessagesSchema = z.array(anthropicMessageSchema); export const anthropicMessagesJSONSchema = zodToJsonSchema( anthropicMessagesSchema, { removeAdditionalStrategy: "passthrough", } );

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