Skip to main content
Glama

MCP Server Starter

by GreatAuk
makeJsonSchema.ts345 B
import type { ToolInput } from "@/types"; import type { ZodSchema } from "zod"; import zodToJsonSchema from "zod-to-json-schema"; // biome-ignore lint/suspicious/noExplicitAny: It is what zodToJsonSchema does. No reason to change it. export const makeJsonSchema = (schema: ZodSchema<any>) => { return zodToJsonSchema(schema) as ToolInput; };

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/GreatAuk/mcp-weather'

If you have feedback or need assistance with the MCP directory API, please join our Discord server