Skip to main content
Glama

Memory Bank MCP Server

required-field-validator.ts518 B
import { MissingParamError } from "../presentation/errors/index.js"; import { Validator } from "../presentation/protocols/validator.js"; export class RequiredFieldValidator implements Validator { constructor(private readonly fieldName: string) {} validate(input?: any): Error | null { if ( !input || (input[this.fieldName] !== 0 && input[this.fieldName] !== false && !input[this.fieldName]) ) { return new MissingParamError(this.fieldName); } return null; } }

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/alioshr/memory-bank-mcp'

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