xmcp
Version:
The TypeScript MCP framework
14 lines (13 loc) • 387 B
TypeScript
export type ContentValidator = (content: any) => {
valid: boolean;
error?: string;
};
export declare const contentValidators: Record<string, ContentValidator>;
/**
* Validates content and returns a detailed error message if invalid
* applies for both tools and prompts
*/
export declare function validateContent(content: unknown): {
valid: boolean;
error?: string;
};