Skip to main content
Glama

Payload CMS MCP Server

index.ts759 B
import { validatePayloadCode } from './validator'; import { queryValidationRules } from './query'; import { executeSqlQuery } from './sql'; import { FileType } from './types'; export * from './schemas'; export * from './validator'; export * from './query'; export * from './generator'; export * from './scaffolder'; export { validatePayloadCode, queryValidationRules, executeSqlQuery, FileType }; /** * Convenience function to validate Payload CMS code * @param code The code to validate * @param fileType The type of file to validate * @returns A boolean indicating if the code is valid */ export function isValidPayloadCode(code: string, fileType: FileType): boolean { const result = validatePayloadCode(code, fileType); return result.isValid; }

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/disruption-hub/payloadcmsmcp'

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