Skip to main content
Glama
validators.ts457 B
export const validators = { isValidPath(path: string): boolean { // Basic path validation return typeof path === 'string' && path.length > 0 && !path.includes('..'); }, isValidQuery(query: string): boolean { return typeof query === 'string' && query.trim().length > 0; }, isValidModel(model: string): boolean { const validModels = ['ollama', 'together']; return validModels.includes(model); } };

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/compiledwithproblems/file-context-mcp'

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