Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
jsonSchema.ts1.16 kB
import z from "zod"; const jsonSchemaPropertiesSchema = z .object({ type: z .enum([ "string", "number", "boolean", "object", "array", "null", "integer", ]) .describe("The type of the parameter"), description: z .string() .optional() .describe("A description of the parameter"), enum: z.array(z.string()).optional().describe("The allowed values"), }) .passthrough() .describe("A map of parameter names to their definitions"); export const jsonSchemaZodSchema = z .object({ type: z.literal("object"), properties: z.record( z.union([ jsonSchemaPropertiesSchema, z .object({ anyOf: z.array(jsonSchemaPropertiesSchema) }) .describe("A list of possible parameter names to their definitions"), ]) ), required: z .array(z.string()) .optional() .describe("The required parameters"), additionalProperties: z .boolean() .optional() .describe( "Whether or not additional properties are allowed in the schema" ), }) .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