Skip to main content
Glama

MCP Specification Server

by MCPJam
23
6
  • Apple
zod-CD8IEU5z.js•989 B
import { m as missingDependenciesUrl } from './index-WDGOcgH7.js'; const getToJsonSchemaFn = async () => { let zodV4toJSONSchema = (_schema) => { throw new Error(`xsschema: Missing zod v4 dependencies "zod". see ${missingDependenciesUrl}`); }; let zodV3ToJSONSchema = (_schema) => { throw new Error(`xsschema: Missing zod v3 dependencies "zod-to-json-schema". see ${missingDependenciesUrl}`); }; try { const { toJSONSchema } = await import('zod/v4/core'); zodV4toJSONSchema = toJSONSchema; } catch (err) { if (err instanceof Error) console.error(err.message); } try { const { zodToJsonSchema } = await import('zod-to-json-schema'); zodV3ToJSONSchema = zodToJsonSchema; } catch (err) { if (err instanceof Error) console.error(err.message); } return async (schema) => { if ("_zod" in schema) return zodV4toJSONSchema(schema); else return zodV3ToJSONSchema(schema); }; }; export { getToJsonSchemaFn };

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/MCPJam/mcp-spec'

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