Skip to main content
Glama
schema.ts689 B
import { z } from 'zod'; // Configuration schema using Zod export const configSchema = z.object({ apiKey: z.string().min(1, 'API key is required'), port: z.number().int().positive().default(24312), summaryOptions: z.object({ detailLevel: z.enum(['low', 'medium', 'high']).default('medium'), maxLength: z.number().int().positive().default(500) }).default({ detailLevel: 'medium', maxLength: 500 }) }); // Derive the type from the schema export type ConfigType = z.infer<typeof configSchema>; // Default configuration export const defaultConfig: ConfigType = { apiKey: '', port: 24312, summaryOptions: { detailLevel: 'medium', maxLength: 500 } };

Latest Blog Posts

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/nicobailon/code-summarizer'

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