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";
/**
* The zod schema for JSON literal primitives
* @see {@link https://zod.dev/?id=json-type|Zod Documentation}
*/
export const literalSchema = z.union([
z.string(),
z.number(),
z.boolean(),
z.null(),
]);
export type Literal = z.infer<typeof literalSchema>;
export type JSONLiteral =
| Literal
| { [key: string]: JSONLiteral }
| JSONLiteral[];
/**
* The zod schema for JSON
* @see {@link https://zod.dev/?id=json-type|Zod Documentation}
*/
export const jsonLiteralSchema: z.ZodType<JSONLiteral> = z.lazy(() =>
z.union([
literalSchema,
z.array(jsonLiteralSchema),
z.record(jsonLiteralSchema),
])
);