import { z } from "zod";
/**
* Helper function to make Zod schemas work with client.request validation
* This addresses type issues with the client library validation
*/
export function asResponseSchema<T extends z.ZodTypeAny>(schema: T) {
return schema as unknown as z.ZodType<z.infer<T>, z.ZodTypeDef, object>;
}
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/Flux159/mcp-server-kubernetes'
If you have feedback or need assistance with the MCP directory API, please join our Discord server